quest ploaia begin
state start begin
when 20003.chat."Ploaia de Iteme" with pc.is_gm() begin
if game.get_event_flag("item_open") == 0 then
say("Salut "..pc.get_name().." de aici poti porni")
say("eventul "Ploaia de Iteme" ")
say_reward("Quest facut de ©DaRealPain")
say("Vrei sa faci asta?")
if select("Da","Nu") == 2 then return end
say("Te rog introdu ID-ul Itemului care urmeaza sa fie dropat.")
kill_item = tonumber(input()) or 0
if kill_item == 0 then
say("Nu ai introdus nimic. Incearca din nou.")
return
end
say("Te rog sa introduci sansa de dropare a Itemului. Sansa va fi redata in %")
kill_prozent = tonumber(input()) or 0
if kill_prozent == 0 then
say("Nu ai introdus nimic. Incearca din nou.")
return
end
say("Te rog introdu cate minute sa dureze eventul ( in Minute ) ")
zeit = tonumber(input()) or 0
if zeit == 0 then
say("Ce ai introdus e gresit.")
return
end
game.set_event_flag("item_time", get_time()+zeit*60)
game.set_event_flag("item_open", 1)
notice_all("Eventul "Ploaia de Iteme" a fost pornit")
notice_all("Acum poti dropa "..item_name(kill_item).." de la toti monstrii.")
notice_all("Eventul este activ pentru "..zeit.." Minut(e)")
else
say("Eventul "Ploaia de Iteme este deja activ.")
say("Vrei sa il dezactivezi?")
if select("Da", "Nu")==2 then return end
game.set_event_flag("item_open", 0)
kill_prozent, kill_item = nil, nil
end
end
when kill with game.get_event_flag("item_open") == 1 and not npc.is_pc() begin
if kill_prozent == nil then game.set_event_flag("item_open", 0) return end
if game.get_event_flag("item_time") < get_time() then
notice_all("Eventul "Ploaia de Iteme" a luat sfarsit")
notice_all("Speram ca ati dropat multe Iteme.")
game.set_event_flag("item_open", 0)
kill_prozent, kill_item = nil, nil
return
end
local s=number(1, 101-kill_prozent)
if s==1 then
game.drop_item_with_ownership(kill_item, 1)
end
end
when login with game.get_event_flag("item_open") == 1 begin
notice("Eventul "Ploaia de Iteme" este activ")
notice(" "..item_name(kill_item).." poate fi dropat de la toti monstrii!")
notice("Mult succes la farmat!")
end
end
end
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu rasplata.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc rasplata.quest
5. Intraţi pe server şi scrieţi /reload q .