• 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 How I can create this script?

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
I need script when one player put more of 30 items in X tile this say : "You cannot put more items in this tile."


I giving you rep+++ :thumbup:


Thanks.
 
Understand me cyko, knocking down this one my OT with a bug that 4000 articles place in a door with the anti-push and they me knock down it.
 
You can put protection zone on the door, and change this in config.lua:
Code:
maxItemsPerPZTile = 30
 
Lua:
if(hasFlag(TILESTATE_PROTECTIONZONE) || hasFlag(TILESTATE_PVPZONE))
		{
			const uint32_t itemLimit = g_config.getNumber(ConfigManager::ITEMLIMIT_PROTECTIONZONE);
			if(itemLimit && getThingCount() > itemLimit)
				return RET_TILEISFULL;
		}

u.u
 
Last edited:
Back
Top