• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Some script

sick

Member
Joined
Feb 5, 2009
Messages
258
Reaction score
6
Location
Lithuania, Vilnius
Is there something wrong with this script that the lever doesnt work ( It should remove wall ), im using TFS 0.3.5

PHP:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=996, y=989, z=7, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 6000 and item.itemid == 1945 and getgate.itemid == 1026 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 6000 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1026,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end

Thanks in advance
 
Back
Top