• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

What is going on with MODERN AAC?

Grozzmo

Member
Joined
Nov 29, 2007
Messages
139
Reaction score
13
Hello guys, I recently updated my server from version 8.54 to version 8.60 and I also fixed a new Modern AAC with same settings as I had before and so on.

I'm using Modern AAC Trunk 266 I havent changed anything in it. I got 2 problems with it.

I fixed all samples with items and such ml, promotion and everything. When I login to all different vocations I got the same eq and runes as I want BUT I also get like jacket,club,torch and a bag I got no clue why I deleted all these items even from Rook Sample.

The second problem I got is even tought ALL my samples are promoted, when I create a new char they're never promoted I got no clue why could anyone help me out here? I'm kind of helpless have been trying for 7 hours whole night and I deleted databases and fixed new ones like 3x nothing works.

So anyone please help me out.

Thank you.
 
I love you man thanks alot for the help and the fast answer. But the characters are still not promoted, I tryed everything. I dont know why they dont follow the samples promotion - 1 but all items,lvls,ml are exactly the same.

Do you know what the problem may be? Seems like a big bug I tryed to change ALL Arrays in config so there were only promoted vocations even. And it still didnt work :/ My samples are promoted when they loggin but no other chars which are created.

I would be so happy if you would try to help me out Thank you alot!
 
LUA:
local stg = 1239
function onLogin(cid)
if getPlayerStorageValue(cid, stg) == -1 then
	doPlayerSetPromotionLevel(cid, 2)
	setPlayerStorageValue(cid, stg, 1)
	end
return TRUE
end
paste that in the first line of (your server folder/data/creaturescripts/scripts) login.lua
 
I did, started up the server after and made a new character on my account page and logged in to game, still no promotion :/

Thanks alot for the fast answer tought! And your effort, hope you're willing to continue with it I would be so glad you're really nice!

Here's how my login.lua looks now:

Code:
local stg = 1239
function onLogin(cid)
if getPlayerStorageValue(cid, stg) == -1 then
	doPlayerSetPromotionLevel(cid, 2)
	setPlayerStorageValue(cid, stg, 1)
	end
return TRUE
end
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	return true
end
 
LUA:
local stg = 1239
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
	if getPlayerStorageValue(cid, stg) == -1 then
		doPlayerSetPromotionLevel(cid, 2)
		setPlayerStorageValue(cid, stg, 1)
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	return true
end
 
Copy pasted your script to login.lua

When I login and look on myself I get this: 08:34 You see yourself. You are .

And a error in the console stating: Warning - Vocations::getVocation] Vocation 4294967295 not found.

Thanks for the help once again.

Wonder what the problem is, it might be modern aac not supporting tibia client 8.60 maybe?=/

Edit 1 I mean the samples work fine they're promoted but when I create the new chars they seem to not "copy" the promotion - 1 from the samples.

Edit 2 If it matters, when I create the new characters and search on them in the account page they're still not promoted.
 
Last edited:
LUA:
local stg = 1239
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
 
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
	if getPlayerStorageValue(cid, stg) == -1 then
		doPlayerSetPromotionLevel(cid, 1)
		setPlayerStorageValue(cid, stg, 1)
	end
 
	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end
 
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end
 
	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end
 
	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
 
	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end
 
	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	return true
end

Wow, I am really stupid..
Sorry for that.
 
IT WORKED! THANKS ALOT MAN I love you =) That was so kind of you to help me out! I really tought it was something with the account, thanks alot Ive been up whole night havent sleept haha worked for hours and I said to myself I won't sleep till i fix atleast this bug :)

Wow, thats really nice of you. I wish you the best! I'm going to sleep now. Peace :)
 
Back
Top