metiu11
Member
- Joined
- Mar 26, 2011
- Messages
- 94
- Solutions
- 2
- Reaction score
- 5
TFS 0.3.6
Hello, i found this script which give skill rate to player.
The problem is when player get this item from chest if he have free necklace slot, it will be placed there.
Then if player want to take off amulet server crashed... can someone help us?
Hello, i found this script which give skill rate to player.
The problem is when player get this item from chest if he have free necklace slot, it will be placed there.
Then if player want to take off amulet server crashed... can someone help us?
Lua:
--Credits to MadMook and Limos for the return trues(what would i do without limos xD)--
-- Remove the "--" if you want premium or level restriction
--if you add an if then add an end!
function onEquip(cid, item, slot)
-- if isPremium(cid) then
-- if getPlayerLevel(cid) >= 8 then
doPlayerSetSkills(cid, 2.5)
-- end
-- end
return true
end
function onDeEquip(cid, item, slot)
-- if isPremium(cid) then
doPlayerSetSkills(cid, 2.0)
-- else
-- doPlayerSetSkills(cid, 1.0)
-- end
return true
end