Code
-------------------------------------------------
---Catacomb Quest---
---By DarkScorp ----
-------------------------------------------------
Quest Catacomb_Mission begin
state start begin
when letter with pc.get_level() >= 90 begin
local v = find_npc_by_vnum(20354)
if 0 == v then
else
target.vid("__TARGET__", v, "Catacomb" )
end
end
when buttton or info begin
say_title("Comandante Catacombe")
say("")
say("")
say("ciao, le catacombe del diavolo sono aperte")
say("per accederci devi parlare con il guardiano della piazza")
say("hai bisogno di parlare con lui..")
say("")
setstate(going1)
end
end
state going1 begin
when __TARGET__.target.click or
20354.chat."Le Catacombe Del Diavolo" begin
target.delete("__TARGET__")
say_title("Guardiano:")
say("")
say("Ciao Giovane Guerriero")
say("Le Catacombe Del Diavolo sono ora aperte")
say("Vai E Batti il diavolo")
say("finchè si trova là!")
say_item_vnum(30118)
say("Tieni questo item, ti servirà!")
pc.give_item2("30118",1)
setstate(goingto_20092)
end
end
state goingto_20092 begin
when letter begin
local v = find_npc_by_vnum(20092)
if 0 == v then
else
target.vid("__TARGET__", v, "Catacomb")
end
end
when button or info begin
say("Vai Ora!")
end
when __TARGET__.target.click or
20092.chat."Entrata Per Le Catacombe Del Diavolo" begin
target.delete("__TARGET__")
say_title("Comandante Catacombe")
say("")
say("ciao, vuoi entrare nelle catacombe!")
say("mi dai l'item che ti ha consegnato?")
say_item_vnum(30118)
wait()
if pc.countitem(30118) < 1 then
say("scusa,ma non hai l'item!")
end
if pc.countitem(30118) >= 1 then
say("Stai per entrare")
pc.warp(x,x)
setstate(glogin)
end
end
end
state glogin begin
when login with pc.get_map_index() == mapindex begin
d.notice(""..party.is_leader().." Group,Sono entrati nelle catacombe del diavolo")
setstate(DiavoloKill)
end
end
state DiavoloKill begin
when DiavoloKill.kill with pc.get_map_index() == mapindex begin
notice_all(""..party.is_leader().."Group ha ucciso il Diavolo!")
game.drop_item("value Forziere Diavolo!",1)
d.exit_all()
end
end
end