• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua exp ring problem

gunz

GunzOT Owner
Premium User
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:

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/
 
Back
Top