Maten
New Member
- Joined
- Mar 16, 2009
- Messages
- 219
- Reaction score
- 2
Why do I get this sometimes when I make a Costum monster? (it happens when I kill it)
I have more costum monsters that works fine, so why wont this work?
My monster (not done):
Code:
[30/01/2013 12:25:57] [Error - CreatureScript Interface]
[30/01/2013 12:25:57] buffer:onKill
[30/01/2013 12:25:57] Description:
[30/01/2013 12:25:57] (luaGetMonsterInfo) Monster not found
[30/01/2013 12:25:57] [Error - CreatureScript Interface]
[30/01/2013 12:25:57] buffer:onKill
[30/01/2013 12:25:57] Description:
[30/01/2013 12:25:57] [string "loadBuffer"]:140: attempt to index local 'v' (a boolean value)
[30/01/2013 12:25:57] stack traceback:
[30/01/2013 12:25:57] [string "loadBuffer"]:140: in function <[string "loadBuffer"]:137>
I have more costum monsters that works fine, so why wont this work?
My monster (not done):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Ghost wife" nameDescription="an Ghost wife" race="undead" experience="4000" speed="360" manacost="0">
<health now="3650" max="3650"/>
<look type="329" head="78" body="87" legs="94" feet="115" addons="0" corpse="6080"/>
<targetchange interval="5000" chance="30"/>
<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="95"/>
<flag runonhealth="1150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="50"/>
<attack name="fire" interval="1000" chance="20" range="7" target="1" min="-60" max="-250">
<attribute key="areaEffect" value="fireattack"/>
<attribute key="shootEffect" value="fire"/>
</attack>
<attack name="manadrain" interval="1000" chance="20" target="1" range="7" radius="3" min="-50" max="-125">
<attribute key="areaEffect" value="teleport"/>
<attribute key="shootEffect" value="energyball"/>
</attack>
<attack name="firefield" interval="1000" chance="20" range="7" radius="3" target="1">
<attribute key="shootEffect" value="fire"/>
</attack>
<attack name="ice" interval="2000" chance="15" length="8" spread="0" min="-150" max="-450">
<attribute key="areaEffect" value="iceattack"/>
</attack>
</attacks>
<defenses armor="25" defense="25">
<defense name="healing" interval="1000" chance="15" min="60" max="230">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="invisible" interval="2000" chance="10" duration="4000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element earthPercent="90"/>
<element physicalPercent="-10"/>
<element icePercent="-15"/>
<element holyPercent="10"/>
<element deathPercent="10"/>
</elements>
<immunities>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<summons maxSummons="1">
<summon name="fire elemental" interval="1000" chance="13"/>
</summons>
<loot>
<item id="2148" countmax="70" chance="100000"/><!-- gold coin -->
<item id="2148" countmax="44" chance="100000"/><!-- gold coin -->
<item id="8840" countmax="5" chance="100000"/><!-- raspberry -->
<item id="9971" chance="3500"/><!-- gold ingot -->
<item id="7891" chance="1500"/><!-- magma boots -->
<item id="2195" chance="800"/><!-- boots of haste -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="7760" countmax="1" chance="9500"/><!-- small enchanted ruby -->
<item id="9980" chance="1300"/><!-- crystal of power -->
<item id="2167" chance="14500"/><!-- energy ring -->
<item id="2436" chance="5000"/><!-- skull staff -->
<item id="8902" chance="1300"/><!-- spellbook of mind control -->
</inside>
</item>
</loot>
</monster>
Last edited by a moderator: