Vreau sa il bag pe buton , cum as putea face asta , este functia asta
Am in invetorywindow.py
{
"name" : "antiexp",
"type" : "button",
"x" : 16,
"y" : 35 + 36 + 36,
"tooltip_text" : "Anti-Experienta",
"default_image" : "d:/ymir work/ui/game/13.tga",
"over_image" : "d:/ymir work/ui/game/14.tga",
"down_image" : "d:/ymir work/ui/game/14.tga",
},
Acesta este questul pentru button , dar nu stiu cum i dau sa mearga butonul
quest anti_exp begin
state start begin
when login begin
cmdchat("Nume_buton "..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






