Jump to content

[HELP] Quest not working...


Recommended Posts

Hey guys, I created 2 new systems for a server where i'm working but there's a problem...

When i put the quest in the server, in the quest folder, i run the ./qc or the make_quest.py and there is no error such as core dumped or something.

 

When i click in the letter in game, the quest icon just disappears and nothing happens...

 

I saw that there was no info about the quests in the object folder neither in the notarget folder, so i think that the server is not compiling the quest correctly...

 

What can it be? Can anyone help please? :/

 

Greetz, RachadoPT

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • 11 months later...

This is the quest:

Spoiler

quest troqueuse begin
    state start begin
        when 30093.use."Σύστημα Τράπεζας " begin
            say_title("Σύστημα Τράπεζας: ")
            say("")
            say("Καλωσόρισες στην δική σου ατομική τράπεζα! Εδώ ")
            say("μπορείς να καταθέσεις το Gold σου, όταν αυτό φτάσει ")
            say("το όριο του καταλόγου σου. Το μέγιστο Gold που ")
            say("μπορείς να αποθηκεύσεις είναι: ")
            say("9.223.372.036.854.775.807. ")
            say("")
            local player_id = pc.get_player_id(pc.getname())
            local verification = pc.get_true_banque(player_id)
            if verification == 0 then
                say_title("Σύστημα Τράπεζας: ")
                say("")
                say("Δεν έχεις ανοιχτό λογαριασμό στην Τράπεζα ")
                say("ακόμη. Θέλεις να ανοίξεις έναν; ")
                say("")
                local a = select("Ενεργοποίηση ","Άκυρο ")
                if a == 2 then
                    return
                elseif a == 1 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                    say("Δημιούργησε τον κωδικό πρόσβασής σου. Για ")
                    say("ακύρωση, απλά άσε κενό και πάτα ΟΚ. ")
                    say("")
                    local mdp_choice = input()
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                    say("Έχεις επιλέξει τον ακόλουθο κωδικό πρόσβασης: ")
                    say("")
                    say(mdp_choice)
                    local zero = 0
                    local un = 1
                    local b = select("Επιβεβαίωση ","Ακύρωση ")
                    if b == 2 then
                        return
                    elseif b == 1 then
                        mysql_query("INSERT INTO player.banque VALUES owner_id = '"..player_id.."', yang = '"..zero.."', mdp = '"..mdp_choice.."' ")
                        mysql_query("UPDATE account.account SET banque = '"..un.."' where owner_id = '".. player_id .."'")
                    end
                end
            elseif verification == 1 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                say("Κεντρικό μενού Τράπεζας: ")
                    say("")
                local c = select("Ανάληψη ","Κατάθεση ","Κλείσιμο ")
                if c == 3 then
                    return
                elseif c == 1 then
                    local yang_banque = pc.get_yang(player_id)
                    if yang_banque == 0 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                        say("Δεν έχεις καταθέσει ακόμη μετρητά στο Σύστημα ")
                        say("Τράπεζάς σου. ")
                    say("")
                    else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                        say("Πληκτρολόγησε τον κωδικό πρόσβασής σου: ")
                    say("")
                        local mdp = input()
                        local mdp_banque = pc.get_pass(player_id)
                        if mdp == mdp_banque then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                            say("Επέλεξε ποσό ανάληψης: ")
                    say("")
                            local yang_destock = input()
                            if yang_destock > 0 and yang_destock < 9999999999 then
                                if yang_destock > yang_banque then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                    say("Δεν έχεις τόσο Gold αποθηκευμένο στην Τράπεζά σου. ")
                    say("")
                                else
                                    local yang_limite = yang_destock + yang_banque
                                    if yang_limite > 2125000000 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                        say("Ο κατάλογός σου δεν χωράει τόσο πολύ Gold. ")
                    say("")
                                    else
                                        local yang_limite_banque = yang_banque - yang_destock
                                        if yang_limite_banque < 0 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                            say("Δεν σου έχει μείνει καθόλου Gold. ")
                    say("")
                                        else
                                            pc.update_yang(player_id, yang_limite_banque)
                                            pc.give_gold(yang_destock)
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                            say("Η ανάληψή σου ήταν επιτυχής! ")
                    say("")
                                        end
                                    end
                                end
                            else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                say("Δεν μπορείς να κάνεις ανάληψη Gold γιατί το ποσό ")
                                say("που πληκτρολόγησες δεν είναι έγκυρο. ")
                    say("")
                            end
                        else
                            say_reward("Λάθος κωδικός πρόσβασης. ")
                        end
                    end
                elseif c == 2 then
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                    say("Πόσο Gold θα ήθελες να καταθέσεις; ")
                    say("")
                    local yang_stock = input()
                    if yang_stock > 0 and yang_stock < 9999999999 then
                        if pc.get_gold > yang_stock then
                            local yang_banque = pc.get_yang(player_id)
                            local banque_limite = yang_stock + yang_banque
                            if banque_limite < 9200000000000000000 then
                                pc.update_yang(player_id, banque_limite)
                                pc.give_gold(-yan_stock)
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                say("Η κατάθεσή σου ολοκληρώθηκε με επιτυχία! ")
                    say("")
                            else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                                say("Δεν έχεις τόσο πολύ Gold. ")
                    say("")
                            end
                        else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                            say("Δεν μπορείς να αποθηκεύσεις περισσότερο Gold στην Τράπεζά σου. ")
                    say("")
                        end
                    else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                        say("Δεν μπορείς να καταθέσεις Gold γιατί το ποσό που έχεις ")
                        say("πληκτρολογήσει δεν είναι έγκυρο. ")
                    say("")
                    end
                end
            else
                    say_title("Σύστημα Τράπεζας: ")
                    say("")
                say("Τραπεζικό σφάλμα! ")
                    say("")
            end
        end
        when 30093.use."test compte gm" with pc.is_gm() begin
            local player_id = pc.get_player_id(pc.getname())
            local un = 1
            local mdp_choice = "123456"
            -- mysql_query("INSERT INTO player.banque VALUES owner_id = '"..player_id.."', yang = '"..un.."', mdp = '"..mdp_choice.."' ")
            pc.insert_banque(player_id,un,mdp_choice)
            pc.update_account_banque(player_id)
            say(player_id)
        end
    end
end

I have added all the nessecary things to questfunctions.lua and I made the item ITEM_QUEST and everything else correctly.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Metin2 Closed Beta Content (2003-2004)

    2. 11

      Metin2 Closed Beta Content (2003-2004)

    3. 0

      Football Ground

    4. 11

      Metin2 Closed Beta Content (2003-2004)

    5. 0

      Error compile binary Zentoria2

    6. 11

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.