HeberPcL
[PowerOT.com.br]
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
creaturesscript/login.lua *This script is not working
I tried to use a npc to save...
npc/scripts/save.lua *Also lock the server.
someone could help me?
thxx !!
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) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(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: