• 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!

[REQUEST] Monster Skull

LOpi

New Member
Joined
Aug 13, 2007
Messages
23
Reaction score
1
I just want to know how i add skull to a monster via their xml file, and what are all skull numbers please. THANK YOU
 
Lua:
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4
SKULL_BLACK = 5
Code:
<monster name="Carrion Worm" nameDescription="a carrion worm" race="blood" experience="70" speed="130" manacost="380" [COLOR=#ff0000]skull="1"[/COLOR]>
 
Lua:
skull_none = 0
skull_yellow = 1
skull_green = 2
skull_white = 3
skull_red = 4
skull_black = 5
Code:
<monster name="carrion worm" namedescription="a carrion worm" race="blood" experience="70" speed="130" manacost="380" [color=#ff0000]skull="1"[/color]>

Lua:
skull_orange = 6
 
where do you put the
Lua:
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4
SKULL_BLACK = 5
part?
 
Add skull="1" to the monster script like Ninja posted.
That part is just to show which number is for which skull. So 1 will be a yellow skull and 4 a red skull.
 
ye i did that part but i meant where do i put this

Lua:
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4
SKULL_BLACK = 5

like i copy and paste this in what file?
 
ye i did that part but i meant where do i put this

Lua:
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4
SKULL_BLACK = 5

like i copy and paste this in what file?
just edit the monster, add skull="x" where x is the skull number...
 
edit the monster itself or the monster.xml file?
okay look so this part goes where?
Lua:
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4
SKULL_BLACK = 5

and this part goes in the file for the monster im making V
<monster name="Carrion Worm" nameDescription="a carrion worm" race="blood" experience="70" speed="130" manacost="380" skull="1">

thanks for the help and sorry if i suck :(
 
i get it now but it doesnt work i dont know why:( is anything wrong with this script?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Void Spirit" nameDescription="a void spirit" race="blood" experience="10" speed="350" manacost="0" skull="4">
    <health now="5000" max="5000"/>
    <look type="287" corpse="8937"/>
    <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 targetdistance="4"/>
        <flag staticattack="90"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="60" attack="20"/>
        <attack name="lifedrain" interval="1000" chance="100" range="7" min="-30" max="-30">
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
    </attacks>
    <defenses armor="14" defense="10">
        <defense name="invisible" interval="2000" chance="50" duration="10000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element deathPercent="10"/>
        <element physicalPercent="-12"/>
        <element holyPercent="-5"/>
    </elements>
    <immunities>
        <immunity invisible="1"/>
    </immunities>
    <loot>
        <item id="2261" countmax="1" chance="1500"/><!-- Void Teleporter -->
    </loot>
</monster>
 
ye i tried reloading and restarting.. im using version 0.2.13... and i check the global.lua file and found this
SKULL_NONE = 0
SKULL_YELLOW = 1
SKULL_GREEN = 2
SKULL_WHITE = 3
SKULL_RED = 4

so it should work but i dont know what the problem is :(
 
skull number could also be a flag. Try this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Void Spirit" nameDescription="a void spirit" race="blood" experience="10" speed="350" manacost="0"
  <health now="5000" max="5000"/>
  <look type="287" corpse="8937"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
  <flag skull="4"/>
  <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 targetdistance="4"/>
  <flag staticattack="90"/>
  <flag runonhealth="0"/>
  </flags>
  <attacks>
  <attack name="melee" interval="2000" skill="60" attack="20"/>
  <attack name="lifedrain" interval="1000" chance="100" range="7" min="-30" max="-30">
  <attribute key="areaEffect" value="redshimmer"/>
  </attack>
  </attacks>
  <defenses armor="14" defense="10">
  <defense name="invisible" interval="2000" chance="50" duration="10000">
  <attribute key="areaEffect" value="blueshimmer"/>
  </defense>
  </defenses>
  <elements>
  <element deathPercent="10"/>
  <element physicalPercent="-12"/>
  <element holyPercent="-5"/>
  </elements>
  <immunities>
  <immunity invisible="1"/>
  </immunities>
  <loot>
  <item id="2261" countmax="1" chance="1500"/><!-- Void Teleporter -->
  </loot>
</monster>
 
Back
Top