Gabriel10101 1 Postado Fevereiro 24, 2013 Share Postado Fevereiro 24, 2013 Galera no meu server não upa shield ( upa mais muito devagar),o top tem shield 29,e não upa nem 1% por dia,eu já tentei mecher no xml/vocações e não teve resultado,o que pode ser? <?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="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <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.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Master Sorcerer" description="a Master Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="1"> <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.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Elder Druid" description="a Elder Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="2"> <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.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Royal Paladin" description="a Royal Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="175" gainmanaticks="3" gainmanaamount="175" manamultiplier="1.4" attackspeed="350" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Elite Knight" description="a Elite Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="200" gainmanaticks="3" gainmanaamount="150" manamultiplier="3.0" attackspeed="350" soulmax="100" gainsoulticks="120" fromvoc="4"> <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="2.0" fishing="1.1" experience="1.0"/> </vocation> Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/ Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 24, 2013 Share Postado Fevereiro 24, 2013 (editado) Passa o seu login.lua por favor, fica na pasta creaturescripts/scripts Ou faça você mesmo, adicionando isso no arquivo: doPlayerSetSkillRate(cid, 5, 100) Editado Fevereiro 24, 2013 por Roksas Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1475903 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 24, 2013 Autor Share Postado Fevereiro 24, 2013 (editado) Não deu certo,olha como ficou o login.lua 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, "GuildMotd") registerCreatureEvent(cid, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "BlessDrop") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "forever amulet") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") doPlayerSetSkillRate(cid, 5, 100) if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- 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 Editado Fevereiro 25, 2013 por Gabriel10101 Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476017 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Tenta assim: local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) doPlayerSetSkillRate(cid, 5, 100) 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, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "BlessDrop") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "forever amulet") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") doPlayerSetSkillRate(cid, 5, 100) if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- 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 Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476035 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 Agora ele está upando ( muito devagar) e o kina pego um pouco de shield e já parou (skill 17 com 70%),o que pode ser agora? Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476055 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Veja: local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) doPlayerSetSkillRate(cid, 5, 100) 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, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "BlessDrop") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "forever amulet") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") doPlayerSetSkillRate(cid, 5, 1000) if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- 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 Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476262 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 Cara ta upando,mas bem devagar,como posso aumentar um pouco? Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476305 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Está upando quantos porcento? Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476314 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 (editado) Um kina com skill 27 nos trainers VIP (que batem mais rapido) está upando 1% em 1% Editado Fevereiro 25, 2013 por Gabriel10101 Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476319 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Por favor, poste o creaturescripts.xml, pode ter algum script que está ocasionando iss! Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476331 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 Ta ae: <?xml version="1.0" encoding="UTF-8"?> <creaturescripts> <event type="login" name="PlayerLogin" event="script" value="login.lua"/> <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/> <event type="receivemail" name="Mail" event="script" value="mail.lua"/> <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/> <event type="preparedeath" name="forever amulet" event="script" value="aol.lua"/> <event type="death" name="tp" event="script" value="tp.lua"/> <event type="death" name="teleportmonster" script="tpmonster.lua"/> <event type="think" name="Idle" event="script" value="idle.lua"/> <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/> <event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/> <event type="login" name="FirstItems" event="script" value="firstitems.lua"/> <event type="login" name="VipLogin" script="vip.lua"/> <event type="PrepareDeath" name="pvparena" script="pvparena.lua"/> <event type="attack" name="attackguild" script="attackguild.lua"/> <event type="death" name="incendio" script="incendioMonster.lua"/> <event type="death" name="BlessDrop" event="script" value="DropBless.lua"/> </creaturescripts> Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476364 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Cara, vá no config.lua, procure por isso: rateSkill Aumente o valor que estiver! Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476370 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 (editado) Mais no rateskills não vai aumentar todas? experienceStages = "yes" rateExperience = 200 rateExperienceFromPlayers = 1 rateSkill = 50 rateMagic = 35 rateLoot = 4 rateSpawn = 6 Vou tentar colocar 80 em vez de 50 pra ver... @EDIT não adiantou nada,ele continua upando 1% em 1% as skills. Editado Fevereiro 25, 2013 por Gabriel10101 Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476378 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Oloco, que estranho. Isso acontece desde que você baixou o sv ou oque? Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476392 Compartilhar em outros sites More sharing options...
0 Gabriel10101 1 Postado Fevereiro 25, 2013 Autor Share Postado Fevereiro 25, 2013 Desde que eu abaixei o server vem com esse problema,na verdade eu abaixei e editei algumas coisas no mapa ae coloquei on e veio esse bug... Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476406 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Fevereiro 25, 2013 Share Postado Fevereiro 25, 2013 Sim, mas o mapa não há nada a ver. Bom, é meio difícil de resolver esse Bug ;s Uma solução boa, mas chata, seria, baixar outro, da mesma versão e mapa, e passar seus scripts e database para ele ;s Link para o comentário https://xtibia.com/forum/topic/208470-bug-skill-shield/#findComment-1476412 Compartilhar em outros sites More sharing options...
Pergunta
Gabriel10101 1
Galera no meu server não upa shield ( upa mais muito devagar),o top tem shield 29,e não upa nem 1% por dia,eu já tentei mecher no xml/vocações e não teve resultado,o que pode ser?
Link para o comentário
https://xtibia.com/forum/topic/208470-bug-skill-shield/Compartilhar em outros sites
18 respostass a esta questão
Posts Recomendados