Tipologie server(PvM / PvP): ...
*Resursă folosită: *Link exclusiv J4M* ....
*ServerFiles utilizat:....
*Syserr: 0
[ Postat de pe Android ]


Cod: Selectaţi tot
quest okey_card begin
state start begin
when login begin
if game.get_event_flag("okey_card") == 1 then
notice("[!]:Evenimentul Okey Card este activ!")
end
end
when kill with not npc.is_pc() and game.get_event_flag("okey_card") == 1 begin
local chance = number(1, 100)
local chance_max = game.get_event_flag("okey_card_change")
if chance <= chance_max then
pc.give_item2(50011)
-- pc.give_item2(50011)
else
end
end
when 20094.chat."GM: Eveniment Okey Card " with pc.is_gm() begin
if pc.is_gm() then
say("Hong-Hae:")
say("")
say("Ce doresti sa faci?")
say("")
if game.get_event_flag("okey_card") == 0 then
say("Evenimentul cufarul lunii este oprit.")
say("")
else
say("Evenimentul cufarul lunii este pornit.")
say("")
end
local s=select("Porneste cufere","Opreste cufere","sansa de drop al cufere","Iesire")
if s==1 then
notice_all("[!]: Drop-ul la Okey Card este activ.")
game.set_event_flag("okey_card", 1)
say("Hong-Hae:")
say("")
say("Evenimentul a fost pornit.")
say("")
elseif s==2 then
notice_all("[!]: Evenimentul Okey Card a luat sfarsit.")
game.set_event_flag("okey_card", 0)
say("Hong-Hae:")
say("")
say("Evenimentul a luat sfarsit.")
say("")
elseif s==3 then
say("Hong-Hae:")
say("")
say("Cat de mare doresti sa fie sansa de aruncare?")
say("")
say("Între 1-100:")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say("Eveniment cufere luna:")
say("")
say("Valorile introduse nu sunt bune.")
else
game.set_event_flag("okey_card_chance", new_chance)
say("Hong-Hae:")
say("")
say("sansa a fost modificata; sansa " ..new_chance.. "%.")
say("")
end
elseif s==4 then
return
end
end
end
end
endas avea nevoie de un quest sa si activez/dezactivez event, asta nu merge.MaestroYT scrie: ↑22 Oct 2019, 01:57 Încearcă cu ăsta.În loc de 50011 pui codul itemului de la Okey CardCod: Selectaţi tot
quest okey_card begin state start begin when login begin if game.get_event_flag("okey_card") == 1 then notice("[!]:Evenimentul Okey Card este activ!") end end when kill with not npc.is_pc() and game.get_event_flag("okey_card") == 1 begin local chance = number(1, 100) local chance_max = game.get_event_flag("okey_card_change") if chance <= chance_max then pc.give_item2(50011) -- pc.give_item2(50011) else end end when 20094.chat."GM: Eveniment Okey Card " with pc.is_gm() begin if pc.is_gm() then say("Hong-Hae:") say("") say("Ce doresti sa faci?") say("") if game.get_event_flag("okey_card") == 0 then say("Evenimentul cufarul lunii este oprit.") say("") else say("Evenimentul cufarul lunii este pornit.") say("") end local s=select("Porneste cufere","Opreste cufere","sansa de drop al cufere","Iesire") if s==1 then notice_all("[!]: Drop-ul la Okey Card este activ.") game.set_event_flag("okey_card", 1) say("Hong-Hae:") say("") say("Evenimentul a fost pornit.") say("") elseif s==2 then notice_all("[!]: Evenimentul Okey Card a luat sfarsit.") game.set_event_flag("okey_card", 0) say("Hong-Hae:") say("") say("Evenimentul a luat sfarsit.") say("") elseif s==3 then say("Hong-Hae:") say("") say("Cat de mare doresti sa fie sansa de aruncare?") say("") say("Între 1-100:") say("") local new_chance = tonumber(input()) if new_chance < 0 or new_chance > 100 then say("Eveniment cufere luna:") say("") say("Valorile introduse nu sunt bune.") else game.set_event_flag("okey_card_chance", new_chance) say("Hong-Hae:") say("") say("sansa a fost modificata; sansa " ..new_chance.. "%.") say("") end elseif s==4 then return end end end end end
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 107 vizitatori