• 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 Vocation 4294967295 not found. [crashing server]

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
[UPDATED TOPIC FROM THIS POST, PLEASE START READING FROM HERE]

I'm facing an huge bug on my server.

Vocation of players are being changed, apparently randomly.

Sometimes it change from paladin to knight (and so on, changes between existing vocations), and many times it changes to this number: 4294967295

And when that happens, randomly skills or ML bug as well, going to numbers like 5000+, crashing server when attack

This number is present in two files on my server,

mysql.sql
SQL:
CREATE TABLE `bans`
(
	`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
	`type` TINYINT(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion',
	`value` INT UNSIGNED NOT NULL COMMENT 'ip address (integer), player guid or account number',
	`param` INT UNSIGNED NOT NULL DEFAULT 4294967295 COMMENT 'used only for ip banishment mask (integer)',
	`active` TINYINT(1) NOT NULL DEFAULT TRUE,
	`expires` INT NOT NULL,
	`added` INT UNSIGNED NOT NULL,
	`admin_id` INT UNSIGNED NOT NULL DEFAULT 0,
	`comment` TEXT NOT NULL,
	`reason` INT UNSIGNED NOT NULL DEFAULT 0,
	`action` INT UNSIGNED NOT NULL DEFAULT 0,
	`statement` VARCHAR(255) NOT NULL DEFAULT '',
	PRIMARY KEY (`id`),
	KEY `type` (`type`, `value`),
	KEY `active` (`active`)
) ENGINE = InnoDB;

cykotitan's bank system:
Lua:
local function getCount(s)
	local b, e = s:find('%d+')
	return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1
end

I said it's randomly because even my god character got it's vocation changed to that number, and I really don't know what could it be.

I have no creaturescripts that changes vocations, have no custom vocations, nothing like that...

Seriously, I'm desperate :confused::confused:
 
Last edited:
I have this bug before REMOVE the GLobal Save and this bug will stop

You are using rev 3884 TFS 8.6 right??

Yes i have the same bug

REP++++++++++++ PLEASE
 
Yes, I'm using 3884.

conde2, just disabled global save, let's see. ;]

1. Badly edited vocations.

Just edited my vocations.xml:

Lua:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="10" gainmanaticks="6" gainmanaamount="10" manamultiplier="4.0" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="2.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="2.0"/>
		<skill id="2" multiplier="2.0"/>
		<skill id="3" multiplier="2.0"/>
		<skill id="4" multiplier="2.0"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="5" gainmanaticks="1" gainmanaamount="13" manamultiplier="1.1" attackspeed="1850" soulmax="100" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="2.0"/>
		<skill id="2" multiplier="2.0"/>
		<skill id="3" multiplier="2.0"/>
		<skill id="4" multiplier="2.0"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="5" gainmanaticks="1" gainmanaamount="13" manamultiplier="1.1" attackspeed="1850" soulmax="100" gainsoulticks="120" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="1.8"/>
		<skill id="2" multiplier="1.8"/>
		<skill id="3" multiplier="1.8"/>
		<skill id="4" multiplier="1.8"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="1" gainhpamount="11" gainmanaticks="1" gainmanaamount="10" manamultiplier="1.4" attackspeed="1750" soulmax="100" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.2" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.2"/>
		<skill id="1" multiplier="1.2"/>
		<skill id="2" multiplier="1.2"/>
		<skill id="3" multiplier="1.2"/>
		<skill id="4" multiplier="1.1"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="16" gainmanaticks="1" gainmanaamount="8" manamultiplier="3.0" attackspeed="1800" soulmax="100" gainsoulticks="120" fromvoc="4">
		<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.1"/>
		<skill id="1" multiplier="1.1"/>
		<skill id="2" multiplier="1.1"/>
		<skill id="3" multiplier="1.1"/>
		<skill id="4" multiplier="1.4"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="13" gainmanaticks="1" gainmanaamount="25" manamultiplier="1.1" attackspeed="1850" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="2.0"/>
		<skill id="2" multiplier="2.0"/>
		<skill id="3" multiplier="2.0"/>
		<skill id="4" multiplier="2.0"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="13" gainmanaticks="1" gainmanaamount="25" manamultiplier="1.1" attackspeed="1850" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="1.8"/>
		<skill id="2" multiplier="1.8"/>
		<skill id="3" multiplier="1.8"/>
		<skill id="4" multiplier="1.8"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="1" gainhpamount="25" gainmanaticks="1" gainmanaamount="16" manamultiplier="1.4" attackspeed="1750" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.2" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.2"/>
		<skill id="1" multiplier="1.2"/>
		<skill id="2" multiplier="1.2"/>
		<skill id="3" multiplier="1.2"/>
		<skill id="4" multiplier="1.1"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	
	<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="60" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="1800" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
		<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.1"/>
		<skill id="1" multiplier="1.1"/>
		<skill id="2" multiplier="1.1"/>
		<skill id="3" multiplier="1.1"/>
		<skill id="4" multiplier="1.4"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	
		<!-- DUDE, DON'T DELETE THIS, IT BUGGED WHEN I DID IT-->
	
	<vocation id="9" name="Epic Sorcerer" description="a epic sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="25" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1900" soulmax="299" gainsoulticks="15" fromvoc="5" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.3" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="2.0"/>
		<skill id="2" multiplier="2.0"/>
		<skill id="3" multiplier="2.0"/>
		<skill id="4" multiplier="2.0"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
		</vocation>
	<vocation id="10" name="Epic Druid" description="an epic druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="25" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="1900" soulmax="299" gainsoulticks="15" fromvoc="6" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.3" magDamage="1.2" magHealingDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="1.8"/>
		<skill id="2" multiplier="1.8"/>
		<skill id="3" multiplier="1.8"/>
		<skill id="4" multiplier="1.8"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="11" name="Epic Paladin" description="a epic paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="30" gainmanaticks="3" gainmanaamount="35" manamultiplier="1.4" attackspeed="1750" soulmax="299" gainsoulticks="15" fromvoc="7" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.5" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.1" armor="1.0"/>
		<skill id="0" multiplier="1.2"/>
		<skill id="1" multiplier="1.2"/>
		<skill id="2" multiplier="1.2"/>
		<skill id="3" multiplier="1.2"/>
		<skill id="4" multiplier="1.1"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="12" name="Epic Knight" description="an epic knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="40" gainmanaticks="3" gainmanaamount="30" manamultiplier="3.0" attackspeed="1800" soulmax="299" gainsoulticks="15" fromvoc="8" lessloss="30">
		<formula meleeDamage="1.4" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.2" armor="1.0"/>
		<skill id="0" multiplier="1.1"/>
		<skill id="1" multiplier="1.1"/>
		<skill id="2" multiplier="1.1"/>
		<skill id="3" multiplier="1.1"/>
		<skill id="4" multiplier="1.4"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
</vocations>

3. Promotion script not working properly.

The weird thing is that my GOD character changed vocation as well, and I barely move him. I've suspected about promotion system as well, but when my char changed vocation I didn't know what could be.

4. Look if any of your script uses doPlayerSetVocation function, not only creature events.

Well, I suspected about firstitems.xml and removed it, but I need some time to test.

5. Website script, perhaps?

Possible, but not likely.

-- Edit --

I appreciate everyone's help, I'll rep both because I think the good will is enough for repping, even if it don't work.

To test if it work I have to let the server roll for a while, so I'll sleep and check tomorrow.
Thanks again.
 
Last edited:
Is there any new players which is getting affected by vocations changes or Is it just a few?
 
I've managed to solve the vocation issue by giving player a storage depending on his vocation, at the first time he logs in.

Then an onLogin creaturescript that check this storage, and set player vocation according to it.

But.

The real bug wasn't this one.

The real bug is still unsolved.


So, to the facts:

- Even with the correct vocation, a player bugged his skills and crashed server

- When server crashed, I opened phpmyadmin and I could see his skills was raising like 1 skill per milisecond, and the interesting about it is that the server didn't crash, it freezed. I think this skill stuff requires all resources of server and freezes it... I can see my character list but can't log in.

- I've asked him what happened, he said he got kicked by the anti-idle system while training, then he relog and start attacking, and skill then bugged.

- I have custom login.lua, and it does change player's EXPERIENCE rate depending on some parameters, my login.lua:

Lua:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')),
}

function onLogin(cid)

	local bot_check = isBotter(cid)
	local pa = isVIP(cid)
	local woe = infoLua[2] == getPlayerGuildId(cid)
	local nonwoe = infoLua[2] ~= getPlayerGuildId(cid)
	local Guild_ID = getPlayerGuildId(cid)
	
dofile("./_woe.lua")
	Woe.getInfo()
	if pa == FALSE and bot_check == FALSE then
		doPlayerSetExperienceRate(cid, 1)
	elseif pa == FALSE and bot_check == TRUE and nonwoe then
		doPlayerSetExperienceRate(cid, 0.85)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é BOTTER [-15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: -15%.")
		
	elseif pa == TRUE and bot_check == TRUE and nonwoe then
		doPlayerSetExperienceRate(cid, 1.05)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é VIP [+20% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é BOTTER [-15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +5%.")
		
	elseif pa == TRUE and bot_check == FALSE and nonwoe then
		doPlayerSetExperienceRate(cid, 1.2)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é VIP [+20% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +20%.")
		
	elseif pa == FALSE and bot_check == TRUE and woe then
		doPlayerSetExperienceRate(cid, 1.0)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é BOTTER [-15% exp].")		
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sua guild venceu o último War of Emperium [+15% exp].")			
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +0%.")
		
	elseif pa == TRUE and bot_check == TRUE and woe then
		doPlayerSetExperienceRate(cid, 1.2)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é VIP [+20% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é BOTTER [-15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sua guild venceu o último War of Emperium [+15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +20%.")

	elseif pa == TRUE and bot_check == FALSE and woe then
		doPlayerSetExperienceRate(cid, 1.35)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você é VIP [+20% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sua guild venceu o último War of Emperium [+15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +35%.")

	elseif pa == FALSE and bot_check == FALSE and woe then
		doPlayerSetExperienceRate(cid, 1.15)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sua guild venceu o último War of Emperium [+15% exp].")
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu rate total de exp é: +15%.")
		
end


accountManager = "Account Manager"                       
managerCounter = 0

   for i, player in ipairs(getOnlinePlayers()) do
      if accountManager:lower() == player:lower() then             
      managerCounter = managerCounter + 1
      end 
   end
 
   if managerCounter >= 3 then
      return false
   end
	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) and isSorcerer(cid) then
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
			doPlayerSetStorageValue(cid, 64540, 1)
		elseif(lastLogin == 0) and isDruid(cid) then
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
			doPlayerSetStorageValue(cid, 64541, 1)
		elseif(lastLogin == 0) and isPaladin(cid) then
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
			doPlayerSetStorageValue(cid, 64542, 1)
		elseif(lastLogin == 0) and isKnight(cid) then
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
			doPlayerSetStorageValue(cid, 64543, 1)
		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, "TradeMotd")
	registerCreatureEvent(cid, "AntiBotMotd")

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

registerCreatureEvent(cid, "Grizzly_Adams") 
registerCreatureEvent(cid, "MonsterLoot")
registerCreatureEvent(cid, "inquisition")
registerCreatureEvent(cid, "SpellUp")
registerCreatureEvent(cid, "Channel_Open")
registerCreatureEvent(cid, "Trophy")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "attackguild")	
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "demonOakLogout")
registerCreatureEvent(cid, "demonOakDeath")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "PlayerKill")
registerCreatureEvent(cid, "PythiusDead")
registerCreatureEvent(cid, "GuildMotd")  
registerCreatureEvent(cid, "TradeMotd")
registerCreatureEvent(cid, "Bossy")  
registerCreatureEvent(cid, "VipCheck")
registerCreatureEvent(cid, "yakchal")
registerCreatureEvent(cid, "koshei")
registerCreatureEvent(cid, "renegade_orc")
registerCreatureEvent(cid, "pythius_the_rotten")
registerCreatureEvent(cid, "LevelReward")
registerCreatureEvent(cid, "Playerloook")
registerCreatureEvent(cid, "GM_Look")
registerCreatureEvent(cid, "tirecz")
registerCreatureEvent(cid, "orcus_the_cruel")
registerCreatureEvent(cid, "spirit_of_fire")
registerCreatureEvent(cid, "the_obliverator")
registerCreatureEvent(cid, "war")
registerCreatureEvent(cid, "war_login")
registerCreatureEvent(cid, "vocation_check") 

    if (InitArenaScript ~= 0) then
    InitArenaScript = 1

        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end

    if getPlayerStorageValue(cid, 42309) < 1 then
        for i = 42300, 42309 do
            setPlayerStorageValue(cid, i, 0)
        end
    end

    if getPlayerStorageValue(cid, 42319) < 1 then
        for i = 42310, 42319 do
            setPlayerStorageValue(cid, i, 0)
        end
    end

    if getPlayerStorageValue(cid, 42329) < 1 then
        for i = 42320, 42329 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    if getPlayerStorageValue(cid, 42355) == -1 then
        setPlayerStorageValue(cid, 42355, 0)
    end
    setPlayerStorageValue(cid, 42350, 0)
    setPlayerStorageValue(cid, 42352, 0)
return true
end

And here is the "login" scripts of creaturescripts.xml

Lua:
<event type="login" name="PlayerLogin" event="script" value="login.lua"/><!-- Possible bug-->
<event type="login" name="VipCheck" event="script" value="vipcheck.lua"/><!--Posted bellow-->
<event type="login" name="war_login" event="script" value="war.lua"/><!--War system-->
<event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/><!--War system-->
<event type="login" name="FirstItems" value="firstitems.lua"/><!--Just disabled it-->

Just disabled firstitems.lua, disabled mod as well and made it with samples, to avoid problems.

vipcheck.lua [ I don't think it has anything to do but... ]

Lua:
--- Script by Kekox
function onLogin(cid)
        if getPlayerPremiumDays(cid) > 0 then
		setPlayerStorageValue(cid, 20500, 1)
		elseif getPlayerStorageValue(cid, 20500) == 1 and getPlayerPremiumDays(cid) == 0 then
		local fromPosition = {x = 32369, y = 32241, z = 7}
		doTeleportThing(cid, fromPosition)
		doPlayerSetTown(cid, 2)
		setPlayerStorageValue(cid, 20500, -1)
		doPlayerSendTextMessage(cid, 19, "Sua VIP acabou. O servidor agradece sua colaboração!")
			end
         return true
end

And of course, my anti-idle system:

Lua:
local config = {
	idleWarning = getConfigValue('idleWarningTime'),
	idleKick = getConfigValue('idleKickTime')
}

function onThink(cid, interval)
	if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
		getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
		return true
	end

	local idleTime = getPlayerIdleTime(cid) + interval
	doPlayerSetIdleTime(cid, idleTime)
	if(config.idleKick > 0 and idleTime > config.idleKick) then
		doRemoveCreature(cid)
	elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then
		local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes"
		if(config.idleKick > 0) then
			message = message .. ", you will be disconnected in "
			local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)
			if(diff > 1) then
				message = message .. diff .. " minutes"
			else
				message = message .. "one minute"
			end

			message = message .. " if you are still idle"
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
	end

	return true
end
 
Last edited:
>>> I had the same problem, and could fix it by myself, if anyone needs to know of how I fixed this, feel free to send me a PM, anyway, thank you all for your help.
 
Last edited:
lol go into data, go into xml folder, find vocations, open it, read if any of the vocations say that number or see if any say, fromvoc:4294967295 or along those lines and change accordingly

Also check spells, and ctrl+f type 4294967295.
As well as any doors or any items you have that is for vocations

If it isn't that check the data of the distro you have, and check distro faults.. Otherwise get a new distro
 
but i dont get voc 4294967295, it only changes from voc 4 to 3 or etc, and the server crashes causes of the ML, .. another think is that the manaspent of the player is 0 so, i was thinking that the bug was cause i had int(11) manaspent , i changed to bigint(20) but i think the problem still there..
 
okay go to your database and find the character and account that has no vocation. once you find it delete the character and account. its bugged because when u were on the server you chanaged the vocations.xml and reloaded it and there was some kind of error in doing that so whatever char was on got bugged. if this worked rep me thanks
 
Its smth wrong with your database file, download a new one and use it or see the value of manaspent etc...
 
Back
Top