Jump to content

Quest not working?


Recommended Posts

Hello,
I had this quest in my quests folder, its just a bunch of NPC speeches + an npc that has like lottery u basically choose number 1-20 if u guess it it rewards u, so basically the speeches and everything was working previously, but after I translated, nothing works anymore (in this quest file). I guess while translating I deleted something important or so. So can you please tell me whats wrong with the quest? I searched line after line and compared to other working quests but i still couldn't find whats wrong with this one.
 Here is the quest:

 

quest npc_talk begin
    state start begin
        when 20355.chat."The Spirit Stones" begin
            say_title(mob_name(20355)..":")
            say("Did you know that nowadays, skilled ")
            say("warriors harness the evil power within ")
            say("a metin stone in a small stones called spirit ")
            say("stones? These are very useful in battles and can ")
            say("grant a lot of power to an item.")
        end
        when 20008.chat."Welcome" begin
            say_title(mob_name(20008)..":")
            say("Welcome, young adventurer. You're at ")
            say("Octavio's fast food, where the finest meals ")
            say("are made. Enjoy!")
        end
        when 20004.chat."Life as Beggar" or 20041.chat."A részegségrõl" begin
            say_title(mob_name(20004)..":")
            say("Maan, life sucks. I envy you for being so ")
            say("brave. I'd shit myself infront of a Metin ")
            say("Stone. I really do envy you!")
        end
        when 20005.chat."Liquids!" begin
            say_title(mob_name(20005)..":")
            say("Did you know about the new power liquids?")
            say("What? You don't know? Go grab some! They're ")
            say("sold at "Power-ups" Shop near the Guardian.")
            say("They give immense power to whoever drinks them.")
        end

        when 20011.chat."What is OX?" begin
            say_title(mob_name(20011)..":")
            say("I see, so you're new here...")
            say("OX is an event where players are teleported to ")
            say("a special map. They're asked yes/no questions.")
            say("If the answer is Yes you go to O, and if it is ")
            say("no you go to X. As simple as that.")
        end

        when 20018.chat."Wolf's Liver" begin
            say_title(mob_name(20018)..":")
            say("Do you know about the new special medicine?")
            say("It is made out of wolves' livers. It can cure ")
            say("any sickness. Be it even cancer.")
        end
        when 20006.chat."Little Brother " begin
            say_title(mob_name(20006)..":")
            say("Little brother is missing... blablabla!")
            say("Won't this bitch stop complaining about this ")
            say("already?! In every goddamn server! EVERY SERVER!")
        end

        when 20012.chat."Rice" begin
            say_title(mob_name(20012)..":")
            say("Hoho, I'm very good at making rice!")
            say("Maybe you wanna try some? no? ok...")
            say("*cries in a corner*")
        end

        when 20021.chat."Click here!" begin
            say_title(mob_name(20021)..":")
            say("Dafuq did you click for ?")
            say("What did you expect ? goddamit!")
        end
        when 20002.chat."I'm fat..." begin
            say_title(mob_name(20002)..":")
            say("Please don't laugh at me...")
            say("I already know I'm fat okay?")
        end
        when 20003.chat."Shhh!" begin
            say_title(mob_name(20003)..":")
            say("Can you just shut up and leave?")
            say("You're gonna wake up my son!")
        end
        when 20024.chat."Passion" begin
            say_title(mob_name(20024)..":")
            say("I really love Justin Bieber! What's that? ")
            say("You want me to kill myself? Fair enough...")
        end
         when 33002.chat."The Lottery" begin
            say_title("Ali Baba: ")
            say("")
            say("Would you like to play?")
            local a=select("Yes.","No.")
            
                if a==2 then
                    return
                end    
            
        if a == 1 then
            say_title("Ali Baba: ")
            say("")
            say("You're gonna guess a number from 1 to 20.")
            say("If you guess it right, I'm gonna give you 1kkk Gold!")
            say("However, each attempt will cost you 10kk Gold.")
            say("Are you up for this?")
        end
                
                local b=select("Yes.","No.")
                
                        if b==2 then
                            return
                        end
                
                    if b==1 then
                        if pc.get_money() >= 10000000 then                        
                        local numbers = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 }
                        local number = numbers[number( 1 ,20 )]
                        local szam = number
                    
                        pc.changegold(-10000000)
                        say_title("Ali Baba: ")
                        say("")
                        say_reward("Guess the number from 1 to 20: ")
                        local c = input()
                        
                            if c == ""..number.."" then
                                say_title("Ali Baba: ")
                                say("")
                                say("Congratulations!")
                                say("You guessed correctly! Bullseye!")
                                say("")
                                say_reward("You've earned 1kkk gold.")
                                pc.changegold(1000000000)
                                notice_all(""..pc.get_name().." has just won the lottery!")
                            else
                                say_title("Ali Baba: ")
                                say("")
                                say_reward("I'm sorry.")
                                say_reward("You didn't guess correctly.")
                                say_reward("The correct number was "..szam.."")
                                say_reward("Better luck next time!")
                            end
                    else
                        say_title("Ali Baba: ")
                        say("")
                        say_reward("Not enough gold!")
                    end
                end
            end
    end
end

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.