• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need help with script that create 4 square of stone(one stone)

Diarreamental

Banned User
Joined
Jul 6, 2015
Messages
463
Solutions
1
Reaction score
85
Hello i need help with this script that create/remove one bug stone thats is made of 4 sprites
(4 sqm) = 1 rock
The script don't work and dont gave me error in console i tried to changing somethings but
i can't figure out house to make it work
i use tfs 0.3.7

Code:
function onUse(cid, item, frompos, item2, topos)
gatepos1 = {x=32604, y=31904, z=3, stackpos=1}
gatepos2 = {x=32605, y=31904, z=3, stackpos=1}
gatepos3 = {x=32604, y=31905, z=3, stackpos=1}
gatepos4 = {x=32605, y=31905, z=3, stackpos=1}
getgate1 = getThingfromPos(gatepos1)
getgate2 = getThingfromPos(gatepos2)
getgate3 = getThingfromPos(gatepos3)
getgate4 = getThingfromPos(gatepos4)

if item.uid == 25087 and item.itemid == 1945 then
doRemoveItem(getgate1.uid,1)
doRemoveItem(getgate2.uid,1)
doRemoveItem(getgate3.uid,1)
doRemoveItem(getgate4.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 25087 and item.itemid == 1946 then
doCreateItem(1296,1,gatepos1)
doCreateItem(1297,1,gatepos2)
doCreateItem(1298,1,gatepos3)
doCreateItem(1299,1,gatepos4)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end


help me pls
 
Back
Top