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

Halloween Pumpkin

Rexanilator

New Member
Joined
Oct 3, 2009
Messages
297
Reaction score
2
I have a custom monster I made for the month of October - the Halloween Pumpkin. I need some assistance on enhancing the script.

First of all - the corpse of the halloween pumpkin is unmovable - which means if it dies - the corpse can trap a player. How can I adjust that...

Second - is it possible to make it skinable by multiple players so that everyone who kills the monster could skin it and get a reward?

Third - it doesn't stay open long enough to be looted. I adjusted the corpse time on items.xml - but it still seems to close to quickly.

You help is appreciated! Here is my script:

Code:
<?xml version="1.0" encoding="UTF-8"?> 
<monster name="Halloween Pumpkin" nameDescription="halloween pumpkin" race="fire" experience="250000" speed="530" manacost="0"> 
    <health now="1000000" max="1000000"/> 
    <look type="292" corpse="8960"/> 
    <targetchange interval="2000" chance="40"/> 
    <strategy attack="75" defense="50"/> 
    <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="1"/> 
        <flag runonhealth="3000"/> 
    </flags> 
    <attacks> 
        <attack name="melee" interval="2000" skill="200" attack="350"/> 
        <attack name="manadrain" interval="1000" chance="7" range="7" min="-500" max="-1000"> 
            <attribute key="shootEffect" value="energy"/> 
            <attribute key="areaEffect" value="poff"/> 
        </attack> 
        <attack name="drunk" interval="1000" chance="37" range="7"> 
            <attribute key="shootEffect" value="energy"/> 
            <attribute key="areaEffect" value="energyarea"/> 
        </attack> 
        <attack name="strength" interval="1000" chance="9" range="7"> 
            <attribute key="shootEffect" value="largerock"/> 
            <attribute key="areaEffect" value="energyarea"/> 
        </attack> 
        <attack name="lifedrain" interval="1000" chance="13" radius="8" target="0" min="-400" max="-700"> 
            <attribute key="areaEffect" value="bluebubble"/> 
        </attack> 
        <attack name="manadrain" interval="1000" chance="10" radius="8" target="0" min="-400" max="-700"> 
            <attribute key="areaEffect" value="greenshimmer"/> 
        </attack> 
        <attack name="speed" interval="1000" chance="12" radius="6" target="0" speedchange="-1900" duration="60000"> 
            <attribute key="areaEffect" value="poison"/> 
        </attack> 
        <attack name="strength" interval="1000" chance="8" radius="5" target="0"> 
            <attribute key="areaEffect" value="blackspark"/> 
        </attack> 
        <attack name="fire" interval="1000" chance="34" range="7" radius="7" target="1" min="-500" max="-900"> 
            <attribute key="shootEffect" value="fire"/> 
            <attribute key="areaEffect" value="firearea"/> 
        </attack> 
        <attack name="lifedrain" interval="1000" chance="15" length="8" spread="0" min="-1500" max="-1850"> 
            <attribute key="areaEffect" value="redshimmer"/> 
        </attack> 
    </attacks> 
    <defenses armor="160" defense="160"> 
        <defense name="healing" interval="1000" chance="15" min="2000" max="4000"> 
            <attribute key="areaEffect" value="blueshimmer"/> 
        </defense> 
        <defense name="healing" interval="1000" chance="25" min="2000" max="3000"> 
            <attribute key="areaEffect" value="blueshimmer"/> 
        </defense> 
        <defense name="speed" interval="1000" chance="8" speedchange="1901" duration="5000"> 
            <attribute key="areaEffect" value="redshimmer"/> 
        </defense> 
        <defense name="invisible" interval="1000" chance="4" duration="10000"> 
            <attribute key="areaEffect" value="blueshimmer"/> 
        </defense> 
        <defense name="invisible" interval="1000" chance="17" duration="2000"> 
            <attribute key="areaEffect" value="blueshimmer"/> 
        </defense> 
    </defenses> 
    <immunities> 
        <immunity physical="0"/> 
        <immunity energy="1"/> 
        <immunity fire="1"/> 
        <immunity poison="1"/> 
        <immunity lifedrain="1"/> 
        <immunity paralyze="1"/> 
        <immunity outfit="1"/> 
        <immunity drunk="1"/> 
        <immunity invisible="1"/> 
    </immunities> 
    <summons maxSummons="1"> 
        <summon name="demon" interval="1000" chance="15" max="2"/>
	 <summon name="witch" interval="1000" chance="65" max="4"/> 
        <summon name="vampire" interval="1000" chance="55" max="2"/> 
        <summon name="skeleton" interval="1000" chance="55" max="3"/> 
    </summons> 
    <voices interval="5000" chance="10"> 
        <voice sentence="COME HERE! FREE ITEMS FOR EVERYONE!" yell="1"/> 
        <voice sentence="Where are my minions???!"/> 
        <voice sentence="Slay your friends and I will spare you!" yell="1"/>
        <voice sentence="TRICK OR TREAT!" yell="1"/>  
        <voice sentence="DON'T BE AFRAID! I AM COMING IN PEACE!" yell="1"/> 
    </voices> 
    <loot capacity="5000">
       <item id="2160" countmax="100" chance="99900"/> -- crystal coin 
       <item id="2112" countmax="1" chance="14500"/> -- teddy bear 
      	<item id="2160" countmax="100" chance="88800"/> -- crystal coin 
      	<item id="6569" countmax="100" chance="99900"/> -- candy 
	<item id="2160" countmax="100" chance="77700"/> -- crystal coin 
       <item id="6574" countmax="1" chance="4000"/> -- bar of chocolate
	<item id="2683" countmax="1" chance="11000"/> -- pumpkin
	<item id="7910" countmax="8" chance="6600"/> -- peanuts	 
      	<item id="2160" countmax="100" chance="66600"/> -- crystal coin
       <item id="2674" countmax="100" chance="88800"/> -- apple 
       <item id="2687" countmax="100" chance="77700"/> -- cookie
    </loot> 
</monster>
 
It's something wrong with config.lua or with engine. Try!
--EDIT!--
Use OTItemEditor. Find CID or SID and pick attribute: "movable".
 
Last edited:
Back
Top