• 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!

TFS 1.X+ Problem with movement/OnEquip

Animera

* * * * *
Joined
Dec 9, 2008
Messages
2,429
Solutions
5
Reaction score
603
Location
ANIMERA.ONLINE
DISTRO: TFS 1.2

When i try to register an itemid with a script instead of the onEquipItem function, the item attributes do not work anymore e.g. (physical resistance, magiclevelpoints etc).

Any solution for this in lua or by source editing?(prefered lua as i am not known yet with the source editing language).

Code:
return callFunction(player, item.uid, slot)

I've tried this but i only get an error (nil value).

Kind regards
 
Last edited:
what are you trying to do? you might not even have to use onEquip
 
in 0.4 it's callFunction(cid, item.uid, slot, true)
try and see if callFunction(player, item.uid, slot, true) works

alternatively you could possibly make a workaround with Player:onMoveItem
 
Last edited:
I think callFunction() should be implemented on the newest TFS, but this is what I did for temporary fixing the issue.

Thanks, i've compiled it without errors.
Unfortunatly no results, script executed, on equip doesn't work anymore (not only the attributes but stuffs as rings now won't execute either..)


EDIT: I've managed to make it work. For those who wants to know how. Check the link. Also check the posts made earlier in the thread to make it work.
 
Last edited:
Back
Top