Glidarn
Member
First of all i got a duplicated UniqueID in banuta but the thing is, it works so i don't know if i shall remove it or not?
Anyway i'm getting an error though when i'm using it.
You know the shaman outfit quest were you can remove that wall, those switches also got the same UniqueID but as i mentioned it works to remove the wall :blink:
Banuta.lua
edit: I tried to change one of the switches to another uniqueID but then it doesnt work at all and i have the same uniqueID it says duplicate :/
Anyway i'm getting an error though when i'm using it.
[Error - Action Interface]
data/actions/scripts/other/banuta.lua: onUse
Description:
(luaDoremoveitem) Item not Found
You know the shaman outfit quest were you can remove that wall, those switches also got the same UniqueID but as i mentioned it works to remove the wall :blink:
Banuta.lua
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
removals = {
{ item = 3474, pos = { x = 32864 , y = 32556 , z = 11 } },
{ item = 3475, pos = { x = 32865 , y = 32556 , z = 11 } }
}
if item.itemid == 1945 then
for i = 1, #removals do
removals[i].pos.stackpos = 1
doRemoveItem(getThingfromPos(removals[i].pos).uid, 1)
end
doTransformItem(item.uid, item.itemid + 1)
elseif item.itemid == 1946 then
for i = 1, #removals do
doCreateItem(removals[i].item, 1, removals[i].pos)
end
doTransformItem(item.uid, item.itemid - 1)
end
return TRUE
end
edit: I tried to change one of the switches to another uniqueID but then it doesnt work at all and i have the same uniqueID it says duplicate :/
Last edited: