am facut un buton antiexp langa inventar si iam facut un quest ca sa mearga...
dar nu reusesc. am facut asa:
anti_exp.quest:9:expecting 'state'
Abort (core dumped)
ma poate ajuta cineva?

quest antiexp begin
state start begin
when login begin
cmdchat("antiexp "..q.getcurrentquestindex())
pc.setqf("antiexp2", 0)
end -- when
when button or info begin
if pc.getqf("antiexp2") == 0 then
pc.setqf("antiexp2", 1)
chat("Anti EXP activat!")
local ep = pc.get_exp()
pc.give_exp2(-ep)
timer("esperienza2", 3)
elseif pc.getqf("antiexp2") == 1 then
pc.setqf("antiexp2", 0)
chat("Anti EXP desactivat")
end -- if
end -- when
when esperienza2.timer with pc.getqf("antiexp2") == 1 begin
local ep = pc.get_exp()
pc.give_exp2(-ep)
pc.setqf("antiexp2", 1)
end -- when
end --state
end --quest
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 21 vizitatori