• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help in CreatureScript onThink

iurygoncalves

New Member
Joined
Aug 14, 2008
Messages
10
Reaction score
0
Hello, I need a creaturescript onThink that when the player put an item in the bag, change the item in slotRing on another item. Can anyone help me? It would be in real time, so I'm having great difficulty.

function onThink()
if isPlayer(cid) then
if getPlayerItemCount(cid, 2159) >= 1 then
doTransformItem(2154, 2153)
end
end
end
 
Last edited:
this is movements... and pretty diffucion script i even dont know if that function excist anyways this is stupid to do it... very stupid todo becouse player i gues wont see that he has item in backpack and then automaticly on ring lua just will do it too fast... automaticly this script should waste time i thinking so....
 
Because he wants it to happen automatically? Parameters for function onThink in creaturescripts are cid, interval
 
It's not possible to use this un moviment because it's a unequipable item and he cames in the right place when you creature a character. Someone can give me an example how to use this function?
 
Back
Top