• 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 This script cause LAG!?

Nubaza

LUA Scripter
Joined
Jun 5, 2011
Messages
337
Solutions
1
Reaction score
23
Location
Chile
Hello, i have succsefully added the function onMove to my creatureevents.
That is the function: http://otland.net/f35/creatureevent-onmove-very-advanced-134016/

And i have make this script anti-clon item...
The question it's: This cause lag?

LUA:
function onMoveItem(moveItem, frompos, position, cid)
	if cid and isPlayer(cid) then
		doSavePlayer(cid)
	end
        return true
end
function onTradeAccept(cid, target, item)
     doSavePlayer(cid)
     doSavePlayer(target) 
     return true
end

Thanks!
 
Well, it just save 2 character per execution, if in your ot there is like 500 players all making trades, then yes, but I dont think it will cause lag
 
Well you are sending a query on every single item move.
You should not be worried about the trade part however the items may cause some issues. You should add a cooldown to that.
 
Back
Top