• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Tfs 0.2.8 Mystic Spirit Console error (movements)

Johanz

New Member
Joined
Dec 31, 2008
Messages
188
Reaction score
1
[13/03/2011 16:03:30] Error: [MoveEvent::configureMoveEvent] No valid event name function
[13/03/2011 16:03:30] Warning: [BaseEvents::loadFromXml] Can not configure event


Used my scripts from real server 3.1 (8.6)

And getting theese errors. Are the servers so much unlike ?

Anyone know how to fix?


Also:

Used my creaturescripts aswell but seems to be unvalid :p

[16/03/2011 21:29:17] Warning: [Event::checkScript] Event onStepIn not found. /scripts/snow.lua
[16/03/2011 21:29:17] Warning: [Event::checkScript] Event onStepIn not found. /scripts/snow.lua
[16/03/2011 21:29:17] Error: [CreatureEvent::configureEvent] No valid type for creature event.advance
[16/03/2011 21:29:17] Warning: [BaseEvents::loadFromXml] Can not configure event
[16/03/2011 21:29:17] Error: [CreatureEvent::configureEvent] No valid type for creature event.attack
[16/03/2011 21:29:17] Warning: [BaseEvents::loadFromXml] Can not configure event


Any idea of fixing this?

[16/03/2011 21:29:17] [Warning - Monsters::loadMonster] Unknown element percent. data/monster/Bosses/barbaria.xml


The strange thing is that it exists :S using small letters in the npc file aswell. Both are exactly the same spelled..


[16/03/2011 21:29:39] Warning: [Npc::loadInteraction] Missing time attribute for onidle event
[16/03/2011 21:29:39] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[16/03/2011 21:29:39] cannot open default.lua: No such file or directory
[16/03/2011 21:29:17] Error: [Monsters::deserializeSpell] - Dharalion - Unknown spell name: effect
 
Last edited:
  1. replace all event="script" value=" with script="
  2. replace all event="function" value=" with function="
  3. replace all type=" with event="
 
Thanks for reply Cyko!

Changed it in movements.xml and got this console error:

[15/03/2011 21:38:03] Warning: [BaseEvents::loadFromXml] Can not open movements.xml
[15/03/2011 21:38:03] > ERROR: Unable to load MoveEvents!

Any idea? :/

Looked through and found some errors that i corrected but still can't get it to work :/

Uploaded my movements.xml to pastebin.. http://pastebin.com/cLiGUSVk
 
Last edited:
Your great Cyko! Keep up the good work :) Tho i have some other console errors.

Used my creaturescripts aswell but seems to be unvalid :p

[16/03/2011 21:29:17] Warning: [Event::checkScript] Event onStepIn not found. /scripts/snow.lua
[16/03/2011 21:29:17] Warning: [Event::checkScript] Event onStepIn not found. /scripts/snow.lua
[16/03/2011 21:29:17] Error: [CreatureEvent::configureEvent] No valid type for creature event.advance
[16/03/2011 21:29:17] Warning: [BaseEvents::loadFromXml] Can not configure event
[16/03/2011 21:29:17] Error: [CreatureEvent::configureEvent] No valid type for creature event.attack
[16/03/2011 21:29:17] Warning: [BaseEvents::loadFromXml] Can not configure event


Any idea of fixing this?

[16/03/2011 21:29:17] [Warning - Monsters::loadMonster] Unknown element percent. data/monster/Bosses/barbaria.xml


The strange thing is that it exists :S using small letters in the npc file aswell. Both are exactly the same spelled..


[16/03/2011 21:29:39] Warning: [Npc::loadInteraction] Missing time attribute for onidle event
[16/03/2011 21:29:39] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[16/03/2011 21:29:39] cannot open default.lua: No such file or directory
[16/03/2011 21:29:17] Error: [Monsters::deserializeSpell] - Dharalion - Unknown spell name: effect
 
Read the error and warning messages? :p

1. No valid type for creature event.advance
2. Event onStepIn not found. /scripts/snow.lua
3. Missing time attribute for onidle event
4. cannot open default.lua: No such file or directory
5. Dharalion - Unknown spell name: effect
 
Read the error and warning messages? :p

1. No valid type for creature event.advance
2. Event onStepIn not found. /scripts/snow.lua
3. Missing time attribute for onidle event
4. cannot open default.lua: No such file or directory
5. Dharalion - Unknown spell name: effect

Well i did :p But i can't figure out what to do :S How do i get the type valid for the creature event etc?

cannot open default.lua: No such file or directory. The directory exists.. that's the odd thing.
 
0.2 doesn't support onAttack or onAdvance added in 0.2.10
post snow.lua & dharalion.xml & barbaria.xml and the npc xml file which has onidle inside it.
 
Ok, is it possible to still use my onAttack and onAdvance files in another way but with same ingame result?

Snow
Lua:
function onStepOut(cid, item, position, fromPosition)
	addEvent(transformBack, 10000, {oldItemID = item.itemid, _position = position})
	if item.itemid == 670 then
		doTransformItem(item.uid, 6594)
	else
		doTransformItem(item.uid, item.itemid + 15)
	end
	return TRUE
end

function transformBack(parameters)
	parameters._position.stackpos = 0
	doTransformItem(getThingfromPos(parameters._position).uid, parameters.oldItemID)
	return TRUE
end


dharalion.xml
Lua:
 <?xml version="1.0" encoding="UTF-8"?>
<monster name="Dharalion" nameDescription="dharalion" race="blood" experience="380" speed="240" manacost="0">
	<health now="380" max="380"/>
	<look type="203" corpse="6011"/>
	<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="1"/>
		<flag targetdistance="4"/>
		<flag staticattack="90"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="30" attack="28"/>
		<attack name="manadrain" interval="1000" chance="15" range="7" min="-30" max="-60"/>
		<attack name="energy" interval="1000" chance="13" range="7" min="-70" max="-90">
			<attribute key="shootEffect" value="energy"/>
			<attribute key="areaEffect" value="energy"/>
		</attack>
		<attack name="physical" interval="1000" chance="10" range="7" min="-80" max="-151">
			<attribute key="shootEffect" value="suddendeath"/>
		</attack>
		<attack name="effect" interval="1000" chance="13" range="7">
			<attribute key="shootEffect" value="poison"/>
			<attribute key="areaEffect" value="poison"/>
		</attack>
	</attacks>
	<defenses armor="15" defense="25">
		<defense name="healing" interval="1000" chance="20" min="90" max="120">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="7" speedchange="300" duration="10000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<immunities>
		<immunity physical="0"/>
		<immunity energy="0"/>
		<immunity fire="1"/>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="0"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="demon skeleton" interval="1000" chance="6" max="2"/>
	</summons>
	<voices interval="5000" chance="10">
		<voice sentence="Feel my wrath!"/>
		<voice sentence="Noone will stop my ascension!"/>
		<voice sentence="My powers are divine!"/>
	</voices>
	<loot>
		<item id="2148" countmax="20" chance="100000"/><!-- gold coin -->
		<item id="1949" chance="10000"/><!-- scroll -->
		<item id="2578" chance="5000"/><!-- closed trap -->
		<item id="2260" chance="4000"/><!-- blank rune -->
		<item id="2401" chance="3000"/><!-- staff -->
		<item id="2642" chance="20000"/><!-- sandals -->
		<item id="2682" chance="6666"/><!-- melon -->
		<item id="2802" countmax="1" chance="10000"/><!-- sling herb -->
		<item id="2600" chance="33333"/><!-- inkwell -->
		<item id="2177" chance="2857"/><!-- life crystal -->
		<item id="2689" countmax="3" chance="20000"/><!-- bread -->
		<item id="3976" countmax="10" chance="50000"/><!-- worm -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
				<item id="2652" chance="5000"/><!-- green tunic -->
				<item id="2544" countmax="10" chance="20000"/><!-- arrow -->
				<item id="2456" chance="10000"/><!-- bow -->
				<item id="2032" chance="4000"/><!-- bowl -->
				<item id="2062" chance="2857"/><!-- small oil lamp -->
				<item id="2125" chance="1818"/><!-- crystal necklace -->
				<item id="2154" chance="1333"/><!-- yellow gem -->
			</inside>
		</item>
	</loot>
</monster>

barbaria.xml

Lua:
 <?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbaria" nameDescription="barbaria" race="blood" experience="355" speed="280" manacost="0">
	<health now="555" max="555"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="60000" chance="0"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="60" attack="20"/>
		<attack name="physical" interval="2000" chance="34" range="7" radius="1" target="1" min="-30" max="-80">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="energy" interval="3000" chance="20" range="7" min="-35" max="-70">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="energy"/>
		</attack>
	</attacks>
	<defenses armor="10" defense="10">
		<defense name="healing" interval="1000" chance="25" min="50" max="80">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element physicalPercent="-20"/>
		<element icePercent="50"/>
		<element holyPerent="10"/>
		<element energyPercent="20"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="1">
		<summon name="War Wolf" interval="2000" chance="40"/> 
	</summons>
	<voices interval="2000" chance="5">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
	</voices>
	<loot>
		<item id="2148" countmax="35" chance1="48000" chancemax="0"/><!-- gold coins -->
		<item id="2464" chance="11000"/><!-- chain armor -->
		<item id="3965" chance="12500" /><!-- hunting spear -->
		<item id="7343" chance="100000"><!-- fur bag -->
			<item id="2050" chance="25000"/><!-- torch -->
			<item id="1958" chance="15000"/><!-- grey book -->
		</item>
	</loot>
</monster>

About the npc. Dont know wich one it is. Was is onidle?

Thanks for reposonses!
 
movements.xml s/
Code:
	<movevent event="StepIn" itemid="670" script="snow.lua"/>
	<movevent event="StepIn" fromid="6580" toid="6593" script="snow.lua"/>
/
Code:
	<movevent event="StepOut" itemid="670" script="snow.lua"/>
	<movevent event="StepOut" fromid="6580" toid="6593" script="snow.lua"/>
barbaria.xml s/
Code:
		<element holyPerent="10"/>
/
Code:
		<element holyPercent="10"/>
dharalion.xml s/
Code:
		<attack name="effect" interval="1000" chance="13" range="7">
/
Code:
		<attack name="earth" interval="2000" chance="13" range="7">
onAttack no, for onAdvance update to 0.2.10
 
Last edited:
About the Update. This might be a really odd question. Is it possible to update my server and in some way still keep it as a 8.6? :/
 
Back
Top