How do I tell the script wich(location or smth like that) item to change aid using these functions?
This one deletes current aid(I think)
This function sets aid:
Cuz I am getting error -
Here is example of script:
HalP!
This one deletes current aid(I think)
Code:
doItemEraseAttribute(uid, key)
This function sets aid:
Code:
doItemSetAttribute(uid, key, value) //Keys are aid, uid
Cuz I am getting error -
Code:
item not found
Here is example of script:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local enter = {x=2975, y=3083, z=7}
local TreePos = {x=2975, y=3081, z=7} -- ignore tthis one
if getPlayerStorageValue(cid, 15007) == 1 then
doTeleportThing(cid, enter, TRUE)
doItemSetAttribute(uid, aid, 7788)
else
doSendMagicEffect(enter, CONST_ME_POFF)
end
end
HalP!
Last edited: