MGabriel 0 Posted February 27, 2017 Share Posted February 27, 2017 quest level_and_farm_maps begin state start begin when 20095.chat."Liho - 90" begin if pc.get_level() < 90 then say_title(""..mob_name(20095).."[ENTER]") say("Revino când atingi nivelul 90.[ENTER]") return end if not pc.can_warp() then say_title(""..mob_name(20095).."[ENTER]") say("Nu te poþi teleporta.[ENTER]") return end if pc.is_polymorphed() then say_title(""..mob_name(20095).."[ENTER]") say("Ai revenit la starea ta iniþialã.[ENTER]") pc.remove_polymorph() return end if horse.is_riding() > 0 then say_title(""..mob_name(20095).."[ENTER]") say("Cãlaritul este interzis în timpul executãrii unui quest.[ENTER]") horse.unride() horse.unsummon() return end say_title(""..mob_name(20095).."[ENTER]") say("Doreºti sã fii teleportat în acesta zonã?") say("Pericolele te vor pândi la tot pasul!") say("Fii cu mare bãgare de seamã![ENTER]") local teleport = select("Trimite-mã acolo","Închide") if teleport == 1 then pc.warp(105200 , 10000) else return end end when 20095.chat."Death Valley - 110" begin if pc.get_level() < 110 then say_title(""..mob_name(20095).."[ENTER]") say("Revino când atingi nivelul 110.[ENTER]") return end if not pc.can_warp() then say_title(""..mob_name(20095).."[ENTER]") say("Nu te poþi teleporta.[ENTER]") return end if pc.is_polymorphed() then say_title(""..mob_name(20095).."[ENTER]") say("Ai revenit la starea ta iniþialã.[ENTER]") pc.remove_polymorph() return end if horse.is_riding() > 0 then say_title(""..mob_name(20095).."[ENTER]") say("Cãlaritul este interzis în timpul executãrii unui quest.[ENTER]") horse.unride() horse.unsummon() return end say_title(""..mob_name(20095).."[ENTER]") say("Doreºti sã fii teleportat în acesta zonã?") say("Pericolele te vor pândi la tot pasul!") say("Fii cu mare bãgare de seamã![ENTER]") local teleport = select("Trimite-mã acolo","Închide") if teleport == 1 then pc.warp(828100, 763400) else return end end when 20095.chat."New Valley - 120" begin if pc.get_level() < 120 then say_title(""..mob_name(20095).."[ENTER]") say("Revino când atingi nivelul 120.[ENTER]") return end if not pc.can_warp() then say_title(""..mob_name(20095).."[ENTER]") say("Nu te poþi teleporta.[ENTER]") return end if pc.is_polymorphed() then say_title(""..mob_name(20095).."[ENTER]") say("Ai revenit la starea ta iniþialã.[ENTER]") pc.remove_polymorph() return end if horse.is_riding() > 0 then say_title(""..mob_name(20095).."[ENTER]") say("Cãlaritul este interzis în timpul executãrii unui quest.[ENTER]") horse.unride() horse.unsummon() return end say_title(""..mob_name(20095).."[ENTER]") say("Doreºti sã fii teleportat în acesta zonã?") say("Pericolele te vor pândi la tot pasul!") say("Fii cu mare bãgare de seamã![ENTER]") local teleport = select("Trimite-mã acolo","Închide") if teleport == 1 then pc.warp(921600, 153600) else return end end end end Can somebody add to each tp, to need a specific it for warping, please, the quest is pritty good but i cant seem to make it work with the itm, pls help a brotha in need ! Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted February 27, 2017 Premium Share Posted February 27, 2017 Have fun. quest level_and_farm_maps begin state start begin when 20095.chat."Liho - 90" with pc.get_level() >= 90 begin say_title(string.format("%s:[ENTER]", mob_name(npc.get_race()))) if (not pc.can_warp()) then say("You recently opened a shop/safebox window,") say("Therefore, you must wait 10 seconds.[ENTER]") return; end -- if local item_vnum = INSERT_LV90_ITEM_VNUM_HERE; if (pc.count_item(item_vnum) > 0) then say("You will need this item to enter this map:") say_item_vnum(item_vnum); return; end -- if say("Are you sure you want to enter this zone?") if (select("Yes, I'm sure", "No, I'm not") == 1) then pc.remove_item(item_vnum, 1); pc.warp(105200, 10000); end -- if end -- when when 20095.chat."Death Valley - 110" with pc.get_level() >= 110 begin say_title(string.format("%s:[ENTER]", mob_name(npc.get_race()))) if (not pc.can_warp()) then say("You recently opened a shop/safebox window,") say("Therefore, you must wait 10 seconds.[ENTER]") return; end -- if local item_vnum = INSERT_LV110_ITEM_VNUM_HERE; if (pc.count_item(item_vnum) > 0) then say("You will need this item to enter this map:") say_item_vnum(item_vnum); return; end -- if say("Are you sure you want to enter this zone?") if (select("Yes, I'm sure", "No, I'm not") == 1) then pc.remove_item(item_vnum, 1); pc.warp(828100, 763400); end -- if end -- when when 20095.chat."New Valley - 120" with pc.get_level() >= 120 begin say_title(string.format("%s:[ENTER]", mob_name(npc.get_race()))) if (not pc.can_warp()) then say("You recently opened a shop/safebox window,") say("Therefore, you must wait 10 seconds.[ENTER]") return; end -- if local item_vnum = INSERT_LV120_ITEM_VNUM_HERE; if (pc.count_item(item_vnum) > 0) then say("You will need this item to enter this map:[ENTER]") say_item_vnum(item_vnum); return; end -- if say("Are you sure you want to enter this zone?[ENTER]") if (select("Yes, I'm sure", "No, I'm not") == 1) then pc.remove_item(item_vnum, 1); pc.warp(921600, 153600); end -- if end -- when end -- state end -- quest "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
MGabriel 0 Posted February 27, 2017 Author Share Posted February 27, 2017 Thanks fam have a great day ! Even tho i made it work eventually, forgott a " at say kek :)) ! Thanks again tho for ur time! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now