• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

Simple block OnUse/OnMoveItem/OnTradeRequest

Klank

Althea ¤ A New World Developer
Joined
Feb 21, 2008
Messages
1,096
Reaction score
663
Location
Norway
Klank submitted a new resource:

Simple block OnUse and OnMoveItem - Block items to be eaten/moved/traded

Hello,

A useful code for those who want to add items in map, but only for showoff.


How does it work? Simply add a action id of your preference on an item in RME. In this case, it is a brown mushroom. This will make sure it is not eatable, moveable or tradeable.
View attachment 85783


Lua:
local ActionId = 999

-- THIS IS USED TO DISABLE THE POSSIBILITY TO EAT FOOD OR MAKE ITEM NORMALLY USEABLE NOT.
local returnFalse = Action()
function returnFalse.onUse(player...

Read more about this resource...
 
Back
Top