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

Pythius the Rotten

Siramix

CEO
Senator
Premium User
Joined
Jan 6, 2010
Messages
3,554
Reaction score
263
Location
Sweden, Europe
Hey!

I need some help with a creature.
When killing the monster Pythius the Rotten. I shall be automaticly teleported to another spot.

Can you please help me out with this?
This is my current pythius the rotten script..

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="pythius the rotten" nameDescription="pythius the rotten" race="undead" experience="100" speed="280" manacost="0">
  <health now="9000" max="9000"/>
  <look type="231" corpse="6306"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="1"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" skill="145" attack="135"/>

    <attack name="fire" interval="2000" chance="20" range="7" radius="4" target="1" min="-165" max="-205">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="redspark"/>
    </attack>

    <attack name="death" interval="9000" chance="100" radius="4" target="0" min="0" max="0">
      <attribute key="areaEffect" value="mortarea"/>
    </attack>

    <attack name="poison" interval="2000" chance="20" range="7" radius="4" target="1" min="-55" max="-155">
      <attribute key="shootEffect" value="poison"/>
      <attribute key="areaEffect" value="poison"/>
    </attack>

    <attack name="poison" interval="2000" chance="20" length="8" spread="3" min="-300" max="-415">
      <attribute key="areaEffect" value="poison"/>
    </attack>

    <attack name="manadrain" interval="2000" chance="12" range="5" radius="4" target="1" min="-85" max="-110">
      <attribute key="areaEffect" value="greenshimmer"/>
    </attack>

  </attacks>
  <defenses armor="35" defense="30">
  </defenses>
  <summons maxSummons="2">
	<summon name="undead gladiator" interval="9000" chance="100"/>
	<summon name="undead gladiator" interval="9000" chance="100"/>
  </summons>
	<elements>
		<element physicalPercent="10"/>
		<element icePercent="10"/>
		<element holyPercent="-10"/>
	</elements>
  <immunities>
    <immunity death="1"/>
    <immunity earth="1"/>
    <immunity energy="1"/>
    <immunity lifedrain="1"/>
    <immunity invisible="1"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="YOU'LL NEVER GET MY TREASURE!"/>
	<voice sentence="MINIONS, MEET YOUR NEW BROTHER!"/>
	<voice sentence="YOU WILL REGRET THAT YOU ARE BORN!"/>
	<voice sentence="YOU MADE A HUGE WASTE!"/>
  </voices>
</monster>

I would appreciate it a lot if you want to give some support.

Sincerely,
Siramix!
 
Code:
function onDeath(cid, corpse, deathList)
	if getCreatureName(cid):lower() == "pythius the rotten" then
		for i = 1, #deathList do
			local killer = deathList[i]
			if isPlayer(killer) then
				doCreatureSay(killer, "NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_ORANGE_1, false, nil, {x=32572, y=31403, z=15})
				doSendMagicEffect(getCreaturePosition(killer), CONST_ME_TELEPORT)
				doTeleportThing(killer, {x=32577, y=31403, z=15})
				doSendMagicEffect({x=32577, y=31403, z=15}, CONST_ME_TELEPORT)
				break
			end
		end
	end
	return true
end
Fail sykotitan will pwned to all!
wat
 
Back
Top