deu esse erro [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/loginvoc.lua)
[12/03/2012 00:46:41] data/creaturescripts/scripts/loginvoc.lua:12: '<eof>' expected near 'end'
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

deu esse erro [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/loginvoc.lua)
[12/03/2012 00:46:41] data/creaturescripts/scripts/loginvoc.lua:12: '<eof>' expected near 'end'
deu esse erro [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/loginvoc.lua)
[12/03/2012 00:46:41] data/creaturescripts/scripts/loginvoc.lua:12: '<eof>' expected near 'end'
function onLogin(cid)vocstatus = getPlayerStorageValue(cid, 6006) -- mude conforme a storage de um das vocations no caso esse é do elder druid que vira high saintess
if vocstatus == 1 then
doPlayerSetVocation(cid, 9) -- esse é o numero da vocation que vai lá no vocations.xml creio que seja já o novo elder druid
return TRUE
end
end
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

agora eu nao consigo entrar no jogo aparece assim no execultavel ke eu entrei mais dai eu sai mais nao aparece no tibia.exe
[12/03/2012 01:02:31] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
[12/03/2012 01:02:31] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
e porque algunm script ta pedindo pra identificar essa vocaçao e so voce adciona uma vocaçao nova na vocations.xml adciona isso
</vocation>
<vocation id="4294967295" name="Bugada" description="an Budado" needpremium="0" gaincap="25" gainhp="25" gainmana="15" gainhpticks="8" gainhpamount="10" gainmanaticks="2" gainmanaamount="30" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

[12/03/2012 01:20:42] Joder has logged in.
[12/03/2012 01:20:42] Joder has logged out.
ta dando isso
info
Grupo: Campones
Registrado: 12/01/12
Posts: 9
Reputação: 0
Char no Tibia: Brunocchi

Se ele colocar esse numero,vai ficar mais bugado ainda, você deve ter errado alguma coisa na sua acconut.xml
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

nao eu axei o ploblema pq eu nao entrava mais nao sei resolver e o logvoc.lua algo esta errado la.puts nao tem outro geito sera de fazer vocaçoes vip vc's tem ot né. se tem como fizeram as voc vip
info
Grupo: Campones
Registrado: 05/10/11
Posts: 27
Reputação: +1
Char no Tibia: Exivinha ( Ot )

Mais quando a vip acaba as vocações voltam ao normal? ou continua com a vocação vip ?
Posta seu login.lua ai
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

local config = {
loginMessage = getConfigValue('loginMessage')
}
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, "KillingInTheNameOf")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "conected")
registerCreatureEvent(cid, "reborn")
registerCreatureEvent(cid, "DeathBroadcast")
registerCreatureEvent(cid, "rep")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "ArenaKill")
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
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) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
return true
end
info
Grupo: Campones
Registrado: 12/01/12
Posts: 9
Reputação: 0
Char no Tibia: Brunocchi
sim você quem ira criar a storage...e no .xml voce coloca assim DIGAMOS
<event type="login" name="VocLogin" script="loginvoc.lua"/>
<event type="login" name="VocLogin2" script="loginvoc2.lua"/>
<event type="login" name="VocLogin3" script="loginvoc3.lua"/>
<event type="login" name="VocLogin4" script="loginvoc4.lua"/>