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

Server lag when pressing on chests.

Wifebeater

New Member
Joined
Feb 24, 2011
Messages
60
Reaction score
1
Hello, got a 0.3.6 , 8.54 server

when people presses on the chests in game, i get this error in console

Code:
[12/03/2011 22:59:37] [Error - Action Interface] 
[12/03/2011 22:59:37] data/actions/scripts/quests/master archer's armor.lua:onUse
[12/03/2011 22:59:38] Description: 
[12/03/2011 22:59:38] (luaDoAddContainerItem) Container not found

And it lags for everyone when u press on the chest, like 1 sec and the lag is gone. if u spam it , yeah.. it lags rly much :S What's the problem? how do i fix this.
 
Hello, got a 0.3.6 , 8.54 server

when people presses on the chests in game, i get this error in console

Code:
[12/03/2011 22:59:37] [Error - Action Interface] 
[12/03/2011 22:59:37] data/actions/scripts/quests/master archer's armor.lua:onUse
[12/03/2011 22:59:38] Description: 
[12/03/2011 22:59:38] (luaDoAddContainerItem) Container not found

And it lags for everyone when u press on the chest, like 1 sec and the lag is gone. if u spam it , yeah.. it lags rly much :S What's the problem? how do i fix this.

well, maybe the problem is that you don't post the script o.0
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 1040) < 1 then
        local bp = doPlayerAddItem(cid, 8888, 1)
		doAddContainerItem(bp, 2152, 100)
		doAddContainerItem(bp, 2273, 10)
		doAddContainerItem(bp, 2268, 10)
		doAddContainerItem(bp, 2313, 30)
		doAddContainerItem(bp, 2311, 50)
        setPlayerStorageValue(cid, 1040, 1)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a master archer's armor")
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
    end
return TRUE
end

its the script of my chest, all the chests lag when you press on them but ONLY if u can take items from them, if they are empty it wont lag.
 
Last edited:
Back
Top