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

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
Can I use this function to detect item a player have received? I wanted to create an extra info any time player acquires special eq, not by OnUse etc. If not that way, perhaps any other?
 
I was also considering adding onThink function redirecting to most scripts, like onTradeAccept, to run another script that will check 0.1 second later if player have such item, i actually dont know whether it's possible to start script no2 from sctipt no1. if possible, please give me a solution and I can make it ;)
 
If you want a script (code) to run 0.1 sec later you can do this:
addEvent(100, (function(cid)
.......
end), cid)

You can also use a movements script: AddItem/Equip might help you.
 
Back
Top