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

advancedsave

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
its makes bug and closes server and lags how to fix this?
Code:
[19/11/2010 18:43:20] [Error - CreatureScript Interface] 
[19/11/2010 18:43:20] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:20] Description: 
[19/11/2010 18:43:20] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:20] [Error - CreatureScript Interface] 
[19/11/2010 18:43:20] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:20] Description: 
[19/11/2010 18:43:20] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:21] [Error - CreatureScript Interface] 
[19/11/2010 18:43:21] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:21] Description: 
[19/11/2010 18:43:21] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:21] [Error - CreatureScript Interface] 
[19/11/2010 18:43:21] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:21] Description: 
[19/11/2010 18:43:21] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:22] [Error - CreatureScript Interface] 
[19/11/2010 18:43:22] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:22] Description: 
[19/11/2010 18:43:22] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:22] [Error - CreatureScript Interface] 
[19/11/2010 18:43:22] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:22] Description: 
[19/11/2010 18:43:22] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:23] [Error - CreatureScript Interface] 
[19/11/2010 18:43:23] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:23] Description: 
[19/11/2010 18:43:23] (luaCreateCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:23] [Error - CreatureScript Interface] 
[19/11/2010 18:43:23] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:23] Description: 
[19/11/2010 18:43:23] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:24] [Error - CreatureScript Interface] 
[19/11/2010 18:43:24] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:24] Description: 
[19/11/2010 18:43:24] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:24] [Error - CreatureScript Interface] 
[19/11/2010 18:43:24] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:24] Description: 
[19/11/2010 18:43:24] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:25] [Error - CreatureScript Interface] 
[19/11/2010 18:43:25] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:25] Description: 
[19/11/2010 18:43:25] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:25] [Error - CreatureScript Interface] 
[19/11/2010 18:43:25] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:25] Description: 
[19/11/2010 18:43:25] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:26] [Error - CreatureScript Interface] 
[19/11/2010 18:43:26] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:26] Description: 
[19/11/2010 18:43:26] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:26] [Error - CreatureScript Interface] 
[19/11/2010 18:43:26] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:26] Description: 
[19/11/2010 18:43:26] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:27] [Error - CreatureScript Interface] 
[19/11/2010 18:43:27] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:27] Description: 
[19/11/2010 18:43:27] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:27] [Error - CreatureScript Interface] 
[19/11/2010 18:43:27] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:27] Description: 
[19/11/2010 18:43:27] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:28] [Error - CreatureScript Interface] 
[19/11/2010 18:43:28] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:28] Description: 
[19/11/2010 18:43:28] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:28] [Error - CreatureScript Interface] 
[19/11/2010 18:43:28] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:28] Description: 
[19/11/2010 18:43:28] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:29] [Error - CreatureScript Interface] 
[19/11/2010 18:43:29] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:29] Description: 
[19/11/2010 18:43:29] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:29] [Error - CreatureScript Interface] 
[19/11/2010 18:43:29] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:29] Description: 
[19/11/2010 18:43:29] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:30] [Error - CreatureScript Interface] 
[19/11/2010 18:43:30] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:30] Description: 
[19/11/2010 18:43:30] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:30] [Error - CreatureScript Interface] 
[19/11/2010 18:43:30] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:30] Description: 
[19/11/2010 18:43:31] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:31] [Error - CreatureScript Interface] 
[19/11/2010 18:43:31] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:31] Description: 
[19/11/2010 18:43:31] (luaSetCombatArea) This function can only be used while loading the script.

[19/11/2010 18:43:31] [Error - CreatureScript Interface] 
[19/11/2010 18:43:31] data/creaturescripts/scripts/advancesave.lua:onAdvance
[19/11/2010 18:43:32] Description: 
[19/11/2010 18:43:32] (luaSetCombatArea) This function can only be used while loading the script.
 
all you need is
Code:
local config = {
	savePlayersOnAdvance = true
}

function onAdvance(cid, skill, oldLevel, newLevel)
	if(config.savePlayersOnAdvance) then
		doPlayerSave(cid, true)
	end

	return true
end
 
Code:
local config = {
	savePlayersOnAdvance = true
}

function onAdvance(cid, skill, oldLevel, newLevel)
	if(config.savePlayersOnAdvance) then
		doPlayerSave(cid, true)
	end

	return true
end

edit:
lol same but why this error then?
 
Back
Top