LU
dúvida

ERRO DISTRO!

Por Luquinh4, 27 de fev. de 2013 em Scripts

resolvido
script
19
2.3k
Luquinh4L
27 de fevereiro de 2013 às 18:36

Fala galera ,minha dúvida é o seguinte eu to limpando meu distro de erros,e passando meu servidor para MYSQL e porém um ERRO, não consigo tirar vocês podem me ajudar a tirar ou arrumar?

 

O erro é esse.

[18:30:15.763] [Error - GlobalEvent Interface]
[18:30:15.765] data/globalevents/scripts/start.lua:onstartup
[18:30:15.767] Description:
[18:30:15.769] data/globalevents/scripts/start.lua:2: attempt to call field 'exe
cuteQuery' (a nil value)
[18:30:15.774] stack traceback:
[18:30:15.776] data/globalevents/scripts/start.lua:2: in function <data/globale
vents/scripts/start.lua:1>

IMAGEM.

2rmrxw3.png

creio que seja falta de coluna na database seila,ajudae

sou novo aqui qualquer coisa move ae ;x

 

AJUDOU LEVA REP+

RoksasR
27 de fevereiro de 2013 às 18:41

Vá em data/globalevents/scripts, poste o arquivo start.lua aqui por favor usando spoilers ;))

Luquinh4L
27 de fevereiro de 2013 às 18:44

Intão eu já mudei,o que vinha no server pelo que vem no Hollister Baiak ,mas tá ai.

 

function onStartup()
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
return true
end

RoksasR
27 de fevereiro de 2013 às 18:46

Mudou e funcionou?

Luquinh4L
27 de fevereiro de 2013 às 18:49

Não continuo a mesma coisa,porém vi aqui e é a mesma coisa os dois..

 

Aproveitando ,me ajuda em outro erro no distro também ?

 

[18:43:21.946] >> Loading monsters
data/monster/Demon bosses/quara squicher.xml:25: parser error : Opening and endi
ng tag mismatch: defense line 23 and attack
   </attack>
		 ^
data/monster/Demon bosses/quara squicher.xml:26: parser error : expected '>'
</attacks>
    ^
data/monster/Demon bosses/quara squicher.xml:61: parser error : Opening and endi
ng tag mismatch: attacks line 20 and monster
</monster>
	  ^
data/monster/Demon bosses/quara squicher.xml:62: parser error : Premature end of
data in tag monster line 2
^
[18:43:22.420] [Warning - Monsters::loadMonster] Cannot load monster (Quara Squi
cher) file (data/monster/Demon bosses/quara squicher.xml).
[18:43:22.426] Line: 62, Info: Premature end of data in tag monster line 2

data/monster/Demon bosses/captain cutler.xml:34: parser error : expected '>'
  </defenses>
	    ^
[18:43:22.459] [Warning - Monsters::loadMonster] Cannot load monster (Captain Cu
tler) file (data/monster/Demon bosses/captain cutler.xml).
[18:43:22.465] Line: 34, Info: expected '>'

RoksasR
27 de fevereiro de 2013 às 18:51

Tenta assim:

 

function onStartup()
db.query("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
return true
end

Luquinh4L
27 de fevereiro de 2013 às 18:55

Ae o erro do start deu certo, agora tenta arruma os do monsters? leva dois rep dai

RoksasR
27 de fevereiro de 2013 às 18:59

Posta o erro dos monsters se possível :))

Luquinh4L
27 de fevereiro de 2013 às 19:03

Intão é o seguinte.

 

[18:43:21.946] >> Loading monsters
data/monster/Demon bosses/quara squicher.xml:25: parser error : Opening and endi
ng tag mismatch: defense line 23 and attack
</attack>
		 ^
data/monster/Demon bosses/quara squicher.xml:26: parser error : expected '>'
</attacks>
	^
data/monster/Demon bosses/quara squicher.xml:61: parser error : Opening and endi
ng tag mismatch: attacks line 20 and monster
</monster>
	  ^
data/monster/Demon bosses/quara squicher.xml:62: parser error : Premature end of
data in tag monster line 2
^
[18:43:22.420] [Warning - Monsters::loadMonster] Cannot load monster (Quara Squi
cher) file (data/monster/Demon bosses/quara squicher.xml).
[18:43:22.426] Line: 62, Info: Premature end of data in tag monster line 2

data/monster/Demon bosses/captain cutler.xml:34: parser error : expected '>'
  </defenses>
		^
[18:43:22.459] [Warning - Monsters::loadMonster] Cannot load monster (Captain Cu
tler) file (data/monster/Demon bosses/captain cutler.xml).
[18:43:22.465] Line: 34, Info: expected '>'

 

Quara Squicher.xml

 

 

 

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

<monster name="Quara Squicher" nameDescription="a quara squicher" race="blood" experience="600" speed="550" manacost="0">

<health now="10000" max="10000"/>

<look type="77" head="0" body="0" legs="0" feet="0" corpse="6063"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="0"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="0"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="1000" skill="85" attack="60"/>

<attack name="speed" interval="1000" chance="12" range="7" speedchange="-850" duration="2000">

<defense name="invisible" interval="2000" chance="40" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

</attack>

</attacks>

<defenses armor="30" defense="35"/>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<elements>

<element energyPercent="-10"/>

<element physicalPercent="10"/>

</elements>

<voices interval="5000" chance="10">

<voice sentence="Shhhhhhh!"/>

<voice sentence="Leave to SEA!!"/>

</voices>

<loot>

<item id="2670" chance="20000" countmax="5" /> -- shrimp

<item id="5895" chance="2000" countmax="1" /> -- fish fin

<item id="2148" chance="100000" countmax="100" /> -- gold coin

<item id="2475" chance="1333" /> -- warrior helmet

<item id="1987" chance="100000" > -- bag

<inside>

<item id="2398" chance="5000" /> -- mace

<item id="2381" chance="2222" /> -- halberd

<item id="2487" chance="500" /> -- crown armor

<item id="2147" chance="1538" countmax="3" /> -- small ruby

</inside>

</item>

</loot>

</monster>

 

 

Captain Cutler.xml

 

 

 

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

<monster name="Captain Cutler" nameDescription="a captain cutler" race="blood" experience="450" speed="530" manacost="775">

<health now="15000" max="15000"/>

<look type="98" head="0" body="0" legs="0" feet="0" corpse="6080"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="1"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="2000" skill="70" attack="65"/>

<attack name="physical" interval="2000" chance="25" range="7" min="-1500" max="-2100">

<attribute key="shootEffect" value="throwingstar"/>

</attack>

<attack name="melee" interval="1000" chance="30" range="7" radius="3" target="0" min="-500" max="-600">

</attack>

</attacks>

<defenses armor="25" defense="20"/>

<defense name="healing" interval="1500" chance="15" min="530" max="840">

<attribute key="areaEffect" value="blueshimmer"/>

</defense>

<defense name="speed" interval="1000" chance="8" speedchange="600" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

</defenses>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<summons maxSummons="8">

<summon name="Spirit of Jack" interval="2000" chance="12"/>

</summons>

<loot>

<item id="2148" countmax="80" chance1="50000" chancemax="0"/>

<item id="2385" chance="9000"/>

<item id="2489" chance="1333"/>

<item id="2521" chance="1400"/>

<item id="6096" chance="1000"/>

<item id="6095" chance="2500"/>

<item id="5926" chance="100000">

<inside>

<item id="5091" chance="1666"/>

<item id="5462" chance="450"/>

<item id="5792" chance="3333"/>

<item id="2376" chance="5555"/>

<item id="6098" countmax="1" chance1="5000" chancemax="0"/>

</inside>

</item>

</loot>

</monster>

 

 

Editado Fevereiro 27 por Luquinh4

RoksasR
27 de fevereiro de 2013 às 19:10

Tentar trocar o Quara Squincher por:

 

 

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

<monster name="Quara Squicher" nameDescription="a quara squicher" race="blood" experience="600" speed="550" manacost="0">

<health now="10000" max="10000"/>

<look type="77" head="0" body="0" legs="0" feet="0" corpse="6063"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="0"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="0"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="1000" skill="85" attack="60"/>

<attack name="speed" interval="1000" chance="12" range="7" speedchange="-850" duration="2000">

<defense name="invisible" interval="2000" chance="40" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

</attacks>

<defenses armor="30" defense="35"/>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<elements>

<element energyPercent="-10"/>

<element physicalPercent="10"/>

</elements>

<voices interval="5000" chance="10">

<voice sentence="Shhhhhhh!"/>

<voice sentence="Leave to SEA!!"/>

</voices>

<loot>

<item id="2670" chance="20000" countmax="5" /> -- shrimp

<item id="5895" chance="2000" countmax="1" /> -- fish fin

<item id="2148" chance="100000" countmax="100" /> -- gold coin

<item id="2475" chance="1333" /> -- warrior helmet

<item id="1987" chance="100000" > -- bag

<inside>

<item id="2398" chance="5000" /> -- mace

<item id="2381" chance="2222" /> -- halberd

<item id="2487" chance="500" /> -- crown armor

<item id="2147" chance="1538" countmax="3" /> -- small ruby

</inside>

</item>

</loot>

</monster>

 

 

E o Captain Cutler por:

 

 

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

<monster name="Captain Cutler" nameDescription="a captain cutler" race="blood" experience="450" speed="530" manacost="775">

<health now="15000" max="15000"/>

<look type="98" head="0" body="0" legs="0" feet="0" corpse="6080"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="1"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="2000" skill="70" attack="65"/>

<attack name="physical" interval="2000" chance="25" range="7" min="-1500" max="-2100">

<attribute key="shootEffect" value="throwingstar"/>

<attack name="melee" interval="1000" chance="30" range="7" radius="3" target="0" min="-500" max="-600">

</attacks>

<defenses armor="25" defense="20"/>

<defense name="healing" interval="1500" chance="15" min="530" max="840">

<attribute key="areaEffect" value="blueshimmer"/>

</defense>

<defense name="speed" interval="1000" chance="8" speedchange="600" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

</defense>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<summons maxSummons="8">

<summon name="Spirit of Jack" interval="2000" chance="12"/>

</summons>

<loot>

<item id="2148" countmax="80" chance1="50000" chancemax="0"/>

<item id="2385" chance="9000"/>

<item id="2489" chance="1333"/>

<item id="2521" chance="1400"/>

<item id="6096" chance="1000"/>

<item id="6095" chance="2500"/>

<item id="5926" chance="100000">

<inside>

<item id="5091" chance="1666"/>

<item id="5462" chance="450"/>

<item id="5792" chance="3333"/>

<item id="2376" chance="5555"/>

<item id="6098" countmax="1" chance1="5000" chancemax="0"/>

</inside>

</item>

</loot>

</monster>

 

Luquinh4L
27 de fevereiro de 2013 às 19:15

Nada ;/

continuou o erro

RoksasR
27 de fevereiro de 2013 às 19:16

O mesmo erro ou diferente?

Luquinh4L
27 de fevereiro de 2013 às 19:18
[19:14:45.962] >> Loading monsters
data/monster/Demon bosses/quara squicher.xml:25: parser error : Opening and endi
ng tag mismatch: defense line 23 and attacks
</attacks>
	  ^
data/monster/Demon bosses/quara squicher.xml:60: parser error : Opening and endi
ng tag mismatch: attack line 22 and monster
</monster>
	  ^
data/monster/Demon bosses/quara squicher.xml:60: parser error : Premature end of
data in tag attacks line 20
</monster>
	  ^
data/monster/Demon bosses/quara squicher.xml:60: parser error : Premature end of
data in tag monster line 2
</monster>
	  ^
[19:14:46.341] [Warning - Monsters::loadMonster] Cannot load monster (Quara Squi
cher) file (data/monster/Demon bosses/quara squicher.xml).
[19:14:46.345] Line: 60, Info: Premature end of data in tag monster line 2

data/monster/Demon bosses/captain cutler.xml:25: parser error : expected '>'
</attacks>
    ^
data/monster/Demon bosses/captain cutler.xml:64: parser error : Opening and endi
ng tag mismatch: attack line 22 and monster
</monster>
	  ^
data/monster/Demon bosses/captain cutler.xml:64: parser error : Premature end of
data in tag attacks line 20
</monster>
	  ^
data/monster/Demon bosses/captain cutler.xml:64: parser error : Premature end of
data in tag monster line 2
</monster>
	  ^
[19:14:46.403] [Warning - Monsters::loadMonster] Cannot load monster (Captain Cu
tler) file (data/monster/Demon bosses/captain cutler.xml).
[19:14:46.407] Line: 64, Info: Premature end of data in tag monster line 2

RoksasR
27 de fevereiro de 2013 às 19:18

Corrigindo o captain:

 

 

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

<monster name="Captain Cutler" nameDescription="a captain cutler" race="blood" experience="450" speed="530" manacost="775">

<health now="15000" max="15000"/>

<look type="98" head="0" body="0" legs="0" feet="0" corpse="6080"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="1"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="1"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="2000" skill="70" attack="65"/>

</attack>

<attack name="physical" interval="2000" chance="25" range="7" min="-1500" max="-2100">

<attribute key="shootEffect" value="throwingstar"/>

</attack>

<attack name="melee" interval="1000" chance="30" range="7" radius="3" target="0" min="-500" max="-600">

</attack>

</attacks>

<defenses armor="25" defense="20"/>

<defense name="healing" interval="1500" chance="15" min="530" max="840">

<attribute key="areaEffect" value="blueshimmer"/>

<defense name="speed" interval="1000" chance="8" speedchange="600" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<summons maxSummons="8">

<summon name="Spirit of Jack" interval="2000" chance="12"/>

</summons>

<loot>

<item id="2148" countmax="80" chance1="50000" chancemax="0"/>

<item id="2385" chance="9000"/>

<item id="2489" chance="1333"/>

<item id="2521" chance="1400"/>

<item id="6096" chance="1000"/>

<item id="6095" chance="2500"/>

<item id="5926" chance="100000">

<inside>

<item id="5091" chance="1666"/>

<item id="5462" chance="450"/>

<item id="5792" chance="3333"/>

<item id="2376" chance="5555"/>

<item id="6098" countmax="1" chance1="5000" chancemax="0"/>

</inside>

</item>

</loot>

</monster>

 

 

Aqui o Quara:

 

 

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

<monster name="Quara Squicher" nameDescription="a quara squicher" race="blood" experience="600" speed="550" manacost="0">

<health now="10000" max="10000"/>

<look type="77" head="0" body="0" legs="0" feet="0" corpse="6063"/>

<targetchange interval="5000" chance="8"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="0"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="0"/>

<flag convinceable="0"/>

<flag pushable="0"/>

<flag canpushitems="1"/>

<flag canpushcreatures="0"/>

<flag staticattack="90"/>

<flag targetdistance="1"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="1000" skill="85" attack="60"/>

</attack>

<attack name="speed" interval="1000" chance="12" range="7" speedchange="-850" duration="2000">

</attack>

<defense name="invisible" interval="2000" chance="40" duration="5000">

<attribute key="areaEffect" value="redshimmer"/>

</attacks>

<defenses armor="30" defense="35"/>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="1"/>

<immunity poison="1"/>

<immunity lifedrain="1"/>

<immunity paralyze="1"/>

<immunity outfit="0"/>

<immunity drunk="1"/>

<immunity invisible="1"/>

</immunities>

<elements>

<element energyPercent="-10"/>

<element physicalPercent="10"/>

</elements>

<voices interval="5000" chance="10">

<voice sentence="Shhhhhhh!"/>

<voice sentence="Leave to SEA!!"/>

</voices>

<loot>

<item id="2670" chance="20000" countmax="5" /> -- shrimp

<item id="5895" chance="2000" countmax="1" /> -- fish fin

<item id="2148" chance="100000" countmax="100" /> -- gold coin

<item id="2475" chance="1333" /> -- warrior helmet

<item id="1987" chance="100000" > -- bag

<inside>

<item id="2398" chance="5000" /> -- mace

<item id="2381" chance="2222" /> -- halberd

<item id="2487" chance="500" /> -- crown armor

<item id="2147" chance="1538" countmax="3" /> -- small ruby

</inside>

</item>

</loot>

</monster>

 

 

 

Editado Fevereiro 27 por Roksas

Luquinh4L
27 de fevereiro de 2013 às 19:28

Ainda persiste :(

 

[19:27:53.469] >> Loading monsters
data/monster/Demon bosses/quara squicher.xml:22: parser error : Opening and endi
ng tag mismatch: attacks line 20 and attack
</attack>
	 ^
data/monster/Demon bosses/quara squicher.xml:27: parser error : Opening and endi
ng tag mismatch: defense line 25 and attacks
</attacks>
	  ^
[19:27:53.954] [Warning - Monsters::loadMonster] Cannot load monster (Quara Squi
cher) file (data/monster/Demon bosses/quara squicher.xml).
[19:27:53.959] Line: 27, Info: Opening and ending tag mismatch: defense line 25
and attacks

data/monster/Demon bosses/captain cutler.xml:22: parser error : Opening and endi
ng tag mismatch: attacks line 20 and attack
</attack>
	 ^
data/monster/Demon bosses/captain cutler.xml:28: parser error : Opening and endi
ng tag mismatch: monster line 2 and attacks
</attacks>
	  ^
data/monster/Demon bosses/captain cutler.xml:29: parser error : Extra content at
the end of the document
<defenses armor="25" defense="20"/>
^
[19:27:54.007] [Warning - Monsters::loadMonster] Cannot load monster (Captain Cu
tler) file (data/monster/Demon bosses/captain cutler.xml).
[19:27:54.010] Line: 29, Info: Extra content at the end of the document