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

Erros and Crashed

HeberPcL

[PowerOT.com.br]
Joined
Aug 21, 2007
Messages
1,292
Reaction score
51
Location
Brazil
GitHub
heberpcl
Version: The Forgotten Server v0.2.13 (Mystic Spirit)
I have many problems ...
one of them is the skill of paladin rising very quickly.
The other that is not saving.

vocations.xml
<vocation id="3" name="Paladin" description="a paladin" gaincap="30" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.4" attackspeed="500" soulmax="500" gainsoulticks="120" fromvoc="3">
<formula meleeDamage="0.9" distDamage="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>

creaturesscript/login.lua *This script is not working
function autoSavePlayers(parameters)
saveData()
print("Server save...")
local eventServ = addEvent(autoSavePlayers, minutes, parameters)
alryInitServSave = eventServ
end

I tried to use a npc to save...
npc/scripts/save.lua *Also lock the server.
local SAVE_FREQUENCE = 35 -- seconds

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local saveTimer = SAVE_FREQUENCE

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink()
saveTimer = saveTimer - 1
if saveTimer == 0 then
saveData()
print("Server save...")
saveTimer = SAVE_FREQUENCE
end
end
npcHandler:addModule(FocusModule:new())


someone could help me?

thxx !!
 
Last edited:
Try using this
Code:
	<vocation id="3" name="Paladin" description="a paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.4" 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>


what distro are u using?
i don't think that login.lua is from tfs
 
So you edited Login.lua, use this:

Code:
function onLogin(cid)
	registerCreatureEvent(cid, "PlayerDeath")
	return TRUE
end

To save players, just say /closeserver with a GM account.

This will KICK all PLAYERs and they will be saved, then u can manually close the server window.

Did you fix the paladin thing?
 
Back
Top