• 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!

need remove stone script

There you have, anyway like Pitufo said its wrong section.

Code:
-- Script by Ates, Add/Remove Stone!
function onUse(cid, item, fromPosition, itemEx, toPosition)
         local pos = {x=31745, y=31950, z=11, stackpos=1}
         local stone = 1304
         local stoneFromPos = getThingfromPos(pos)

if item.itemid == 1945 and item.uid == 60007 then
         doRemoveItem(stoneFromPos.uid, 1)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed a Stone.")
         doTransformItem(item.uid,item.id+1)
elseif item.itemid == 1946 and item.uid == 60007 then
         doCreateItem(stone, 1, pos)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You added a Stone.")
         doTransformItem(item.uid,item.id-1)
     end
end
 
Back
Top