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

Lua Make items with UID unopenable

poopsiedoodle

Gibe moni plos
Joined
Nov 23, 2011
Messages
2,458
Reaction score
586
Location
Georgia
I've run into a problem with my Island of Fate EQ cellars. I have a uniqueID on item 6111 so that when I use it it gives me a steel shield. I also have this kind of system with more Item 6111s. But, when I use them, I get the equipment, which is great, but I also open up the armor rack ._. How do I stop this from happening? I don't want it to be openable. It also happens with boxes and chests and any container.
 
use id 5852 and 5853 with "scimitar", "lance" and "sword" and 5860-5863 - they're just not moveable and not openable decorations
 
use id 5852 and 5853 with "scimitar", "lance" and "sword" and 5860-5863 - they're just not moveable and not openable decorations

I already have the weapon racks un-openable. I just need the rest of the containers I use to be unopenable. I'm not using weapon racks for armor and shields. That doesn't make sense.
 
Last edited:
try this
LUA:
function onUse(cid, item, frompos, item2, topos)
return true
end
and actions entry example:
XML:
	<action fromuid="5577" touid="5582" event="script" value="noopen.lua"/>

tested on 0.3.7, moveable only for god, impossible to open for players and god

btw. how do you bump the thread? I'm always getting my posts merged with "--updated--" line
 
try this
LUA:
function onUse(cid, item, frompos, item2, topos)
return true
end
and actions entry example:
XML:
	<action fromuid="5577" touid="5582" event="script" value="noopen.lua"/>

tested on 0.3.7, moveable only for god, impossible to open for players and god

btw. how do you bump the thread? I'm always getting my posts merged with "--updated--" line

Return true isn't working for me ._.
Also, you have to wait exactly 24 hours from your last post to bump unless someone else got the last post on your thread.
 
Back
Top