- Joined
- Dec 30, 2007
- Messages
- 529
- Solutions
- 5
- Reaction score
- 191
Hello,
I have such a big problem with experience ring. When I try to equip the ring, the server sometimes crash sometims not and I don't really find where is the problem. Also the server reply segmantation fault and nothing else.I'm using tfs 0.4 Here is the script:
Thank you,
Gunz/
I have such a big problem with experience ring. When I try to equip the ring, the server sometimes crash sometims not and I don't really find where is the problem. Also the server reply segmantation fault and nothing else.I'm using tfs 0.4 Here is the script:
PHP:
function onEquip(cid, item, slot)
doTransformItem(item.uid, 111)
doDecayItem(item.uid)
doPlayerSendTextMessage(cid, 22, 'Now you have 2x extra experience!')
doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
return true
end
function onDeEquip(cid, item, slot)
doTransformItem(item.uid, 110)
doPlayerSendTextMessage(cid, 22, 'Extra experience ended.')
doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid)))
return true
end
Thank you,
Gunz/