Jump to content

quest suddundely stopped working, didnt edit :/


Recommended Posts

Hey, for some profound reason my teleport quest has decided to stop working, i hadnt made any alterations to it but suddenly i could no longer speak to the npc, i moved the quest to another npc, same thing, couldn't speak.

 

there's no errors, and in the syslog it says that ive clicked on it :/

 

any ideas? when i backdate just my database it works again. but my last backup was 24 hours ago, i attempted to take all the charterers, info and various elements to the backup but when i logged in the new characters didnt show up in the selection screen :/

 

at the time i was debugging a different quest, which also randomly stopped working but yet the code is fine. the teleport code is below. all other quests are working fine.

Apr 14 05:18:00 :: OnClick Hong-Hae[vnum 20094 ServerUniqueID 22053, pid 0] by [GOD]Invictus
quest betamapwarp begin
	state start begin
			when 20094.chat."Trade Map (Lv. 10)" with pc.get_level() > 9 begin
			say_title("Hong-Hae")
			say("")
			say("This is a trade map..")
			say("Place where all empires,")
			say("can trade")
			say("want go there?")
			say("")
			say_reward("Really want to be teleported?")
			
			local s1=select("Teleport","Cancel")
			if s1 == 1 then
				pc.warp(3812585, 3799162)
			else
				return
			end			
		end
			when 20094.chat."Farm Map (Lv. 1)" with pc.get_level() == 200 begin
			say_title("Hong-Hae:")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("First, let me see your qualification.")
			say("")
			
			wait()
			if pc.count_item(50156)>0 then
				setdelay(20)
				say("")
				say("So you got it. Good!")
				say("")
				pc.remove_item(50156)
			elseif pc.count_item(50156) >0 then
				setdelay(20)
				say("")
				say("So you got it. Good!")
				say("")
				
			else
				say("You need a Diamond Key.")
				say("I cannot let you in if you don't have the key.")
				say("")
				say_item("Passage",50156,"")
				return
			end
			setdelay(20)
			say("")
			say("..Follow me!")	
			say("")
			resetdelay()
			wait()
			pc.warp(2641500, 2693900)
			
		end
		when 20094.chat."Bay Black Sand (Lv. 75)" with pc.get_level() > 74 begin
				setdelay(20)
			say_title("Hong-Hae:")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("First, let me see your qualification.")
			say("")
			
			wait()
			if pc.count_item(50156)>0 then
				setdelay(20)
				say("")
				say("So you got it. Good!")
				say("")
				pc.remove_item(50156)
			elseif pc.count_item(50156) >0 then
				setdelay(20)
				say("")
				say("So you got it. Good!")
				say("")
				
			else
				say("You need a Diamond Key.")
				say("I cannot let you in if you don't have the key.")
				say("")
				say_item("Passage",50156,"")
				return
			end
			setdelay(20)
			say("")
			say("..Follow me!")	
			say("")
			resetdelay()
			wait()
			pc.warp(1087000, 1655400)
			
		end
		when 20094.chat."Cape Dragon Head (Lv. 80)" with pc.get_level() > 79 begin
		say_title("Hong-Hae")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("Really want to be teleported?")
			
			local s1=select("Teleport","Cancel")
			if s1 == 1 then
				pc.warp(1084600, 1784400)
			else
				return
			end			
		end



		when 20094.chat."Dawn Mist Wood (Lv. 90)" with pc.get_level() > 89 begin
			say_title("Hong-Hae")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("Really want to be teleported?")
			
			local s1=select("Teleport","Cancel")
			if s1 == 1 then
				pc.warp(1226600, 1680600)
			else
				return
			end			
		end
		when 20094.chat."Mt Thunder (Lv. 95)" with pc.get_level() > 94 begin
			say_title("Hong-Hae")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("Really want to be teleported?")
			
			local s1=select("Teleport","Cancel")
			if s1 == 1 then
				pc.warp(1134400, 1654800)
			else
				return
			end
		end
		when 20094.chat."Jungle Waste (Lv. 110)" with pc.get_level() > 109 begin
			say_title("Hong-Hae")
			say("")
			say("This is a nice place..")
			say("But very very dangerously,")
			say("So think twice do you realy")
			say("want go there?")
			say("")
			say_reward("Really want to be teleported?")
			
			local s1=select("Teleport","Cancel")
			if s1 == 1 then
				pc.warp(53776900, 51237100)
			else
				return
			end			
		end
	end
end
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

quest betamapwarp begin
    state start begin
        when 20094.chat."Trade Map (Lv. 10) " with (pc.get_level() > 9) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---
            say("This is a trade map..")
            say("Place where all empires,")
            say("can trade")
            say("want go there?")
            say("")
            say_reward("Really want to be teleported?")            
            if(select("Teleport","Cancel") == 2) then
                return
            end
            pc.warp(3812585, 3799162)
        end
        when 20094.chat."Farm Map (Lv. 200)" with (pc.get_level() >= 200) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("First, let me see your qualification.")
            say("")
            wait()
            if(pc.count_item(50156) > 0) then
                say("[DELAY value;150]        [/DELAY]")
                say("")
                say("So you got it. Good!")
                pc.remove_item(50156,1)
            else
                say("You need a Diamond Key.")
                say("I cannot let you in if you don't have the key.")
                say("")
                say_item("Passage",50156,"")
                return
            end
            wait()
            say("[DELAY value;150]        [/DELAY]")
            say("..Follow me!")
            wait()
            pc.warp(2641500, 2693900)
        end
        when 20094.chat."Bay Black Sand (Lv. 75)" with (pc.get_level() > 74) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---
            say("")
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("First, let me see your qualification.")
            say("")
            wait()
            if(pc.count_item(50156) > 0) then
                say("[DELAY value;150]        [/DELAY]")
                say("")
                say("So you got it. Good!")
                pc.remove_item(50156,1)
            else
                say("You need a Diamond Key.")
                say("I cannot let you in if you don't have the key.")
                say("")
                say_item("Passage",50156,"")
                return
            end
            wait()
            say("[DELAY value;150]        [/DELAY]")
            say("..Follow me!")
            wait()
            pc.warp(1087000, 1655400)
        end
        when 20094.chat."Cape Dragon Head (Lv. 80)" with (pc.get_level() > 79) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---
            say("")
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("Really want to be teleported?")
            if(select("Teleport","Cancel") == 2) then
                return
            end
            pc.warp(1084600, 1784400)
        end
        when 20094.chat."Dawn Mist Wood (Lv.90)" with (pc.get_level() > 89) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---         
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("Really want to be teleported?")
            if(select("Teleport","Cancel") == 2) then
                return
            end
            pc.warp(1226600, 1680600)
        end
        when 20094.chat."Mt Thunder (Lv.95)" with (pc.get_level() > 94) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---             
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("Really want to be teleported?")         
            if(select("Teleport","Cancel") == 2) then
                return
            end
            pc.warp(1134400, 1654800)
        end
        when 20094.chat."Jungle Waste (Lv.110)" with (pc.get_level() > 109) begin
            say_title(string.format("%s:",mob_name(npc.get_race())))
            say("")
            ---             
            say("This is a nice place..")
            say("But very very dangerously,")
            say("So think twice do you realy")
            say("want go there?")
            say("")
            say_reward("Really want to be teleported?")         
            if(select("Teleport","Cancel") == 2) then
                return
            end
            pc.warp(53776900, 51237100)
        end
    end
end

Try like this

 

Kind Regards

HaveBeen

Plain logic saves lives.

Link to comment
Share on other sites

pY7b5A9.png

 

mmm i can't see what's up with the code tried sorting it but cant see the error :o. also i just tested my teleport quest on my test server, it works fine there :o. is there something within the database that can be blocking the quest?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

pY7b5A9.png

 

mmm i can't see what's up with the code tried sorting it but cant see the error :o. also i just tested my teleport quest on my test server, it works fine there :o. is there something within the database that can be blocking the quest?

 

Sorry.. :D

 

I fixed at the moment, test it again

 

Kind Regards

HaveBeen

Edited by Metin2 Dev
Core X - External 2 Internal

Plain logic saves lives.

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


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