BUG OX
- Anubis21gl
-

- Mesaje: 115
- Membru din: 30 Oct 2014, 16:16
- Server: www.dirty.mt2.ro
- Regat: Jinno
- Aprecieri: 0
- Mulţumiri: 1
La ox am un bug dar nu imi dau seama cum las putea rezolva,cand scriu /m 20358 pt flori fara nume,un player poate accesa ox-ul lafel ca un GM ( INchide,deschide,da premiu,orice tine de OX )
Bagă acest quest în locul celuia care este în momentul de față!
Cod: Selectaţi tot
quest oxevent_manager begin
state start begin
when login with pc.get_map_index() == 113 begin
addimage(20, 12, "ox.tga")
say("")
say("")
say("")
say("")
say_title("Competiţia OX")
say("")
say("Aici se adună cele mai strălucite minţi din cele")
say("trei regate pentru concursul de inteligenţă.")
say("În timpul acestui test, mai multe întrebari cu")
say("privire la orice subiect va fi afişate.")
say("Deplasaţi-vă la O, dacă credeţi că raspunsul,")
say("este adevărat iar dacă este fals la X.")
say("Doar cei mai buni vor fi premiaţi!")
say("")
end
when letter with pc.get_map_index() == 113 begin
send_letter("Părăseşte competiţia OX")
end
when button or info begin
say_title("Părăseşte competiţia OX")
say("Eşti sigur că vrei să părăseşti competiţia?")
say("")
local s=select("Da","Nu")
if s==2 then
send_letter("Părăseşte competiţia OX")
return
end
local empire = pc.get_empire()
if empire== 1 then
pc.warp(473900, 954600)
elseif empire == 2 then
pc.warp(63200, 166700)
elseif empire == 3 then
pc.warp(959600, 269700)
end
end
when npc_Uriel.chat."Competiţia OX" begin
say_title("Uriel, învăţatul:")
say("")
say("Hey, tu de acolo! Da, da tu - vino până aici!")
say("Hai să iţi arăt ceva interesant.")
say("Competiţia OX. Eu te pot duce acolo.")
say("Am auzit că poţi caştiga premii interesante!")
say("")
wait()
if pc.get_level() < 35 then
say_title("Uriel, învăţatul:")
say("")
say("Îmi pare rău, dar nu ai nivelul necesar pentru")
say("a participa.")
say("")
say_reward("Nivelul minim pentru participare: 35")
say("")
return
end
if game.get_event_flag("oxevent_status") == 0 then
say_title("Uriel, învăţatul:")
say("")
say("Momentan nu am auzit că se desfăşoară nici")
say("o competiţie. Te voi anunţa eu când aflu ceva.")
say("")
elseif game.get_event_flag("oxevent_status") == 1 then
say_title("Uriel, învăţatul:")
say("")
say("Doreşti să participi la competiţie")
say("sau doar să te uiţi?")
say("")
local s = select( "Particip" , "Spectator", "Înapoi" )
if s == 1 then
say_title("Uriel, învăţatul:")
say("")
say("Imediat te voi duce la competiţie.")
say("Succes.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896500, 24600)
elseif s == 2 then
say_title("Uriel, învăţatul:")
say("")
say("Vrei sa fii doar spectator? Ok, alegerea ta.")
say("Imediat vei fi teleportat.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
elseif game.get_event_flag("oxevent_status") == 2 then
say_title("Uriel, învăţatul:")
say("")
say("Îmi pare rău, dar competiţia a început deja ...")
say("Dar, dacă vrei, mai poţi participa ca spectator.")
say("")
local s = select( "Particip" , "Înapoi")
if s == 1 then
say_title("Uriel, învăţatul:")
say("")
say("Imediat vei fi teleportat.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
end
end
when npc_NamelessFlowers.chat."GM: Panou competiţie OX" with pc.is_gm() begin
local stat = oxevent.get_status()
if stat == 0 then
say_gm_title("Panou competiţie OX")
say_gm("")
say_gm("Începe OX?")
say_gm("")
local s = select( "Da" , "Nu")
if s==2 then return end
local v = oxevent.open()
if v == 0 then
say_gm_title("Panou competiţie OX")
say_gm("")
say_gm("Nu am putut încărca întrebările.")
say_gm("")
return
elseif v == 1 then
say_gm_title( "Panou competiţie OX" )
say_gm("")
say_gm("Competiţia OX a început.")
say_gm("")
notice_all("Competiţia OX a început! Pentru a intra la concurs, mergeţi la Uriel.")
notice_all("Succes tuturor!")
else
say("Error1")
return
end
elseif stat == 1 then
say_gm_title( "Panou competiţie OX" )
say_gm("")
say_gm("Porţile sunt încă deschise.")
say_gm("Jucători intraţi: "..oxevent.get_attender())
say_gm("")
local s = select("Închide porţile", "Înapoi")
if s == 1 then
notice_all("Porţile competiţiei OX au fost închise. Mult noroc participanţilor.")
oxevent.close()
end
elseif stat == 2 then
say_gm_title("Panou competiţie OX")
say_gm("")
say_gm("Ce doreşti să faci?")
say_gm("")
local s = select("Adresează întrebare","Oferă un premiu participanţilor","Închide competiţia","Anulează competiţia","Înapoi")
if s == 1 then
local v = oxevent.quiz(1, 30)
if v == 0 then
say_gm_title("Panou competiţie OX")
say("")
say_gm("Eroare adresare întrebare.")
say("")
return
else
say_gm_title("Panou competiţie OX")
say("")
say_gm("Întrebare adresată cu succes.")
say("")
return
end
elseif s == 2 then
say_gm_title("Panou competiţie OX")
say("")
say_gm("Parolă:")
say("")
local sname = input()
if sname == "m2" then
say_gm_title("Panou competiţie OX")
say("")
say_gm("Adaugă obiect:")
say("")
local item_vnum = input()
say_gm_title("Panou competiţie OX")
say("")
say_gm("Adaugă număr articole:")
say("")
local item_count = input()
oxevent.give_item(item_vnum, item_count)
say_gm_title("Panou competiţie OX" )
say("")
say_gm("Participanţii au primit "..item_name(item_vnum))
say("")
notice_all("Participanţii competiţei OX au primit "..item_count.."x"..item_name(item_vnum))
end
elseif s == 3 then
oxevent.end_event()
notice_all("Competiţia OX a luat sfârşit.")
setskin(0)
elseif s == 4 then
say_gm_title("Panou competiţie OX")
say("")
say_gm("Esti sigur că vrei să opreşti competiţia?")
say("")
local s = select("Da", "Nu")
if s == 1 then
oxevent.end_event_force()
end
elseif s == 5 then
return
end
elseif stat == 3 then
say_gm_title("Panou competiţie OX")
say("")
say_gm("Momentan este o întrebare adresată.")
say("")
else
say_gm_title("Panou competiţie OX")
say("")
say_gm("Eroare.")
say("")
return
end
end
end
end
- Anubis21gl
-

- Mesaje: 115
- Membru din: 30 Oct 2014, 16:16
- Server: www.dirty.mt2.ro
- Regat: Jinno
- Aprecieri: 0
- Mulţumiri: 1
Acest quest lasa playerul sa intre la ox de la 35,as vrea sa fie de la level 30.
Pui
Ce e aşa greu pretenţioşilor.. Şi pui tu 30 sau cât vrei in loc de 35
Cod: Selectaţi tot
if pc.get_level() < 35 then- Anubis21gl
-

- Mesaje: 115
- Membru din: 30 Oct 2014, 16:16
- Server: www.dirty.mt2.ro
- Regat: Jinno
- Aprecieri: 0
- Mulţumiri: 1
Schimb cu level 30 acolo,merge dar eu ziceam ca playerii au acces la flori fara nume si pot sa inchida si restul...
[ Mesaj scris via Android ]
[ Mesaj scris via Android ]

Daca tot au acces sterge tot quest ox ( de la uriel , state , si flori fara nume ) si baga-l pe asta
Cod: Selectaţi tot
quest oxevent_manager begin
state start begin
when login with pc.get_map_index() == 113 begin
say_title("Evenimentul OX")
say("")
say("Când se desfăşoară, la evenimentul ox participă o grămadă de jucători.")
say("În timpul acesta multe alte")
say("întrebări despre multe subiecte sunt puse..")
say("Nu este deloc greu, până şi tu poţi ajunge la nivelul altor jucători mai experimentaţi.")
say("")
end
when letter with pc.get_map_index() == 113 begin
send_letter("Leave OX event")
end
when button or info begin
say_title("Părăseşte OX:")
say("Eşti sigur?")
say("")
local s=select("Da.","Nu.")
if s==2 then
send_letter("Părăseşte OX:")
return
end
local empire = pc.get_empire()
if empire== 1 then
pc.warp(473900, 954600)
elseif empire == 2 then
pc.warp(63200, 166700)
elseif empire == 3 then
pc.warp(959600, 269700)
end
end
when 20011.chat."Evenimentul OX:" begin
say_title("Uriel:")
----"123456789012345678901234567890123456789012345678901234567890"|
say("")
say("Hei, tu, cel de colo!")
say("")
say("Da, da.Tu, vino până la mine - pari destul de inteligent.")
say("Avem un concurs care se desfăşoară în timpul liber, al jucătorilor.")
say("")
say("Sunt multe premii care le poţi câştiga dacă participi!")
wait()
if pc.get_level() < 20 then
say_title("Uriel:")
say("")
say("Ai nevoie de nivelul 30 dacă doreşti să participi..")
say("But you can just watch it if you wish.")
say("")
return
end
if game.get_event_flag("oxevent_status") ==30 then
say_title("Uriel:")
say("")
say("Când Evenimentul OX va începe eu ")
say("te voi putea lăsa să intre.")
say("")
elseif game.get_event_flag("oxevent_status") == 1 then
say_title("Uriel:")
say("")
say("Vrei să participi?")
say("")
say("Bineînţeles, nu te oblig, poţi doar să fii spectator..")
say("")
local s = select("Particip.", "Intru ca Spectator.", "Ieşire")
if s == 1 then
say_title("Uriel:")
say("")
say("Vrei să îţi încerci cunoştinţele?")
say("Da! - Să-i dăm drumul.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896500, 24600)
elseif s == 2 then
say_title("Uriel:")
say("")
say("Vrei doar să intrii ca Spectator?")
say("Okai..")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
elseif game.get_event_flag("oxevent_status") == 2 then
say_title("Uriel:")
say("")
say("Ai întârziat.Porţile concursului")
say("sunt deja închise..Îmi pare rău.")
say("")
local s = select("Intru ca Spectator.", "Ieşire")
if s == 1 then
say_title("Uriel:")
say("")
say("Vei fii imediat teleportat..")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
end
end
when 20358.chat."Evenimentul OX - Start" with pc.is_gm() begin
local stat = oxevent.get_status()
if stat == 0 then
say_title("Evenimentul OX")
say("")
say("Porneşti Evenimentul?")
say("")
local s = select( "Da." , "Nu.")
if s==2 then return end
local v = oxevent.open()
if v == 0 then
say_title("Evenimentul OX")
say("")
say("Nu am reuşit să încarc întrebările.")
say("")
return
elseif v == 1 then
say_title("Evenimentul OX")
say("")
say("Evenimentul OX a început cu succes.")
say("")
notice_all("Jucători, evenimentul OX a început..")
notice_all("Vorbiţi cu Uriel pentru a participa!")
else
say("Error1")
return
end
elseif stat == 1 then
say_title("Evenimentul OX")
say("")
say("Porţile sunt deschise:")
say("Jucători intraţi: "..oxevent.get_attender().." players")
say("")
local s = select("Închide porţile", "Înapoi")
if s == 1 then
notice_all("Evenimentul OX a început.Succes jucătorilor.")
notice_all("La fel şi spectatorilor, distraţi-vă..")
oxevent.close()
end
elseif stat == 2 then
say_title("Evenimentul OX")
say("")
local s = select("Pune întrebări.","Premii jucătorilor.","Închide evenimentul.","Închide evenimentul de urgenţă.","Ieşire.")
if s == 1 then
local v = oxevent.quiz(1, 30)
if v == 0 then
say_title("Evenimentul OX")
say("")
say("Error.")
say("")
return
else
say_title("Evenimentul OX")
say("")
say("Succes.")
say("")
return
end
elseif s == 2 then
say_title("Evenimentul OX")
say("")
say("Parola:-m2 ")
say("")
local sname = input()
if sname == "m2" then
say_title("Evenimentul OX")
say("")
say("ID-ul itemului dorit?:")
say("")
local item_vnum = input()
say_title("Evenimentul OX")
say("")
say("Numărul recipientelor?")
say("")
local item_count = input()
oxevent.give_item(item_vnum, item_count)
say_title("Evenimentul OX")
say("")
say("Participanţii evenimentului OX au primit "..item_name(item_vnum))
say("")
notice_all("Participanţii evenimentului OX au primit "..item_count.."x"..item_name(item_vnum))
end
elseif s == 3 then
oxevent.end_event()
notice_all("Evenimentul OX s-a sfârşit.")
notice_all("Toţi participanţii vor fii teleportaţi în statul lor.")
setskin(0)
elseif s == 4 then
say_title("Evenimentul OX")
say("")
say("Doreşti să opreşti OX?")
say("")
local s = select("yes", "no")
if s == 1 then
oxevent.end_event_force()
end
elseif s == 5 then
return
end
elseif stat == 3 then
say_title("Evenimentul OX")
say("")
say("Acum este adresată o întrebare.")
say("")
else
say_title("Panou competiţie OX")
say("")
say("Eroare.")
say("")
return
end
end
end
end
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 30 vizitatori


