
Tudo que Movie postou
-
(Resolvido)Problema com script ACTION
function onUse(cid, item, frompos, item2, topos) if getPlayerGroupId(cid) == 1 then doPlayerSetGroupId(cid, 6) end end Tenta assim
-
Hospedagem
Aparentemente sim, achei eles meio caros.
-
Hospedagem
As VPS tem ip fixo. Recomendo algumas como OVH e LGV Host.
-
[PEDIDO] TP que aparece so 1x por dia
TSF 1.0?
-
(Bug) Items.otb
Não consegui te ajudar. Desculpe.
-
Hospedagem
Você precisará de um VPS (Virtual Private Server). Ele funciona como um computador normal, ficará ligado 24/7.
-
(Bug) Items.otb
Mande seu items.xml
-
erro load spells
Mande ele, talvez seja.
-
Dúvida Sobre Servidor
Creio que sim. Porém eu hosteio o meu mesmo com internet compartilhada.
-
erro load spells
Exato. Veja se há alguma menção de spells na pasta mods.
-
erro load spells
Se você não conseguir com esse não irei conseguir te ajudar
-
erro load spells
Tente assim: <?xml version="1.0" encoding="UTF-8"?> <spells> <!-- Attack Runes --> <rune name="Poison Field" id="2285" allowfaruse="1" charges="3" lvl="14" maglv="0" exhaustion="2000" groups="1,1500" icon="26" blocktype="solid" event="script" value="attack/poison field.lua"/> <rune name="Poison Bomb" id="2286" allowfaruse="1" charges="2" lvl="25" maglv="4" exhaustion="2000" groups="1,1500" icon="91" blocktype="solid" event="script" value="attack/poison bomb.lua"/> <rune name="Poison Wall" id="2289" allowfaruse="1" charges="3" lvl="29" maglv="5" exhaustion="2000" groups="1,1500" icon="26" blocktype="solid" event="script" value="attack/poison wall.lua"/> <rune name="Fire Field" id="2301" allowfaruse="1" charges="3" lvl="15" maglv="1" exhaustion="2000" groups="1,1500" icon="25" blocktype="solid" event="script" value="attack/fire field.lua"/> <rune name="Firebomb" id="2305" allowfaruse="1" charges="2" lvl="27" maglv="5" exhaustion="2000" groups="1,1500" icon="17" blocktype="solid" event="script" value="attack/fire bomb.lua"/> <rune name="Fire Wall" id="2303" allowfaruse="1" charges="3" lvl="33" maglv="6" exhaustion="2000" groups="1,1500" icon="25" blocktype="solid" event="script" value="attack/fire wall.lua"/> <rune name="Soulfire" id="2308" allowfaruse="1" charges="3" lvl="27" maglv="7" exhaustion="2000" groups="1,1500" icon="50" needtarget="1" blocktype="solid" event="function" value="soulfire"/> <rune name="Fireball" id="2302" allowfaruse="1" charges="5" lvl="27" maglv="3" exhaustion="2000" groups="1,1500" icon="15" needtarget="1" blocktype="solid" event="script" value="attack/fireball.lua"/> <rune name="Great Fireball" id="2304" allowfaruse="1" charges="3" lvl="30" maglv="3" exhaustion="2000" groups="1,1500" icon="16" blocktype="solid" event="script" value="attack/great fireball.lua"/> <rune name="Energy Field" id="2277" allowfaruse="1" charges="3" lvl="18" maglv="3" exhaustion="2000" groups="1,1500" icon="27" blocktype="solid" event="script" value="attack/energy field.lua"/> <rune name="Energybomb" id="2262" allowfaruse="1" charges="2" lvl="37" maglv="10" exhaustion="2000" groups="1,1500" icon="55" blocktype="solid" event="script" value="attack/energy bomb.lua"/> <rune name="Energy Wall" id="2279" allowfaruse="1" charges="3" lvl="41" maglv="9" exhaustion="2000" groups="1,1500" icon="33" blocktype="solid" event="script" value="attack/energy wall.lua"/> <rune name="Light Magic Missile" id="2287" allowfaruse="1" charges="10" lvl="15" exhaustion="2000" groups="1,1500" icon="7" maglv="0" needtarget="1" blocktype="solid" event="script" value="attack/light magic missile.lua"/> <rune name="Heavy Magic Missile" id="2311" allowfaruse="1" charges="10" lvl="25" exhaustion="2000" groups="1,1500" icon="8" maglv="3" needtarget="1" blocktype="solid" event="script" value="attack/heavy magic missile.lua"/> <rune name="Explosion" id="2313" allowfaruse="1" charges="6" lvl="31" maglv="6" exhaustion="2000" groups="1,1500" icon="18" blocktype="solid" event="script" value="attack/explosion.lua"/> <rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1300" groups= "1,2000" icon="21" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/> <rune name="Icicle" id="2271" allowfaruse="1" charges="5" lvl="28" maglv="3" exhaustion="2000" groups="1,1500" icon="114" needtarget="1" event="script" value="attack/icicle.lua"/> <rune name="Avalanche" id="2274" allowfaruse="1" charges="3" lvl="30" maglv="3" exhaustion="2000" groups="1,1500" icon="115" event="script" value="attack/avalanche.lua"/> <rune name="Stone Shower" id="2288" allowfaruse="1" charges="3" lvl="28" maglv="3" exhaustion="2000" groups="1,1500" icon="116" event="script" value="attack/stone shower.lua"/> <rune name="Thunderstorm" id="2315" allowfaruse="1" charges="3" lvl="28" maglv="3" exhaustion="2000" groups="1,1500" icon="117" event="script" value="attack/thunderstorm.lua"/> <rune name="Stalagmite" id="2292" allowfaruse="1" charges="10" lvl="24" maglv="3" exhaustion="2000" groups="1,1500" icon="77" needtarget="1" event="script" value="attack/stalagmite.lua"/> <rune name="Holy Missile" id="2295" allowfaruse="1" charges="5" lvl="27" maglv="3" exhaustion="2000" groups="1,1500" icon="130" needtarget="1" blocktype="solid" event="script" value="attack/holy missile.lua"> <vocation id="3"/> <vocation id="7" showInDescription="0"/> </rune> <!-- Healing Runes --> <rune name="Antidote Rune" id="2266" allowfaruse="1" charges="1" lvl="15" maglv="0" exhaustion="1" groups="2,1000" icon="31" 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="1" groups="2,1000" icon="3" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/intense healing rune.lua"/> <rune name="Ultimate Healing Rune" id="2273" allowfaruse="1" charges="1" lvl="24" maglv="3" exhaustion="950" groups="2,1000" icon="5" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/ultimate healing rune.lua"/> <rune name="Super UH" id="2275" allowfaruse="1" charges="1" lvl="24" maglv="4" exhaustion="1" groups="2,1000" icon="5" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/super uh rune.lua"/> <!-- Summon Runes --> <rune name="Convince Creature" id="2290" allowfaruse="1" charges="1" lvl="16" maglv="5" exhaustion="2000" groups="3,2000" icon="12" needtarget="1" blocktype="solid" event="function" value="convince"/> <rune name="Animate Dead" id="2316" allowfaruse="1" charges="1" lvl="27" maglv="3" exhaustion="2000" groups="3,2000" icon="83" blocktype="solid" event="script" value="summon/animate dead rune.lua"/> <!-- Support Runes --> <rune name="Magic Prison Rune" id="2272" charges="1" maglv="20" exhaustion="2000" groups="3,2000" icon="86" blocktype="solid" allowfaruse="1" event="script" value="custom/magic prison.lua"/> <rune name="Desintegrate" id="2310" allowfaruse="0" charges="3" lvl="21" maglv="3" exhaustion="2000" groups="3,2000" icon="78" range="1" event="script" value="support/desintegrate rune.lua"/> <rune name="Destroy Field" id="2261" allowfaruse="1" charges="3" lvl="17" maglv="3" exhaustion="2000" groups="3,2000" icon="30" aggressive="0" range="5" event="script" value="support/destroy field rune.lua"/> <rune name="Chameleon" id="2291" allowfaruse="1" charges="1" lvl="27" maglv="3" exhaustion="2000" groups="3,2000" icon="14" aggressive="0" selftarget="1" blocktype="solid" event="function" value="chameleon"/> <rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="900" groups="3,2000" icon="86" 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" groups="3,2000" icon="94" 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" groups="3,2000" icon="54" mana="1400" needtarget="1" blocktype="solid" event="script" value="support/paralyze rune.lua"> </rune> <!-- Attack Spells --> <instant name="Death Strike" words="exori mort" lvl="16" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="87" needlearn="0" event="script" value="attack/death strike.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> <instant name="Fire damage" words="blow!" lvl="16" mana="80" prem="0" range="3" needtarget="1" casterTargetOrDirection="1" blockwalls="1" exhaustion="1200" groups="1,1500" icon="87" needlearn="0" event="script" value="attack/blow.lua"> <vocation id="13"/> <vocation id="14"/> </instant> <instant name="Fire gran damage" words="combo blow!" lvl="22" mana="120" prem="0" range="3" needtarget="1" casterTargetOrDirection="1" blockwalls="1" exhaustion="1200" groups="1,1500" icon="87" needlearn="0" event="script" value="attack/comboblow.lua"> <vocation id="13"/> <vocation id="14"/> </instant> <instant name="Flame Strike" words="exori flam" lvl="12" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="89" needlearn="0" event="script" value="attack/flame strike.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> <instant name="Energy Strike" words="exori vis" lvl="12" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="88" needlearn="0" event="script" value="attack/energy strike.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> <instant name="Whirlwind Throw" words="exori hur" lvl="15" mana="40" prem="0" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2030" groups="1,1500" icon="10 7" needlearn="0" event="script" value="attack/whirlwind throw.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Fire Wave" words="exevo flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" event="script" value="attack/fire wave.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Ethereal Spear" words="exori con" lvl="23" mana="35" prem="0" range="5" needtarget="1" exhaustion="1800" groups="1,1500" icon="111" blockwalls="1" needlearn="0" event="script" value="attack/ethereal spear.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Energy Beam" words="exevo vis lux" lvl="23" mana="40" direction="1" exhaustion="2000" groups="1,1500" icon="22" needlearn="0" event="script" value="attack/energy beam.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Great Energy Beam" words="exevo gran vis lux" lvl="29" mana="110" direction="1" exhaustion="2000" groups="1,1500" icon="23" needlearn="0" event="script" value="attack/great energy beam.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Groundshaker" words="exori mas" lvl="33" mana="160" prem="0" needweapon="1" exhaustion="2000" groups="1,1500" icon="106" needlearn="0" event="script" value="attack/groundshaker.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Berserk" words="exori" lvl="35" mana="120" prem="0" needweapon="1" exhaustion="2000" groups="1,1500" icon="80" needlearn="0" event="script" value="attack/berserk.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Ethereal Spear" words="exori gran con" lvl="23" mana="35" prem="0" range="5" needtarget="1" exhaustion="3800" groups="1,1500" icon="111" blockwalls="1" needlearn="0" event="script" value="attack/etherealspear.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Energy Wave" words="exevo vis hur" lvl="38" mana="170" direction="1" exhaustion="2000" groups="1,1500" icon="13" needlearn="0" event="script" value="attack/energy wave.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Rage of the Skies" words="exevo gran mas vis" lvl="55" mana="1200" selftarget="1" prem="0" exhaustion="2000" groups="1,1500" icon="119" needlearn="0" event="script" value="attack/rage of the skies.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Fierce Berserk" words="exori gran" lvl="70" mana="340" prem="0" needweapon="1" exhaustion="2000" groups="1,1500" icon="105" needlearn="0" event="script" value="attack/fierce berserk.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Hells Core" words="exevo gran mas flam" lvl="60" mana="1200" prem="0" exhaustion="2000" groups="1,1500" icon="24" selftarget="1" needlearn="0" event="script" value="attack/hells core.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Divine Missile" words="exori san" lvl="40" mana="20" prem="0" range="3" casterTargetOrDirection="1" needlearn="0" blockwalls="1" exhaustion="2000" groups="1,1500" icon="122" event="script" value="attack/divine missile.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Divine Caldera" words="exevo mas san" lvl="50" mana="140" prem="0" selftarget="1" exhaustion="2000" groups="1,1500" icon="124" needlearn="0" event="script" value="attack/divine caldera.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Eternal Winter" words="exevo gran mas frigo" lvl="60" mana="1200" prem="0" selftarget="1" exhaustion="2000" groups="1,1500" icon="118" needlearn="0" event="script" value="attack/eternal winter.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Ice Strike" words="exori frigo" lvl="15" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="112" needlearn="0" event="script" value="attack/ice strike.lua"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Ice Wave" words="exevo frigo hur" lvl="18" mana="25" direction="1" exhaustion="2000" groups="1,1500" icon="121" needlearn="0" event="script" value="attack/ice wave.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Terra Strike" words="exori tera" lvl="13" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="113" needlearn="0" event="script" value="attack/terra strike.lua"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Terra Wave" words="exevo tera hur" lvl="38" mana="210" direction="1" exhaustion="2000" groups="1,1500" icon="120" needlearn="0" event="script" value="attack/terra wave.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Wrath of Nature" words="exevo gran mas tera" lvl="55" mana="1200" prem="0" selftarget="1" exhaustion="2000" groups="1,1500" icon="56" needlearn="0" event="script" value="attack/wrath of nature.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <!-- Healing Spells --> <instant name="Light Healing" words="exura" lvl="9" mana="25" aggressive="0" selftarget="1" exhaustion="1200" groups="2,1000" icon="1" needlearn="0" event="script" value="healing/light healing.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="4"/> <vocation id="8"/> <vocation id="11"/> <vocation id="12"/> </instant> <instant name="Cure Poison" words="exana pox" lvl="10" mana="30" aggressive="0" selftarget="1" exhaustion="1000" groups="2,1000" icon="29" needlearn="0" event="script" value="healing/cure poison.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="8"/> <vocation id="9"/> <vocation id="10"/> </instant> <instant name="Life UP" words="exura ico" lvl="30" mana="65" aggressive="0" selftarget="1" exhaustion="900" groups="2,1000" icon="147" needlearn="0" event="script" value="healing/icoo.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Gran UP" words="exura gran ico" lvl="30" mana="65" aggressive="0" selftarget="1" exhaustion="900" groups="2,1000" icon="147" needlearn="0" event="script" value="healing/icoo2.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Wound Cleansing" words="exana mort" lvl="30" mana="65" aggressive="0" selftarget="1" exhaustion="900" groups="2,1000" icon="147" needlearn="0" event="script" value="healing/wound cleasing.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Intense Healing" words="exura gran" lvl="11" mana="70" aggressive="0" selftarget="1" exhaustion="1200" groups="2,1000" icon="2" needlearn="0" event="script" value="healing/intense healing.lua"> <vocation id="13"/> <vocation id="14"/> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> </instant> <instant name="Heal Friend" words="exura sio" lvl="18" mana="140" prem="0" aggressive="0" needtarget="1" params="1" exhaustion="1500" groups="2,1000" icon="84" needlearn="0" event="script" value="healing/heal friend.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Ultimate Healing" words="exura vita" lvl="20" mana="160" aggressive="0" selftarget="1" exhaustion="1200" groups="2,1000" icon="3" needlearn="0" event="script" value="healing/ultimate healing.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> </instant> <instant name="Mass Healing" words="exura gran mas res" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="2000" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/mass healing.lua"> <vocation id="2"/> <vocation id="6"/> </instant> <instant name="Knocker lifes" words="meditate vita!" lvl="12" mana="150" prem="0" aggressive="0" exhaustion="1200" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/medidate.lua"> <vocation id="13"/> <vocation id="14"/> </instant> <instant name="Knocker healing" words="meditate gran vita!" lvl="18" mana="150" prem="0" aggressive="0" exhaustion="1100" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/medidategran.lua"> <vocation id="13"/> <vocation id="14"/> </instant> <instant name="sangue" words="sangue escuro!" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/sangue.lua"> <vocation id="11"/> <vocation id="12"/> </instant> <instant name="Divine Healing" words="exura san" lvl="35" mana="210" prem="0" selftarget="1" aggressive="0" exhaustion="1200" groups="2,1000" icon="125" needlearn="0" event="script" value="healing/divine healing.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Divine Gran Healing" words="exura gran san" lvl="35" mana="210" prem="0" selftarget="1" aggressive="0" exhaustion="1200" groups="2,1000" icon="125" needlearn="0" event="script" value="healing/divinehealing.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <!-- Support Spells --> <instant name="Conjurar Almas" words="adori soul" lvl="200" mana="260" aggressive="0" soul="-1" prem="1" exhaustion="2000" groups="3,2000" icon="42" needlearn="0" event="script" value="support/conjure soul.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="11"/> <vocation id="12"/> </instant> <instant name="Light" words="utevo lux" lvl="8" mana="20" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="10" needlearn="0" event="script" value="support/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"/> </instant> <instant name="Find Person" words="exiva" lvl="8" mana="20" aggressive="0" params="1" exhaustion="1000" groups="3,2000" icon="20" 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"/> </instant> <instant name="Magic Rope" words="exani tera" lvl="9" mana="20" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="76" 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"/> </instant> <instant name="Levitate" words="exani hur" lvl="12" mana="50" prem="0" aggressive="0" exhaustion="1000" groups="3,2000" icon="81" params="1" needlearn="0" event="function" value="Levitate"> <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"/> </instant> <instant name="Great Light" words="utevo gran lux" lvl="13" mana="60" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="11" needlearn="0" event="script" value="support/great 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"/> </instant> <instant name="Magic Shield" words="utamo vita" lvl="14" mana="50" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="44" needlearn="0" event="script" value="support/magic shield.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Haste" words="utani hur" lvl="14" mana="60" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="6" 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="12"/> </instant> <instant name="Charge" words="utani tempo hur" lvl="25" mana="100" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="131" needlearn="0" event="script" value="support/charge.lua"> <vocation id="3"/> <vocation id="8"/> </instant> <instant name="Swift Foot" words="utamo tempo san" lvl="55" mana="200" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="134" needlearn="0" event="script" value="support/swift foot.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Challenge" words="exeta res" lvl="20" mana="30" prem="0" aggressive="0" groups="3,2000" exhaustion="1000" icon="93" needlearn="0" event="script" value="support/challenge.lua"> <vocation id="8"/> </instant> <instant name="Strong Haste" words="utani gran hur" lvl="20" mana="100" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="39" needlearn="0" event="script" value="support/strong haste.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="13"/> <vocation id="14"/> <vocation id="5"/> <vocation id="6"/> </instant> <instant name="Creature Illusion" words="utevo res ina" lvl="23" mana="100" aggressive="0" params="1" exhaustion="1000" groups="3,2000" icon="38" needlearn="0" event="function" value="Illusion"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> <instant name="Ultimate Light" words="utevo vis lux" lvl="26" mana="140" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="75" needlearn="0" event="script" value="support/ultimate light.lua"> <vocation id="13"/> <vocation id="14"/> <vocation id="1"/> <vocation id="13"/> <vocation id="14"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="9"/> <vocation id="10"/> </instant> <instant name="Cancel Invisibility" words="exana ina" lvl="26" mana="200" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="90" needlearn="0" event="script" value="support/cancel invisibility.lua"> <vocation id="1"/> <vocation id="5"/> </instant> <instant name="Invisibility" words="utana vid" lvl="35" mana="440" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="45" needlearn="0" event="script" value="support/invisible.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="9"/> <vocation id="10"/> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="135" needlearn="0" event="script" value="support/sharpshooter.lua"> <vocation id="3"/> <vocation id="7"/> </instant> <instant name="Protector" words="utamo tempo" lvl="55" mana="200" prem="0" aggressive="0" selftarget="1" exhaustion="100" groups="3,2000" icon="132" needlearn="0" event="script" value="support/protector.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <instant name="Blood Rage" words="utito tempo" lvl="60" mana="290" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="133" needlearn="0" event="script" value="support/blood rage.lua"> <vocation id="4"/> <vocation id="8"/> </instant> <!-- Party Spells --> <instant name="Train Party" words="utito mas sio" lvl="32" mana="60" prem="0" aggressive="0" selftarget="1" exhaustion="2000" groups="3,2000" icon="126" 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="0" aggressive="0" selftarget="1" exhaustion="2000" groups="3,2000" icon="127" 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="0" aggressive="0" selftarget="1" exhaustion="2000" groups="3,2000" icon="128" 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="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="129" needlearn="0" event="script" value="party/enchant.lua"> <vocation id="5"/> <vocation id="12"/> </instant> <!-- Summon Spells --> <instant name="Summon Creature" words="utevo res" lvl="25" params="1" exhaustion="2000" groups="3,2000" icon="9" needlearn="0" event="function" value="summonMonster"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </instant> <!-- Conjure Spells --> <conjure name="Potion de Mana Medio" words="utamo grav mas" maglv="55" mana="500" soul="2" reagentId="7636" conjureId="7620" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureItem"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Potion de Mana Grande" words="utamo gran" maglv="65" mana="1000" soul="3" reagentId="7634" conjureId="7589" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureItem">" <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Potion de Mana Gigante" words="utamo gran mas" maglv="75" mana="2000" soul="4" reagentId="7635" conjureId="7590" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureItem"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Conjure Rune" words="adori blank" lvl="1" mana="120" soul="1" prem="0" conjureId="2260" conjureCount="1" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureRune"> <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"/> </conjure> <conjure name="Conjure Arrow" words="exevo con" lvl="13" mana="100" soul="1" conjureId="2544" conjureCount="15" groups="3,2000" icon="51" needlearn="0" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <instant name="Food" words="exevo pan" lvl="14" mana="120" soul="0" aggressive="0" selftarget="1" groups="3,2000" icon="42" needlearn="0" event="script" value="support/conjure food.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"/> </instant> <conjure name="Poisoned Arrow" words="exevo con pox" lvl="16" mana="130" soul="2" conjureId="2545" conjureCount="12" groups="3,2000" icon="48" needlearn="0" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Conjure Bolt" words="exevo con mort" lvl="17" mana="140" soul="2" prem="0" conjureId="2543" conjureCount="10" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Conjure Sniper Arrow" words="exevo con hur" lvl="24" mana="160" soul="3" prem="0" conjureId="7364" conjureCount="10" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Explosive Arrow" words="exevo con flam" lvl="25" mana="290" soul="1" conjureId="2546" conjureCount="13" needlearn="0" groups="3,2000" icon="49" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Conjure Piercing Bolt" words="exevo con grav" lvl="33" mana="180" soul="3" prem="0" conjureId="7363" conjureCount="10" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Enchant Staff" words="exeta vis" lvl="41" mana="80" prem="0" conjureId="2433" reagentId="2401" needlearn="0" event="function" groups="3,2000" icon="23" value="conjureItem"> <vocation id="1"/> <vocation id="5"/> </conjure> <conjure name="Enchant Spear" words="exeta con" lvl="45" mana="350" soul="1" prem="0" conjureId="7367" reagentId="2389" needlearn="0" event="function" groups="3,2000" icon="23" value="conjureItem"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Power Bolt" words="exevo con vis" lvl="59" mana="800" soul="3" prem="0" conjureId="2547" conjureCount="15" needlearn="0" event="function" groups="3,2000" icon="23" value="conjureItem"> <vocation id="7"/> </conjure> <conjure name="Poison Field" words="adevo grav pox" lvl="14" mana="200" soul="0" reagentId="2260" conjureId="2285" conjureCount="3" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Light Magic Missile" words="adori min vis" lvl="15" mana="120" soul="0" reagentId="2260" conjureId="2287" conjureCount="10" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Fire Field" words="adevo grav flam" lvl="15" mana="240" soul="0" reagentId="2260" conjureId="2301" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Fireball" words="adori flam" lvl="10" mana="80" soul="1" prem="0" reagentId="2260" conjureId="2302" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Fireball Dec" words="adori flam dec" lvl="10" mana="325" soul="2" prem="0" reagentId="2260" conjureId="2302" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Fireball Mas Dec" words="adori flam mas dec" lvl="10" mana="812" soul="4" prem="1" reagentId="2260" conjureId="2302" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Energy Field" words="adevo grav vis" lvl="18" mana="320" soul="0" reagentId="2260" conjureId="2277" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Stalagmite" words="adori tera" lvl="24" mana="400" soul="0" prem="2" reagentId="2260" conjureId="2292" conjureCount="10" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Great Fireball" words="adori mas flam" lvl="10" mana="120" soul="1" reagentId="2260" conjureId="2304" conjureCount="2" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Great Fireball Dec" words="adori mas flam dec" lvl="10" mana="720" soul="2" reagentId="2260" conjureId="2304" conjureCount="2" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Great Fireball Mas Dec" words="adori mas flam mas dec" lvl="10" mana="1800" soul="4" prem="1" reagentId="2260" conjureId="2304" conjureCount="2" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Heavy Magic Missile" words="adori vis" lvl="10" mana="70" soul="0" reagentId="2260" conjureId="2311" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Heavy Magic Missile Dec" words="adori vis dec" lvl="10" mana="170" soul="1" reagentId="2260" conjureId="2311" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Heavy Magic Missile Mas Dec" words="adori vis mas dec" lvl="10" mana="425" soul="2" prem="1" reagentId="2260" conjureId="2311" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Poison Bomb" words="adevo mas pox" lvl="25" mana="520" soul="0" prem="0" reagentId="2260" conjureId="2286" conjureCount="2" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Firebomb" words="adevo mas flam" lvl="27" mana="600" soul="2" reagentId="2260" conjureId="2305" conjureCount="2" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Soulfire" words="adevo res flam" lvl="27" mana="600" soul="3" prem="0" reagentId="2260" conjureId="2308" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Poison Wall" words="adevo mas grav pox" lvl="29" mana="640" soul="1" reagentId="2260" conjureId="2289" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </conjure> <conjure name="Explosion" words="adevo mas hur" lvl="10" mana="570" soul="3" reagentId="2260" conjureId="2313" conjureCount="6" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Explosion Dec" words="adevo mas hur dec" lvl="10" mana="1800" soul="6" reagentId="2260" conjureId="2313" conjureCount="20" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Explosion Mas Dec" words="adevo mas hur mas dec" lvl="40" mana="4500" soul="12" prem="1" reagentId="2260" conjureId="2313" conjureCount="20" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Fire Wall" words="adevo mas grav flam" lvl="33" mana="780" soul="2" reagentId="2260" conjureId="2303" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Energybomb" words="adevo mas vis" lvl="37" mana="880" soul="3" prem="0" reagentId="2260" conjureId="2262" conjureCount="2" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> </conjure> <conjure name="Energy Wall" words="adevo mas grav vis" lvl="41" mana="1000" soul="3" reagentId="2260" conjureId="2279" conjureCount="4" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </conjure> <conjure name="Sudden Death" words="adori gran mort" lvl="10" mana="220" soul="3" reagentId="2260" conjureId="2268" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Cure Poison Rune" words="adana pox" lvl="15" mana="200" soul="0" reagentId="2260" conjureId="2266" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Intense Healing Rune" words="adura gran" lvl="15" mana="240" soul="2" reagentId="2260" conjureId="2265" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Ultimate Healing Rune" words="adura vita" lvl="10" mana="100" soul="2" reagentId="2260" conjureId="2273" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Sudden Death Dec" words="adori gran mort dec" lvl="10" mana="2640" soul="6" reagentId="2260" conjureId="2268" conjureCount="20" exhaustion="1000" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Ultimate Healing Rune Dec" words="adura vita dec" lvl="10" mana="1200" soul="4" reagentId="2260" conjureId="2273" conjureCount="20" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Magic Wall Dec" words="adevo grav tera dec" lvl="32" mana="9000" soul="6" prem="0" reagentId="2260" conjureId="2293" conjureCount="20" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Magic Wall Mas Dec" words="adevo grav tera mas dec" lvl="32" mana="25000" soul="12" prem="1" reagentId="2260" conjureId="2293" conjureCount="20" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Sudden Death Mas Dec" words="adori gran mort mas dec" lvl="12" prem="1" mana="6600" soul="12" reagentId="2260" conjureId="2268" conjureCount="40" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5r"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Ultimate Healing Rune Mas Dec" words="adura vita mas dec" lvl="10" prem="1" mana="3000" soul="8" reagentId="2260" conjureId="2273" conjureCount="40" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Magic Wall" words="adevo grav mas tera dec" lvl="8" mana="18000" soul="12" prem="0" reagentId="2260" conjureId="2293" conjureCount="40" exhaustion="1000" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Convince Creature" words="adeta sio" lvl="16" mana="200" soul="3" reagentId="2260" conjureId="2290" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Animate Dead" words="adana mort" lvl="27" mana="600" soul="3" prem="0" reagentId="2260" conjureId="2316" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </conjure> <conjure name="Chameleon" words="adevo ina" lvl="27" mana="600" soul="2" reagentId="2260" conjureId="2291" conjureCount="1" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Destroy Field" words="adito grav" lvl="17" mana="120" soul="0" reagentId="2260" conjureId="2261" conjureCount="3" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Desintegrate" words="adito tera" lvl="21" mana="200" soul="3" prem="0" reagentId="2260" conjureId="2310" conjureCount="3" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> </conjure> <conjure name="Magic Wall" words="adevo grav tera" lvl="32" mana="750" soul="3" prem="0" reagentId="2260" conjureId="2293" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> <vocation id="11"/> <vocation id="12"/> </conjure> <conjure name="Wild Growth" words="adevo grav vita" lvl="27" mana="600" soul="5" prem="0" reagentId="2260" conjureId="2269" conjureCount="2" needlearn="0" groups="3,2000" icon="23" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <instant name="Wild Growth" words="exevo grav vita" lvl="27" mana="220" direction="1" blocktype="all" exhaustion="2000" groups="3,2000" icon="23" needlearn="0" event="script" value="support/wild growth rune.lua"> <vocation id="6"/> </instant> <conjure name="Paralyze" words="adana ani" lvl="54" mana="1400" soul="1" prem="0" reagentId="2260" conjureId="2278" conjureCount="1" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Icicle" words="adori frigo" lvl="10" mana="460" soul="1" prem="0" reagentId="2260" conjureId="2271" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Icicle Dec" words="adori frigo dec" lvl="10" mana="1810" soul="2" prem="0" reagentId="2260" conjureId="2271" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Icicle Mas Dec" words="adori frigo mas dec" lvl="10" mana="4525" soul="4" prem="1" reagentId="2260" conjureId="2271" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Avalanche" words="adori mas frigo" lvl="10" mana="390" soul="1" reagentId="2260" conjureId="2274" conjureCount="4" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Avalanche Dec" words="adori mas frigo dec" lvl="10" mana="2235" soul="2" reagentId="2260" conjureId="2274" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Avalanche Mas Dec" words="adori mas frigo mas dec" lvl="10" mana="5587" soul="4" prem="1" reagentId="2260" conjureId="2274" conjureCount="40" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Stone Shower" words="adori mas tera" lvl="28" mana="430" soul="3" prem="0" reagentId="2260" conjureId="2288" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Stone Shower Dec" words="adori mas tera dec" lvl="28" mana="2060" soul="1" prem="0" reagentId="2260" conjureId="2288" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Stone Shower Mas Dec" words="adori mas tera mas dec" lvl="28" mana="5150" soul="2" prem="1" reagentId="2260" conjureId="2288" conjureCount="40" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="2"/> <vocation id="6"/> </conjure> <conjure name="Thunderstorm" words="adori mas vis" lvl="28" mana="330" soul="0" prem="1" reagentId="2260" conjureId="2315" conjureCount="3" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> </conjure> <conjure name="Thunderstorm Dec" words="adori mas vis dec" lvl="28" mana="2060" soul="2" prem="0" reagentId="2260" conjureId="2315" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> </conjure> <conjure name="Thunderstorm Msa Dec" words="adori mas vis mas dec" lvl="28" mana="5150" soul="4" prem="1" reagentId="2260" conjureId="2315" conjureCount="40" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="1"/> <vocation id="5"/> </conjure> <conjure name="Holy Missile" words="adori san" lvl="27" mana="350" soul="3" prem="0" reagentId="2260" conjureId="2295" conjureCount="5" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Holy Missile Dec" words="adori san dec" lvl="27" mana="1365" soul="3" prem="0" reagentId="2260" conjureId="2295" conjureCount="20" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="3"/> <vocation id="7"/> </conjure> <conjure name="Holy Missile Mas Dec" words="adori san mas dec" lvl="27" mana="3412" soul="3" prem="1" reagentId="2260" conjureId="2295" conjureCount="40" groups="3,2000" icon="23" needlearn="0" event="function" value="conjureRune"> <vocation id="3"/> <vocation id="7"/> </conjure> <!-- Spells RadBR --> <!-- Drunou --> <instant name="Drunou Intense Healing" words="cura-ja" lvl="8" mana="70" aggressive="0" selftarget="1" exhaustion="1400" groups="2,1000" icon="1" needlearn="0" script="healing/drunou light healing.lua"> <vocation id="9"/> <vocation id="10"/> </instant> <instant name="Drunou Strong Haste" words="correr-ja" lvl="20" mana="180" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="39" needlearn="0" event="script" value="support/drunou haste.lua"> <vocation id="9"/> <vocation id="10"/> </instant> <instant name="Drunou Heal Friend" words="vida-ja" lvl="22" mana="370" prem="0" aggressive="0" needtarget="1" params="1" exhaustion="1400" groups="2,1000" icon="84" needlearn="0" script="healing/drunou heal friend.lua"> <vocation id="9"/> <vocation id="10"/> </instant> <instant name="Drunou Death Strike" words="morra-ja" lvl="26" mana="170" prem="0" range="2" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="87" needlearn="0" script="attack/drunou attack.lua"> <vocation id="10"/> </instant> <instant name="Drunou Healing2" words="divinidade-ja" lvl="35" mana="420" prem="0" exhaustion="2000" groups="1,1500" icon="124" needlearn="0" script="attack/drunou divine spell.lua"> <vocation id="10"/> </instant> <instant name="Habilidade Para Martelos" words="martelos-ja" lvl="32" mana="120" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="135" needlearn="0" script="party/drunou support club.lua"> <vocation id="10"/> </instant> <instant name="Knocker up" words="rabie!" lvl="32" mana="120" prem="0" aggressive="0" selftarget="1" exhaustion="1000" groups="3,2000" icon="135" needlearn="0" script="party/rabie.lua"> <vocation id="13"/> <vocation id="14"/> </instant> <instant name="Drunou Arvores Negras" words="florestanegra-ja" lvl="100" mana="3200" prem="0" selftarget="1" exhaustion="4000" groups="3,2000" icon="94" needlearn="0" script="attack/drunou floresta.lua"> <vocation id="10"/> </instant> <!-- Infernalist --> <instant name="Ataque Solo Fogo" words="fogo unico!" lvl="12" mana="32" prem="0" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="89" needlearn="0" script="attack/infernalist flame strike.lua"> <vocation id="11"/> <vocation id="12"/> </instant> <instant name="Ondas de Fogo" words="ondas de fogo!" lvl="18" mana="75" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/ondas flame.lua"> <vocation id="11"/> <vocation id="12"/> </instant> <instant name="Parede de Fogo" words="parede de fogo!" lvl="51" mana="375" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/wall flame.lua"> <vocation id="11"/> <vocation id="12"/> </instant> <conjure name="Runa do Inferno" words="inferno concentrado!" lvl="100" mana="3140" soul="6" reagentId="2260" conjureId="2307" conjureCount="1" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureRune"> <vocation id="12"/> </conjure> <rune name="Runa do Inferno" id="2307" allowfaruse="1" charges="1" lvl="100" maglv="60" exhaustion="2000" groups= "1" icon="21" needtarget="1" blocktype="solid" script="attack/inferno.lua"> <vocation id="12"/> </rune> <instant name="Mega Ondas de Fogo" words="mega ondas de fogo!" lvl="120" mana="675" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/mega ondas flame.lua"> <vocation id="12"/> </instant> <instant name="Rajada de Fogo" words="rajada de fogo!" lvl="150" mana="800" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/rajada ondas flame.lua"> <vocation id="12"/> </instant> <instant name="Armadilha Explosiva" words="armadilha explosiva!" lvl="170" mana="1200" prem="0" soul="1" aggressive="1" exhaustion="10000" groups="3,2000" icon="94" needlearn="0" script="attack/armadilha.lua"> <vocation id="12"/> </instant> <instant name="Espiritos do Inferno" words="espiritos do inferno!" lvl="200" mana="3000" prem="0" aggressive="1" exhaustion="5000" groups="1,1500" icon="24" needlearn="0" script="attack/ultimate.lua"> <vocation id="12"/> </instant> </spells>
-
(Resolvido)Erro sql
Tente assim: accountManager = "yes" namelockManager = "no" newPlayerChooseVoc = "yes" newPlayerSpawnPosX = 10160 newPlayerSpawnPosY = 10054 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 4 generateAccountNumber = "no" enableCast = false healthHealingColor = COLOR_GREEN -- [podendo alterar a cor]. manaHealingColor = COLOR_DARKPURPLE -- [podendo alterar a cor]. redSkullLength = 4 * 17 * 17 * 17 blackSkullLength = 4 * 24 * 60 * 60 dailyFragsToRedSkull = 10 weeklyFragsToRedSkull = 20 monthlyFragsToRedSkull = 100 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 100 blackSkulledDeathMana = 35 useBlackSkull = true useFragHandler = true advancedFragList = false notationsToBan = 3 warningsToFinalBan = 3 warningsToDeletion = 2 banLength = 1 * 24 * 60 * 60 killsBanLength = 1 * 24 * 60 * 60 finalBanLength = 1 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = false maxVioltionCommentSize = 200 violationNameReportActionType = 2 worldType = "open" protectionLevel = 100 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 30 * 500 huntingDuration = 60 * 1000 criticalHitChance = 1 criticalHitMultiplier = 5 displayCriticalHitNotify = false removeWeaponAmmunition = false removeWeaponCharges = false removeRuneCharges = "no" whiteSkullTime = 15 * 60 * 100 noDamageToSameLookfeet = false showHealingDamage = true showHealingDamageForMonsters = false fieldOwnershipDuration = 5 * 100 stopAttackingAtExit = false oldConditionAccuracy = false loginProtectionPeriod = 10 * 10 deathLostPercent = 10 stairhopDelay = 0 * 1000 pushCreatureDelay = 1 * 1000 deathContainerId = 11237 gainExperienceColor = 154 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true worldId = 0 ip = "127.0.0.1" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 5 retryTimeout = 30 * 30 loginTimeout = 30 * 30 maxPlayers = 1000 motd = "Bem vindo ao LoucoHero!" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = false allowClones = false serverName = "LoucoHero" loginMessage = "Hello," statusTimeout = 5 * 40 * 50 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = true sqlType = "sqlite" sqlHost = "127.0.0.1" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "massa" sqlFile = "massa.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 ingameGuildManagement = true levelToFormGuild = 100 premiumDaysToFormGuild = 0 guildNameMinLength = 1 guildNameMaxLength = 200 highscoreDisplayPlayers = 100 updateHighscoresAfterMinutes = 1 buyableAndSellableHouses = true houseNeedPremium = false bedsRequirePremium = false levelToBuyHouse = 200 housesPerAccount = 2 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 1000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false timeBetweenActions = 120 timeBetweenExActions = 500 checkCorpseOwner = true hotkeyAimbotEnabled = true maximumDoorLevel = 0 mapName = "hero.otbm" mapAuthor = "Sekk" randomizeTiles = true useHouseDataStorage = false storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false maxMessageBuffer = 10000 bufferMutedOnSpellFailure = false dataDirectory = "data/" allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true addonsOnlyPremium = false disableOutfitsForPrivilegedPlayers = false bankSystem = true saveGlobalStorage = true displaySkillLevelOnAdvance = true spellNameInsteadOfWords = false emoteSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false monsterLootMessage = 3 monsterLootMessageType = 24 separateViplistPerCharacter = false ghostModeInvisibleEffect = false ghostModeSpellEffects = true idleWarningTime = 50 * 420 * 4000 idleKickTime = 900 * 400 * 4000 expireReportsAfterReads = 1 playerQueryDeepness = 2 maxItemsPerPZTile = 0 maxItemsPerHouseTile = 0 freePremium = false premiumForPromotion = true blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 10 experienceStages = "yes" rateExperience = 600 rateExperienceFromPlayers = 0 rateSkill = 500 rateMagic = 200 rateLoot = 10 rateSpawn = 2 rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 minLevelThresholdForKilledPlayer = 0 maxLevelThresholdForKilledPlayer = 0 rateStaminaLoss = 0.5 rateStaminaGain = 3 rateStaminaThresholdGain = 24 staminaRatingLimitTop = 99 * 60 staminaRatingLimitBottom = 14 * 60 staminaLootLimit = 14 * 60 rateStaminaAboveNormal = 1.0 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 1 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 10 experienceShareActivity = 20 * 600 * 10000 globalSaveEnabled = false globalSaveHour = 8 shutdownAtGlobalSave = true cleanMapAtGlobalSave = true deSpawnRange = 2 deSpawnRadius = 50 maxPlayerSummons = 2 teleportAllSummons = true teleportPlayerSummons = true serverNameInScroll = "LoucoHeroServer" hostNameInScroll = "Joao Casarin" Account = "" Password = "" IpHost = "" Account = "" Password = "" Name = "" ID = "" Health = "" ownerName = "LoucoHero" ownerEmail = "[email protected]" url = "" location = "Brasil" displayGamemastersWithOnlineCommand = false adminLogsEnabled = true displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = false
-
erro load spells
Manda foto do erro.
-
(Resolvido)Erro sql
Configure as linhas que são referentes à conexão com a database no config.lua
-
Ajuda Sistema VIP
049-vipsys vip = { name = "VIP System"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.query(vip.query) else db.query(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.query("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.query("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end
-
Ajuda Sistema VIP
Fiz a instalação corretamente, até porque as vezes o código funciona, as vezes não. O código funciona com o Gesior pois mostra na tela de contas quanto tempo ela tem..
-
(Resolvido)Pedido de Ajuda com minha functions
Pode ser também que sua query esteja errada. Substitua o db.executeQuery por db.query
-
Ajuda Sistema VIP
Mesmo assim agradeço sua ajuda!
-
Ajuda Sistema VIP
Mas por exemplo, eu que estou usando o gesior, com esse sistema de VIP ele fica integrado com o site já que usa o vip_time. Será que existe alguma possibilidade de usar assim e não com premiumdays?
- [Resolvido] [Pedido] Reset com look
-
(Resolvido)Erro latesnews
Lado esquerdo do meu avatar, vai ter uma opção tipo verificado.
-
(Resolvido)Erro latesnews
Nada, clique em Melhor Resposta para saber que foi resolvido!
-
(Resolvido)Erro latesnews
Tenta assim: <?php if(!defined('INITIALIZED')) exit; $tickerSql = $SQL->query("SELECT "); //NEWSTICKER $time = time(); $vTick = $SQL->query("SELECT " .$SQL->fieldName('date'). " FROM " .$SQL->tableName('z_news_tickers'). " WHERE " .$SQL->fieldName('hide_ticker'). " = '0'")->fetch(); if(isset($vTick['date'])){ $news_content .= ' <div id="NewsTicker" class="Box"> <div class="Corner-tl" style="background-image: url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image: url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image: url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img class="Title" src="'.$layout_name.'/images/header/headline-newsticker.gif" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image: url('.$layout_name.'/images/content/scroll.gif);">'; //##################### ADD NEW TICKER ##################### if($action == "newticker") { if($group_id_of_acc_logged >= $config['site']['access_tickers']) { $ticker_text = stripslashes(trim($_POST['new_ticker'])); $ticker_icon = (int) $_POST['icon_id']; if(empty($ticker_text)) { $news_content .= 'You can\'t add empty ticker.'; } else { if(empty($ticker_icon)) { $news_icon = 0; } $SQL->query('INSERT INTO '.$SQL->tableName('z_news_tickers').' (date, author, image_id, text, hide_ticker) VALUES ('.$SQL->quote($time).', '.$account_logged->getId().', '.$ticker_icon.', '.$SQL->quote($ticker_text).', 0)'); $news_content .= ' <center> <h2> <font color="red">Added new ticker:</font> </h2> </center> <hr/> <div id="newsticker" class="Box"> <div id="TickerEntry-1" class="Row" onclick=\'TickerAction("TickerEntry-1")\'> <div class="Odd"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-1-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("d/m/Y", $time).' -</span> <div id="TickerEntry-1-ShortText" class="NewsTickerShortText">'; $news_content .= ' <a href="?subtopic=latestnews&action=deleteticker&id='.$time.'"> <img src="'.$layout_name.'/images/news/delete.png" border="0"> </a>'; $news_content .= short_text($ticker_text, 60).'</div> <div id="TickerEntry-1-FullText" class="NewsTickerFullText">'; $news_content .= '<a href="?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; $news_content .= $ticker_text.' </div> </div> </div> </div> </div> <hr/>'; } } else { $news_content .= 'You don\'t have admin rights. You can\'t add new ticker.'; } $news_content .= '<form action="?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } //#################### DELETE (HIDE only!) TICKER ############################ if($action == "deleteticker") { if($group_id_of_acc_logged >= $config['site']['access_tickers']) { header("Location: "); $date = (int) $_REQUEST['id']; $SQL->query('UPDATE '.$SQL->tableName('z_news_tickers').' SET hide_ticker = 1 WHERE '.$SQL->fieldName('date').' = '.$date.';'); $news_content .= '<center>News tickets with <b>date '.date("j F Y, g:i a", $date).'</b> has been deleted.<form action="?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center></div></div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div>'; } else { $news_content .= '<center>You don\'t have admin rights. You can\'t delete tickers.<form action="?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'; } } //show tickers if any in database or not blocked (tickers limit = 0) $tickers = $SQL->query('SELECT * FROM `z_news_tickers` WHERE hide_ticker != 1 ORDER BY date DESC LIMIT 5;'); $number_of_tickers = 0; if(is_object($tickers)) { foreach($tickers as $ticker) { if(is_int($number_of_tickers / 2)) $color = "Odd"; else $color = "Even"; $tickers_to_add .= '<div id="TickerEntry-'.$number_of_tickers.'" class="Row" onclick=\'TickerAction("TickerEntry-'.$number_of_tickers.'")\'> <div class="'.$color.'"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-'.$number_of_tickers.'-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("d/m/Y", $ticker['date']).' -</span> <div id="TickerEntry-'.$number_of_tickers.'-ShortText" class="NewsTickerShortText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= short_text($ticker['text'], 60).'</div> <div id="TickerEntry-'.$number_of_tickers.'-FullText" class="NewsTickerFullText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= $ticker['text'].'</div> </div> </div> </div>'; $number_of_tickers++; } } } //adding news if($action == "newnews") { if($group_id_of_acc_logged >= $config['site']['access_news']) { $text = ($_REQUEST['text']); $char_id = (int) $_REQUEST['char_id']; $post_topic = stripslashes(trim($_REQUEST['topic'])); $smile = (int) $_REQUEST['smile']; $news_icon = (int) $_REQUEST['icon_id']; if(empty($news_icon)) { $news_icon = 0; } if(empty($post_topic)) { $an_errors[] .= 'You can\'t add news without topic.'; } if(empty($text)) { $an_errors[] .= 'You can\'t add empty news.'; } if(empty($char_id)) { $an_errors[] .= 'Select character.'; } //execute query if(empty($an_errors)) { $SQL->query("INSERT INTO `z_forum` (`id` ,`first_post` ,`last_post` ,`section` ,`replies` ,`views` ,`author_aid` ,`author_guid` ,`post_text` ,`post_topic` ,`post_smile` ,`post_date` ,`last_edit_aid` ,`edit_date`, `post_ip`, `icon_id`) VALUES ('NULL', '0', '".time()."', '1', '0', '0', '".$account_logged->getId()."', '".(int) $char_id."', ".$SQL->quote($text).", ".$SQL->quote($post_topic).", '".(int) $smile."', '".time()."', '0', '0', '".$_SERVER['REMOTE_ADDR']."', '".$news_icon."')"); $thread_id = $SQL->lastInsertId(); $SQL->query("UPDATE `z_forum` SET `first_post`=".(int) $thread_id." WHERE `id` = ".(int) $thread_id);//show added data $main_content .= '<form action="index.php?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } else { //show errors $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($an_errors as $an_error) { $main_content .= '<li>'.$an_error; } $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; //okno edycji newsa z wpisanymi danymi przeslanymi wczesniej $main_content .= '<form action="index.php?subtopic=latestnews&action=newnews" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="F1E0C6"><b>Topic:</b></td><td><input type="text" name="topic" maxlenght="50" style="width: 300px" value="'.$post_topic.'"></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="text" rows="6" cols="60">'.$text.'</textarea></td></tr><tr><td width="180"><b>Character:</b></td><td><select name="char_id"><option value="0">(Choose character)</option>'.$str.'</select></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="CancelAddNews" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="location.href=\'index.php?subtopic=latestnews\';" alt="CancelAddNews" /></div></div></td></tr></table>'; } } else { $main_content .= 'You don\'t have site-admin rights. You can\'t add news.';} } if(!empty($tickers_to_add)) { //show table with tickers if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action!=newticker) $news_content .= '<script type="text/javascript"> var showednewticker_state = "0"; function showNewTickerForm() { if(showednewticker_state == "0") { document.getElementById("newtickerform").innerHTML = \'<form action="?subtopic=latestnews&action=newticker" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="images/news/icon_0.gif" width="20"></td><td><img src="images/news/icon_1.gif" width="20"></td><td><img src="images/news/icon_2.gif" width="20"></td><td><img src="images/news/icon_3.gif" width="20"></td><td><img src="images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>New<br>ticker<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="new_ticker" rows="3" cols="45"></textarea></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></td></tr></table>\'; document.getElementById("jajo").innerHTML = \'\'; showednewticker_state = "1"; } else { document.getElementById("newtickerform").innerHTML = \'\'; document.getElementById("jajo").innerHTML = \'<div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div>\'; showednewticker_state = "0"; } } </script><div id="newtickerform"></div><div id="jajo"><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></div><hr/>'; //add tickers list $news_content .= $tickers_to_add; //koniec $news_content .= '</div> </div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div>'; } //NEWSTICKER END //FEATURED ARTICLE $featured_article = $SQL->query("SELECT * FROM z_featured_article ORDER BY id DESC LIMIT 1"); if(isset($featured_article[0])) { foreach($featured_article as $featured) { $news_content .= ' <div id="FeaturedArticle" class="Box"> <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image:url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img id="ContentBoxHeadline" class="Title" src="'.$layout_name.'/images/header/headline-featuredarticle.gif" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);"> <div id="TeaserThumbnail">'; if(!empty($featured['read_more'])){ $news_content .= ' <a href="'.$featured['read_more'].'">'; } $news_content .= ' <img src="'.$layout_name.'/images/news/announcement.jpg" width="150" height="100" border=0 alt="" />'; if(!empty($featured['read_more'])){ $news_content .= ' </a>'; } $news_content .= ' </div>'; if(!empty($featured['read_more'])){ $news_content .= ' <a id="Link" href="'.$featured['read_more'].'">» read more</a>'; } $news_content .= ' <div id="TeaserText"> <div style="position: relative; top: -2px; margin-bottom: 2px;" > <b>'.$featured['title'].'</b> </div> '.$featured['text'].' </div> </div> </div> </div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div> '; } } //FEATURED ARTICLE END function replaceSmile($text, $smile) { $smileys = array( ':p' => 1, ':eek:' => 2, ':rolleyes:' => 3, ';)' => 4, ':o' => 5, ':D' => 6, ':(' => 7, ':mad:' => 8, ':)' => 9, ':cool:' => 10 ); if($smile == 1) return $text; else { foreach($smileys as $search => $replace) $text = str_replace($search, '<img src="layouts/tibiarl/images/forum/smile/'.$replace.'.gif" />', $text); return $text; } } function replaceAll($text, $smile) { $rows = 0; while(stripos($text, '[code]') !== false && stripos($text, '[/code]') !== false ) { $code = substr($text, stripos($text, '[code]')+6, stripos($text, '[/code]') - stripos($text, '[code]') - 6); if(!is_int($rows / 2)) { $bgcolor = 'ABED25'; } else { $bgcolor = '23ED25'; } $rows++; $text = str_ireplace('[code]'.$code.'[/code]', '<i>Code:</i><br /><table cellpadding="0" style="background-color: #'.$bgcolor.'; width: 480px; border-style: dotted; border-color: #CCCCCC; border-width: 2px"><tr><td>'.$code.'</td></tr></table>', $text); } $rows = 0; while(stripos($text, '[quote]') !== false && stripos($text, '[/quote]') !== false ) { $quote = substr($text, stripos($text, '[quote]')+7, stripos($text, '[/quote]') - stripos($text, '[quote]') - 7); if(!is_int($rows / 2)) { $bgcolor = 'AAAAAA'; } else { $bgcolor = 'CCCCCC'; } $rows++; $text = str_ireplace('[quote]'.$quote.'[/quote]', '<table cellpadding="0" style="background-color: #'.$bgcolor.'; width: 480px; border-style: dotted; border-color: #007900; border-width: 2px"><tr><td>'.$quote.'</td></tr></table>', $text); } $rows = 0; while(stripos($text, '[url]') !== false && stripos($text, '[/url]') !== false ) { $url = substr($text, stripos($text, '[url]')+5, stripos($text, '[/url]') - stripos($text, '[url]') - 5); $text = str_ireplace('[url]'.$url.'[/url]', '<a href="'.$url.'" target="_blank">'.$url.'</a>', $text); } while(stripos($text, '[player]') !== false && stripos($text, '[/player]') !== false ) { $player = substr($text, stripos($text, '[player]')+8, stripos($text, '[/player]') - stripos($text, '[player]') - 8); $text = str_ireplace('[player]'.$player.'[/player]', '<a href="?subtopic=&name='.urlencode($player).'">'.$player.'</a>', $text); } while(stripos($text, '[img=') !== false && stripos($text, ']') !== false ) { $img = substr($text, stripos($text, '[img=')+5, stripos($text, ']') - stripos($text, '[img]') - 5); $text = str_ireplace('[img='.$img.']', '<img src="'.$img.'">', $text); } while(stripos($text, '[b]') !== false && stripos($text, '[/b]') !== false ) { $b = substr($text, stripos($text, '[b]')+3, stripos($text, '[/b]') - stripos($text, '[b]') - 3); $text = str_ireplace('[b]'.$b.'[/b]', '<b>'.$b.'</b>', $text); } while(stripos($text, '[i]') !== false && stripos($text, '[/i]') !== false ) { $i = substr($text, stripos($text, '[i]')+3, stripos($text, '[/i]') - stripos($text, '[i]') - 3); $text = str_ireplace('[i]'.$i.'[/i]', '<i>'.$i.'</i>', $text); } while(stripos($text, '[u]') !== false && stripos($text, '[/u]') !== false ) { $u = substr($text, stripos($text, '[u]')+3, stripos($text, '[/u]') - stripos($text, '[u]') - 3); $text = str_ireplace('[u]'.$u.'[/u]', '<u>'.$u.'</u>', $text); } return replaceSmile($text, $smile); } function showPost($topic, $text, $smile) { $text = nl2br($text); $post = ''; if(!empty($topic)) $post .= '<b>'.replaceSmile($topic, $smile).'</b>'; $post .= replaceAll($text, $smile); return $post; } if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action != 'newnews') { $main_content .= ' <font style="font-size: 16px; font-weight: bold; margin-left: 20px;">Adding News</font> <form action="index.php?subtopic=latestnews&action=newnews" method="post" > <table border="0"> <tr> <td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td> <td> <table border="0"> <tr bgcolor="F1E0C6"> <td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td> </tr> <tr bgcolor="D4C0A1"> <td><input type="radio" name="icon_id" value="0" checked="checked"></td> <td><input type="radio" name="icon_id" value="1" /></td> <td><input type="radio" name="icon_id" value="2" /></td> <td><input type="radio" name="icon_id" value="3" /></td> <td><input type="radio" name="icon_id" value="4" /></td> </tr> </table> </td> </tr> <tr> <td align="center" bgcolor="F1E0C6"><b>Topic:</b></td> <td><input type="text" name="topic" maxlenght="50" style="width: 300px" ></td> </tr> <tr> <td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td>'; //Tiny Editor $main_content .= ' <script type="text/javascript" src="'.$layout_name.'/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "textareas", theme : "advanced", plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks", // Theme options theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, // Example content CSS (should be your site CSS) content_css : "css/content.css", // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js", // Style formats style_formats : [ {title : \'Bold text\', inline : \'b\'}, {title : \'Red text\', inline : \'span\', styles : {color : \'#ff0000\'}}, {title : \'Red header\', block : \'h1\', styles : {color : \'#ff0000\'}}, {title : \'Example 1\', inline : \'span\', classes : \'example1\'}, {title : \'Example 2\', inline : \'span\', classes : \'example2\'}, {title : \'Table styles\'}, {title : \'Table row 1\', selector : \'tr\', classes : \'tablerow1\'} ], // Replace values for the template plugin template_replace_values : { username : "Some User", staffid : "991234" } }); </script>'; $main_content .= ' <td bgcolor="F1E0C6"> <textarea name="text" id="elm1" rows="6" cols="60"></textarea> </td> </tr> <tr> <td width="180"><b>Character:</b></td> <td> <select name="char_id"> <option value="0">(Choose character)</option>'; foreach($account_logged->getPlayers() as $player) { $main_content .= '<option value="'.$player->getID().'">'.$player->getName().'</option>'; } $main_content .= ' </select> </td> </tr> <tr> <td> <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div> <input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" > </div> </div> </form> </td> </tr> </table> <hr/>'; } $last_threads = $SQL->query('SELECT ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('post_text') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('post_topic') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('icon_id') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('post_smile') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('id') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('replies') . ', ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('post_date') . ' FROM ' . $SQL->tableName('players') . ', ' . $SQL->tableName('z_forum') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('author_guid') . ' AND ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('section') . ' = 1 AND ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('first_post') . ' = ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('id') . ' ORDER BY ' . $SQL->tableName('z_forum') . '.' . $SQL->fieldName('last_post') . ' DESC LIMIT ' . $config['site']['news_limit'])->fetchAll(); //Here start news if(isset($last_threads[0])) { foreach($last_threads as $thread) { $main_content .= ' <div class="NewsHeadline"> <div class="NewsHeadlineBackground" style="background-image:url('.$layout_name.'/images/news/newsheadline_background.gif)"> <img src="'.$layout_name.'/images/news/icons/newsicon_'.$thread['icon_id'].'.gif" class="NewsHeadlineIcon" alt=\'\' /> <div class="NewsHeadlineDate">'.date('M m Y', $thread['post_date']).' -</div> <div class="NewsHeadlineText">'.htmlspecialchars($thread['post_topic']).'</div> </div> </div> <table style=\'clear:both\' border=0 cellpadding=0 cellspacing=0 width=\'100%\'> <tr>'; $martelLetter = substr($thread['post_text'],3,1); $main_content .= ' <td style=\'padding-left:10px;padding-right:10px;\' >' . showPost('', substr_replace($thread['post_text'], '<img src="images/letters/letter_martel_'.$martelLetter.'.gif">',3,1), $thread['post_smile']) . '<br><p align="right"><a href="?subtopic=forum&action=show_thread&id=' . $thread['id'] . '">» Comment on this news</a></p></td>'; $main_content .= ' <td> <img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /> </td> </tr> </table><br />'; } } else $main_content .= '<h3>No news. Go forum and make new thread on board News.</h3>';
-
(Resolvido)Erro latesnews
Poste seu lastenews.php aqui