Quest:
quest anti_exp begin
state start begin
when login begin
cmdchat("antiexp_index "..q.getcurrentquestindex())
end
when button or info begin
if pc.getqf("antiexp") == 0 then
pc.block_exp()
pc.setqf("antiexp", 1)
chat("Inelul anti exp a fost activat!!!")
elseif pc.getqf("antiexp") == 1 then
pc.unblock_exp()
pc.setqf("antiexp", 0)
chat("Inelul antiexp a fost dezactivat!!!")
end
end
end
end
state start begin
when login begin
cmdchat("antiexp_index "..q.getcurrentquestindex())
end
when button or info begin
if pc.getqf("antiexp") == 0 then
pc.block_exp()
pc.setqf("antiexp", 1)
chat("Inelul anti exp a fost activat!!!")
elseif pc.getqf("antiexp") == 1 then
pc.unblock_exp()
pc.setqf("antiexp", 0)
chat("Inelul antiexp a fost dezactivat!!!")
end
end
end
end
Eroare:
QUEST : anti_exp
STATE : start
WHEN : login
WHEN : button or
WHEN : info
Calls undeclared function! :
pc.block_exp
pc.unblock_exp
Abort (core dumped)
STATE : start
WHEN : login
WHEN : button or
WHEN : info
Calls undeclared function! :
pc.block_exp
pc.unblock_exp
Abort (core dumped)





