COD:
quest teamwarp begin
state start begin
when xxx.use begin
if party.is_party() then
if party.is_leader() then
say_title("Membrii grupului")
say("Vrei sa stii unde se afla?")
local ss = select("Da","Nu")
if ss == 1 then
item.remove()
party.setf ( "x", pc.get_x() )
party.setf ( "y", pc.get_y() )
party.chat("======== Liderul te asteapta! ========")
party.chat("======= Te poti teleporta acum! =======")
else
say("La revedereeee!")
end
else
say("Teleport lider!")
say("Vrei sa te teleportezi singur?")
local ss = select("Da","Nu")
if ss == 1 then
if party.getf("x") == 0 or party.getf("y") == 0 then
say("Liderul nu este pregatit.")
else
item.remove(1, xxx)
pc.warp(party.getf("x").."00",party.getf("y").."00")
end
end
end
else
say("Trebuie sa ai o grupa.")
end
end
end
end
În loc de xxx puneți codul itemului care vreți să facă acest lucru.
Tutorial instalare quest:
Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest/.lua
Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
Îl puneţi acolo (să fie .quest sau .lua).
Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest (depinde ce server aveţi) apoi ./qc nume_quest.quest/.lua
Intraţi pe server şi scrieţi /reload q
Testaţi quest-ul.
download ( opțional ) : http://www98.zippyshare.com/v/Sb8h98ed/file.html