Ir para conteúdo
  • Cadastre-se

Erros Distro, por favor me ajudeem <3


Posts Recomendados

Poxa amigo, estou tentando arrumar dois bugs na distro e não consig, estou fazer um servidor de Bleach e ele está praticamente pronto, fiz mapa do zero e tal, mas a distro ta com uns bugs que já veio antes, e eu não consigo arrumar elas :c
 
Olha as print da distro 
 

 


JcfUR1.jpg

 

 

Link para o post
Compartilhar em outros sites

Poste seu arquivo .lua, para resolver o primeiro.

O segundo é por que tem duas runas registradas no mesmo id, é só alterar em "Data/spells/spells.xml".

O terceiro é por que tem alguns monstros adicionados no mapa que não existem no servidor, você deve cria-los em "Data/monsters".

 

Já o quarto é algo na database, não sei mexer com essa parte.

Link para o post
Compartilhar em outros sites

Existe uma weapon duplicada com o mesmo ID 2392, corrija em weapons.xml

O login.lua tem algum erro simples de script, poste o login.lua

Existe duas runas duplicadas com o ID 2270 e 2272, corriga em spells.xml

Falta o .xml dos monstros listados.

Seu banco de dados está zoado, baixa a distro de novo e substitui pra testar

Link para o post
Compartilhar em outros sites

Meu servidor é um do Bleach qual distro eu baixo?


O das duas runas eu não consigo resolver o problema, está aí meu Spells.xml

 

<?xml version="1.0" encoding="UTF-8"?>

<spells>
<rune name="Holy Missile" id="2295" allowfaruse="1" charges="5" lvl="27" maglv="4" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/holy missile.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</rune>
 
<!-- Healing Runes -->
<rune name="Low Reiatsu Potion" id="2270" allowfaruse="1" charges="2" lvl="40" maglv="10" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="manarune.lua"/>
<rune name="Normal Reiatsu Potion" id="2271" allowfaruse="1" charges="2" lvl="120" maglv="60" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="manarune1.lua"/>
<rune name="Strong Reiatsu Potion" id="2272" allowfaruse="1" charges="2" lvl="200" maglv="75" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="manarune2.lua"/>
<rune name="Antidote Rune" id="2266" allowfaruse="1" charges="1" lvl="15" maglv="0" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/antidote rune.lua"/>
<rune name="Intense Healing Rune" id="2265" allowfaruse="1" charges="1" lvl="15" maglv="1" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/intense healing rune.lua"/>
<rune name="Health Potion" id="2273" allowfaruse="1" charges="2" lvl="40" maglv="5" exhaustion="2000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/ultimate healing rune.lua"/>
 
<!-- Summon Runes -->
<rune name="Convince Creature" id="2290" allowfaruse="1" charges="1" lvl="16" maglv="5" exhaustion="2000" needtarget="1" blocktype="solid" event="function" value="convince"/>
<rune name="Animate Dead" id="2316" allowfaruse="1" charges="1" lvl="27" maglv="4" exhaustion="2000" blocktype="solid" event="script" value="summon/animate dead rune.lua"/>
 
<!-- Support Runes -->
<rune name="Desintegrate" id="2310" allowfaruse="0" charges="3" lvl="21" maglv="4" exhaustion="2000" range="1" event="script" value="support/desintegrate rune.lua"/>
<rune name="Destroy Field" id="2261" allowfaruse="1" charges="3" lvl="17" maglv="3" exhaustion="1000" aggressive="0" range="5" event="script" value="support/destroy field rune.lua"/>
<rune name="Chameleon" id="2291" allowfaruse="1" charges="1" lvl="27" maglv="4" exhaustion="1000" aggressive="0" selftarget="1" blocktype="solid" event="function" value="chameleon"/>
<rune name="Santen Kesshun" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="1000" blocktype="all" event="script" value="support/magic wall rune.lua"/>
<rune name="Wild Growth" id="2269" allowfaruse="1" charges="2" lvl="27" maglv="8" exhaustion="2000" blocktype="all" event="script" value="support/wild growth rune.lua">
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</rune>
<rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" mana="1400" needtarget="1" blocktype="solid" event="script" value="support/paralyze rune.lua">
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</rune>
 
<!-- Attack Spells -->
<!-- Hadou -->
<instant name="#1 Shou!" words="shou" lvl="1" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="900" needlearn="0" event="script" value="attack/shou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#4 Byakurai!" words="byakurai" lvl="30" mana="240" prem="1" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/byakurai.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#31 Shukkahou!" words="shukkahou" lvl="40" mana="520" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="1400" needlearn="0" event="script" value="attack/shukkahou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#33 Soukatsui!" words="soukatsui" lvl="50" mana="780" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/soukatsui.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#54 Haien!" words="haien" lvl="60" mana="940" prem="1" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/haien.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#63 Souren Soukatsui!" words="souren soukatsui" lvl="70" mana="1280" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/souren soukatsui.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#88 Hiryuu Gekizoku Shinten Raihou!" words="hiryuu gekizoku shinten raihou" lvl="80" mana="1580" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/hiryuu gekizoku shinten raihou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<!-- Espada Teach -->
<instant name="Bala!" words="bala" lvl="1" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="900" needlearn="0" event="script" value="attack/bala.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Caja Negacion" words="caja negacion" lvl="50" params="1" exhaustion="3000" needlearn="0" event="function" value="summonMonster">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Nel Cero!" words="nel cero" lvl="20" mana="240" prem="0" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/nel cero.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
</instant>
<instant name="Gran Ray Cero" words="Gran Ray Cero" lvl="65" mana="825" prem="0" range="5" needtarget="1" exhaustion="1200" blockwalls="1" needlearn="0" event="script" value="attack/Gran Ray Cero.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Cero Double" words="Cero Double" lvl="80" mana="1225" prem="0" range="5" needtarget="1" exhaustion="1200" blockwalls="1" needlearn="0" event="script" value="attack/Cero Double.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
</instant>
<instant name="Lanzador Verde" words="Lanzador Verde" lvl="100" mana="1600" prem="0" selftarget="1" exhaustion="1200" needlearn="0" event="script" value="attack/Lanzador Verde.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
</instant>
<!-- Ulquiora Teach -->
<instant name="Ulquiorra Cero!" words="ulquiorra cero" lvl="20" mana="280" prem="0" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/Ulquiorra Cero.lua">
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Cero Oscuras" words="cero oscuras" lvl="80" mana="1225" prem="0" range="5" needtarget="1" exhaustion="1200" blockwalls="1" needlearn="0" event="script" value="attack/Cero Oscuras.lua">
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Lanza Del Relampago" words="Lanza Del Relampago" lvl="100" mana="2400" prem="0" selftarget="1" exhaustion="1200" needlearn="0" event="script" value="attack/Lanza Del Relampago.lua">
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<!-- Ichigo Teach -->
<instant name="Chibi Getsuga Tenshou!" words="chibi getsuga tenshou" lvl="15" mana="150" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/chibi getsuga tenshou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
<instant name="Getsuga Tenshou!" words="getsuga tenshou" lvl="30" mana="320" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/getsuga tenshou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
<instant name="Kuroi Getsuga Tenshou!" words="kuroi getsuga tenshou" lvl="60" mana="1220" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/kuroi getsuga tenshou.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
<instant name="Vizard Cero" words="Vizard Cero" lvl="80" mana="2025" prem="0" range="5" needtarget="1" exhaustion="1200" blockwalls="1" needlearn="0" event="script" value="attack/Vizard Cero.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
<!-- Rukia Teach -->
<instant name="Tsuki Shiro!" words="tsuki shiro" lvl="15" mana="130" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/tsuki shiro.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
</instant>
<instant name="Tsukiro Slash!" words="tsukiro slash" lvl="25" mana="320" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/ice slash.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
</instant>
<instant name="San No Zotsu!" words="san no zotsu" lvl="45" mana="850" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/san no zotsu.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
</instant>
<instant name="Hakuren!" words="hakuren" lvl="60" mana="1250" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/hakuren.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
</instant>
<instant name="Shirafune!" words="shirafune" lvl="80" mana="1920" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/shirafune.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
</instant>
<!-- Renji Teach -->
<instant name="Higa Zekko!" words="higa zekko" lvl="15" mana="120" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/higa zekko.lua">
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
</instant>
<instant name="Zabimaru Hado!" words="zabimaru hado" lvl="30" mana="290" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/zabimaru hado.lua">
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
</instant>
<instant name="Zekkou Shlash!" words="zekkou shlash" lvl="50" mana="820" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/zekkou shlash.lua">
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
</instant>
<instant name="Enchachtet Higa Zekko!" words="enchachtet higa zekko" lvl="65" mana="1320" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/enchachtet higa zekko.lua">
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
</instant>
<instant name="Hikotsu Taiho!" words="hikotsu taiho" lvl="80" mana="2220" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/hikotsu taiho.lua">
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
</instant>
<!-- Toushiro Teach -->
<instant name="Soten Ni Zase!" words="soten ni zase" lvl="15" mana="130" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/soten ni zase.lua">
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Hyoro Slash!" words="hyoro slash" lvl="25" mana="350" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/ice slash.lua">
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Ryuosenka!" words="ryuosenka" lvl="40" mana="850" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/Ryuosenka.lua">
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Hyori Kutsu!" words="hyori kutsu" lvl="60" mana="1330" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/Hyori Kutsu.lua">
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Sennen Hyoro!" words="sennen hyoro" lvl="80" mana="2120" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/Sennen Hyoro.lua">
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<!-- Zaraki Teach -->
<instant name="Kendo!" words="kendo" lvl="25" mana="115" prem="0" needweapon="1" exhaustion="1500" needlearn="0" event="script" value="attack/berserk.lua">
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
</instant>
<instant name="Zanjutsu!" words="zanjutsu" lvl="35" mana="215" prem="0" needweapon="1" exhaustion="1500" needlearn="0" event="script" value="attack/zanjutsu.lua">
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
</instant>
<instant name="Kuroi Zanjutsu!" words="kuroi zanjutsu" lvl="55" mana="415" prem="0" needweapon="1" exhaustion="1500" needlearn="0" event="script" value="attack/kuroi zanjutsu.lua">
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
</instant>
<!--Byakuya Teach -->
<instant name="Senbonzakura!" words="senbonzakura" lvl="20" mana="250" prem="0" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/senbonzakura.lua">
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Senbonzakura Kageyoshi!" words="senbonzakura kageyoshi" lvl="50" mana="450" prem="0" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/senbonzakura kageyoshi.lua">
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Senkei Senbonzakura!" words="senkei senbonzakura" lvl="60" mana="750" prem="0" range="4" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/senkei senbonzakura.lua">
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Goukei!" words="goukei" lvl="75" mana="1750" direction="1" exhaustion="1400" needlearn="0" event="script" value="attack/goukei.lua">
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Shukei Hakuteiken!" words="shukei hakuteiken" lvl="100" mana="2320" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/shukei hakuteiken.lua">
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<!-- Healing Spells -->
<instant name="Reiatsu Antidote!" words="reiatsu antidote" lvl="10" mana="50" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/antidote.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Reiatsu Aura!" words="reiatsu aura" lvl="20" mana="220" aggressive="0" selftarget="1" exhaustion="600" needlearn="0" event="script" value="healing/intense healing.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Kuroi Reiatsu Aura!" words="kuroi reiatsu aura" lvl="120" mana="520" aggressive="0" selftarget="1" exhaustion="800" needlearn="0" event="script" value="healing/ultimate healing.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Zaraki Regeneration" words="Zaraki Regeneration" lvl="80" mana="110" prem="0" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/zaraki regeneration.lua">
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
</instant>
<instant name="Mass Healing" words="exura gran mas res" lvl="36" mana="150" prem="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/mass healing.lua">
<vocation id="2"/>
<vocation id="6"/>
</instant>
<instant name="Divine Healing" words="exura san" lvl="35" mana="210" prem="1" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/divine healing.lua">
<vocation id="3"/>
<vocation id="7"/>
</instant>
<instant name="Wound Cleansing" words="exana mort" lvl="30" mana="65" prem="1" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/wound cleasing.lua">
<vocation id="4"/>
<vocation id="8"/>
</instant>
 
<!-- Bakudou Teach-->
<instant name="#1 Sai" words="sai" lvl="50" mana="535" prem="0" range="3" needtarget="1" exhaustion="3000" blockwalls="1" needlearn="0" event="script" value="support/sai.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#4 Hainawa" words="hainawa" lvl="120" mana="850" prem="0" range="3" needtarget="1" exhaustion="3000" blockwalls="1" needlearn="0" event="script" value="support/Hainawa.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="#99 Kin" words="kin" lvl="275" mana="1550" prem="0" range="3" needtarget="1" exhaustion="3000" blockwalls="1" needlearn="0" event="script" value="support/kin.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
 
<!-- Support Spells -->
<instant name="Reiatsu Light!" words="reiatsu light" lvl="8" mana="20" prem="0" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/ultimate light.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Search Reiatsu!" words="search" lvl="8" mana="20" aggressive="0" params="1" exhaustion="1000" needlearn="0" event="function" value="searchPlayer">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Reiatsu Rope!" words="reiatsu rope" lvl="10" mana="20" prem="0" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/magic rope.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Reiatsu Furie!" words="reiatsu furie" lvl="1" mana="0" prem="0" aggressive="0" needtarget="1" params="1" exhaustion="2000" allowfaruse="1" needlearn="0" script="reiatsu furie.lua">
</instant>  
<instant name="Houdan!" words="houdan" lvl="14" mana="50" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/magic shield.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Ice Houdan!" words="ice houdan" lvl="14" mana="50" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/ice shield.lua">
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
</instant>
<instant name="Shunpo!" words="shunpo" lvl="15" mana="120" prem="0" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/haste.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<instant name="Sonido!" words="sonido" lvl="15" mana="120" prem="0" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/haste.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Sonido Ha!" words="sonido ha" lvl="25" mana="220" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/strong haste.lua">
<vocation id="28"/>
<vocation id="29"/>
<vocation id="30"/>
<vocation id="31"/>
<vocation id="32"/>
<vocation id="33"/>
<vocation id="34"/>
<vocation id="35"/>
<vocation id="36"/>
<vocation id="37"/>
<vocation id="38"/>
<vocation id="39"/>
</instant>
<instant name="Shunpo Ha!" words="shunpo ha" lvl="25" mana="240" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/strong haste.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<vocation id="9"/>
<vocation id="10"/>
<vocation id="11"/>
<vocation id="12"/>
<vocation id="13"/>
<vocation id="14"/>
<vocation id="15"/>
<vocation id="16"/>
<vocation id="17"/>
<vocation id="18"/>
<vocation id="19"/>
<vocation id="20"/>
<vocation id="21"/>
<vocation id="22"/>
<vocation id="23"/>
<vocation id="24"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
<vocation id="40"/>
<vocation id="41"/>
<vocation id="42"/>
<vocation id="43"/>
<vocation id="44"/>
<vocation id="45"/>
</instant>
<!-- Party Spells
<instant name="Train Party" words="utito mas sio" lvl="32" mana="60" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="party/train.lua">
<vocation id="8"/>
</instant>
<instant name="Protect Party" words="utamo mas sio" lvl="32" mana="90" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="party/protect.lua">
<vocation id="7"/>
</instant>
<instant name="Heal Party" words="utura mas sio" lvl="32" mana="120" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="party/heal.lua">
<vocation id="6"/>
</instant>
<instant name="Enchant Party" words="utori mas sio" lvl="32" mana="120" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="party/enchant.lua">
<vocation id="5"/>
</instant>    -->
 
<!-- Summon Spells
<instant name="Undead Legion" words="exana mas mort" lvl="30" mana="500" prem="1" exhaustion="2000" needlearn="0" event="script" value="summon/undead legion.lua">
<vocation id="2"/>
<vocation id="6"/>
</instant>  -->
 
<!-- Conjure Spells
<conjure name="Conjure Arrow" words="exevo con" lvl="13" mana="100" soul="1" conjureId="2544" conjureCount="10" exhaustion="1000" needlearn="0" event="function" value="conjureItem">
<vocation id="3"/>
<vocation id="7"/>
</conjure>
<conjure name="Food" words="exevo pan" lvl="14" mana="120" soul="1" exhaustion="1000" needlearn="0" event="function" value="conjureFood">
<vocation id="2"/>
<vocation id="3"/>
<vocation id="6"/>
<vocation id="7"/>
</conjure>  -->
<instant name="omeada" words="omeada" lvl="15" mana="40" prem="1" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/whirlwind throw.lua">
</instant>
<instant name="Mayuri1" words="mayuri1" lvl="80" mana="2120" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/Mayuri1.lua">
<vocation id="0"/>
</instant>
<instant name="Mayuri2" words="mayuri2" lvl="25" mana="350" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="1400" needlearn="0" event="script" value="attack/Mayuri2.lua">
<vocation id="0"/>
</instant>
<instant name="Mayuri3" words="mayuri3" lvl="80" mana="2120" prem="0" selftarget="1" exhaustion="1400" needlearn="0" event="script" value="attack/Mayuri3.lua">
<vocation id="0"/>
</instant>
</spells>


Meu login.lua

local config = {

loginMessage = getConfigValue('loginMessage')
}
 
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 0)
end
 
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, "Outfit")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "LevelProtection")
registerCreatureEvent(cid,"Saga")
registerCreatureEvent(cid, "Arena")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "advanced")
    -- 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 post
Compartilhar em outros sites

Login.lua:

local config = {

loginMessage = getConfigValue('loginMessage')
}
 
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 0)
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, "Outfit")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "LevelProtection")
registerCreatureEvent(cid,"Saga")
registerCreatureEvent(cid, "Arena")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "advanced")
    -- 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

Se der erro, avise.

Link para o post
Compartilhar em outros sites

BOAAA MANO ME SALVOU TE AMO CARA <3. agora só falta esse pra sair todos erros:

 

qBXzsR.png


Oxe volto o erro '-' mds mano, eu só me fodo :c

Link para o post
Compartilhar em outros sites

BOAAA MANO ME SALVOU TE AMO CARA <3. agora só falta esse pra sair todos erros:

 

qBXzsR.png

Oxe volto o erro '-' mds mano, eu só me fodo :c

Mesmo erro do login.lua?

Link para o post
Compartilhar em outros sites

Olha tente assim:

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, "Outfit")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "LevelProtection")
registerCreatureEvent(cid,"Saga")
registerCreatureEvent(cid, "Arena")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "advanced")
    -- 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

Verifique se está salvando corretamente o script pois ele está perfeito, está tudo fechado corretamente ao meu ver.

Link para o post
Compartilhar em outros sites

Se vc presta atenção tem um bug chato de vocation la em cima


Amigo, esse login ai , removeu o bug das vocations, mas os outros dois ainda continuam, estou achando que seja nas Sources para arrumar

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo