lunara
Member
- Joined
- Dec 20, 2014
- Messages
- 140
- Reaction score
- 8
When i press the lever it wont happing anything...
here is a pic when i click
I use tfs 0.4 SVN
Here my rats.lua
REPP++ Help!
here is a pic when i click
I use tfs 0.4 SVN
Here my rats.lua
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos = {{x=1099, y=1205, z=8}, {x=1100, y=1205, z=8}, {x=1101, y=1205, z=8}}
getgate = getThingfromPos(gatepos)
if item.uid == 4508 and item.itemid == 1945 and getgate.itemid == 5770 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 4508 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(5770,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end