Hello,
i just write that script:
and that wont working...
i wanna, when player have item with id 7426 equipped on necklace pleace he have stroage 1639 == 2, and when he take out that necklace he back to 1639 == 1. Someone can help with that script? (my goal is, when player equppied an necklace then send magic effects one per second, but when take out magic effects dissapeared).
Thanks for any help,
Erexo
i just write that script:
LUA:
function onThink(cid, interval)
if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 7426 then
if not getPlayerStorageValue(cid,1639) == 2 then
setPlayerStorageValue(cid,1639,2)
end
else
if not getPlayerStorageValue(cid,1639) == 1 then
setPlayerStorageValue(cid,1639,1)
end
end
return TRUE
end
and that wont working...
i wanna, when player have item with id 7426 equipped on necklace pleace he have stroage 1639 == 2, and when he take out that necklace he back to 1639 == 1. Someone can help with that script? (my goal is, when player equppied an necklace then send magic effects one per second, but when take out magic effects dissapeared).
Thanks for any help,
Erexo