QuaS
Cykotitan Pwned =/
Nobody is perfect and knows everything, so my questtion is, how does those functions:
onRemoveItem
OnAddItem
works.
I searched forum for this, and found something. But i exactly don't know few things. Get an example:
Okay it can be (if i do really something wrond msg it).
but what add to movements.xml?
Answer this questions pleas.e..
onRemoveItem
OnAddItem
works.
I searched forum for this, and found something. But i exactly don't know few things. Get an example:
Lua:
local cos = {
[1] = {x=3,y=4,z=5},
[2] = {x=5,y=3,z=3}
}
local poss = {
[1] = {x=1,y=2,z=3},
[2] = {x=2, y=3, z= 4}
}
onAddItem(moveitem, tileitem, pos, cid)
local o
for i = 1,2 do if pos = cos[i] then o = i; end end
if moveitem = scrabcoin then --(so if the item that i put for example somewhere is scrab coin then)
doTeleportThing(cid,poss[o])
end
end
Okay it can be (if i do really something wrond msg it).
but what add to movements.xml?
PHP:
<movevent event="AddItem" tileitem="1" /*<<< That is it. What is Tile Item?? */ uniqueid="UUU" /* uid of item on what is dropped scrab coin? */ script="NAMEOFSCRIPT.lua" />
Answer this questions pleas.e..