Listo
New Member
- Joined
- Aug 17, 2008
- Messages
- 222
- Reaction score
- 0
Hey guys,
I made a script, the meaning is: Player pulls a lever>stone gets removed.
So this is my script, I am getting debugged if I use the lever :/
Using the latest TFS Mystic Spirit for 9,45
I made a script, the meaning is: Player pulls a lever>stone gets removed.
So this is my script, I am getting debugged if I use the lever :/
Using the latest TFS Mystic Spirit for 9,45
Thanks in advancefunction onUse(cid, item, fromPosition, itemEx, toPosition)
stonepos = {x=1235, y=1095, z=9, stackpos=1}
stonepos = getThingfromPos(stonepos)
if item.itemid == 1945 and item.uid == 1500 then
doRemoveItem(stonepos.uid,1304)
doTransformItem(item.uid,1946)
doPlayerSendTextMessage(cid,22,"You can hear that somewhere has change something. It cant be so far.")
elseif(item.itemid == 1946 and item.uid == 1500) then
doCreateItem(stonepos.uid,1304)
doTransformItem(item.uid,1945)
doPlayerSendTextMessage(cid,22,"You can hear that somewhere has change something. It cant be so far.")
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end