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

Action: lever script help

YugiNao

Banned User
Joined
Nov 22, 2008
Messages
211
Reaction score
3
My lever doesn't work ingame gives error in console to,
This is how i added it.

Code:
<action itemid="5000" event="script" value="other/lever1.lua"/>

and here is the script.

Code:
onUse(cid, item)
      if item.itemid == 1946 then
             doTransformItem(item.uid, item.itemid-1)
             return true
      end

      if item.actionid ~= 5000 then
              return true
      end
      doPlayerAddItem(cid, 2270, 1)
	  doPlayerRemoveMoney(cid, 50000)
      doTransformItem(item.uid, item.itemid+1)
      return true
end
 
Back
Top