• 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 Why my script on opening gate doesnt work?

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
PHP:
function onUse(cid, item, frompos, item2, topos)
--config--
local brama = 1543
local pos1= {x=958, y=972, z=7}
local pos2= {x=958, y=973, z=7}
local pos3= {x=958, y=972, z=5}
local pos4= {x=958, y=973, z=5}



if item.uid == 7000 and item.itemid == 9827 then
doCreateItem(brama, 1, pos1)
doCreateItem(brama, 1, pos2)
doRemoveItem(item.uid, pos3)
doRemoveItem(item.uid, pos4)
end
if item.uid == 7000 and item.itemid == 9828 then
doCreateItem(brama, 1, pos3)
doCreateItem(brama, 1, pos4)
doRemoveItem(item.uid, pos1)
doRemoveItem(item.uid, pos2)
end
return true
end

there is something wrong?? the gate is appearing but not disappearing
 
Back
Top