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

availabe attribute for a monster or a npc ?

Ranyo13

ManCausingMayhem
Joined
Aug 22, 2009
Messages
981
Reaction score
39
is it possible to put a kind of skull like green, red for a monster or npc with a certain attribute ? and where to put it ?! Please help me with every step and i will realy rep u !:)
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="bad rabbit" nameDescription="a bad rabbit" race="blood" experience="0" speed="180" manacost="220">
    <health now="15" max="15"/>
    <look type="74" head="20" body="30" legs="40" feet="50" corpse="6017"/>
    <targetchange interval="5000" chance="20"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="1"/>
        <flag attackable="1"/>
        <flag hostile="0"/>
        <flag illusionable="1"/>
        <flag convinceable="1"/>
        <flag pushable="1"/>
        <flag canpushitems="0"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="15"/>
        <flag skull="white"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="0" attack="0"/>
    </attacks>
    <defenses armor="1" defense="2"/>
    <immunities>
        <immunity physical="0"/>
        <immunity energy="0"/>
        <immunity fire="0"/>
        <immunity poison="0"/>
        <immunity lifedrain="0"/>
        <immunity paralyze="0"/>
        <immunity outfit="0"/>
        <immunity drunk="0"/>
        <immunity invisible="0"/>
    </immunities>
    <loot>
        <item id="2684" countmax="4" chance="70000"/>
        <item id="2666" countmax="2" chance="20000"/>
    </loot>
</monster>

i think its possible with a NPC too but i dont remember how to set the flag for it.
 
I think you must source-edit or smth like that. I once saw a thread explaining how to do it via CPP, but ain't got it now.
unless doCreatureSetSkullType(cid, skull) does it :p
 
thx soul4soul i will use it later but the npc is more important ... where do i put doCreatureSetSkullType(cid, green) in the npc folder ... xml or lua or what and next to what ima noob ! i will rep both of u guys if u help me i hate sources
 
There is an attribute flag for NPCs, you guys are trippin

just try skull="green" where you declare the outfit in the NPC, you don't need a script or anything else
 
There is an attribute flag for NPCs, you guys are trippin

just try skull="green" where you declare the outfit in the NPC, you don't need a script or anything else
hahah so true :p
[cpp]
if(readXMLInteger(root, "walkinterval", intValue))
walkTicks = intValue;

if(readXMLString(root, "floorchange", strValue))
floorChange = booleanString(strValue);

if(readXMLString(root, "skull", strValue))
setSkull(getSkulls(strValue));

[/cpp]
 
Back
Top