rsdsebek
C++/LUA coder
- Joined
- Oct 8, 2008
- Messages
- 128
- Reaction score
- 30
Hi
I wrote small script in order to check onEquip lua function:
When I deEquip item console writes:
but when I Equip item console writes:
OnEquip function makes all things two times. What's the reason of this? I made second script for adding skillTry every one second. If I login it adds skillTry properly, but when I deEquip and Equip it's adding double skillTry.
Best
I wrote small script in order to check onEquip lua function:
Code:
function onEquip(cid, item, slot)
print(0)
return true
end
function onDeEquip(cid, item, slot)
print(1)
return true
end
Code:
1
Code:
0
0
Best