• 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... The Hidden City of Beregar

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,766
Solutions
1
Reaction score
225
Location
Chile, Santiago
Hi there... I have been searching for this script, but nothing...

I just need 2 things:

1) "Use your pick on the stone to uncover a teleport which will take you to the final chamber" - Like it says, just using a pick on a stone and it will make appear a teleport that will tp to x, y, z and the teleport will last 1 minute...
Edited: When you use the pick on the stone, it dissapear and the teleport appear on coords x", y", z"... When the teleport dissapear, the stone appears on the coords x''', y''', z'''.

2) "After defeating the greedy old bonebag (he doesnt die, the hp just goes black and yells: "Fighting little worm, your victory shall be rewarded) you are teleported to the reward room" - As this says, just when the monsters have less than 20% of his HP, he yells that and open a teleport that will teleport you to x', y', z' and it will last 1 minute...

That's all.


Someone may help me?

Pythius the Rotten:

PHP:
<?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>

PS: The first teleport should just teleport 1 player and then you can use the pick on the stone after 10 minutes.
PS: When you enter the teleport, then the Pythius the Rotten is summoned, if the player dies then the monster dissapear.
 
Last edited:
well for the first one r u going to put the portal under the stone? and whn the stone is removed you walk in. or do u want the stone to change into a portal when u use the pick on it?
 
well for the first one r u going to put the portal under the stone? and whn the stone is removed you walk in. or do u want the stone to change into a portal when u use the pick on it?

When you use the stone, it dissapears and create the teleport on a new teleport then you walk in the teleport, but only one player.
 
idk if this will work at all but u can try this add the first script to pick.lua
Code:
	if itemEx.aid == wwww then
		doRemoveItem(itemEx.uid, 1)
		teleport = doCreateTeleport(1387, {x=xdest, y=ydest, z=zdest}, {xxx,yyy,z})
		doItemSetAttribute(teleport, "aid", 101)
		return true
	end
Code:
<movement type="StepIn" itemid="1387" event="script"><![CDATA[
function onStepIn(cid, item, position, fromPosition)
    if item.actionid > 100 then
		doRemoveItem(item.uid, 1)
		item = doCreateItem(stoneid,1,{xxx,yyy,zzz})
		doItemSetAttribute(item, "aid", wwww)
	end
    return true
end
]]></movement>
 
It looks nice, but it should add a globalstorage to 1 and then after 10 minutes, you should be able to use the pick again, if you try, it should tell you "You must wait some time to open the passage..."

And also there is missing a onDeathCreateTeleport... I saw something, Im going to try with this, could you help me with the 10 minutes delay?

Found the code for the death:

Lua:
--- Posted by Cykotitan, [url]http://otland.net/f82/pythius-rotten_teleport-31213/[/url]

function onDeath(cid, corpse, deathList) return doCreateTeleport({x=922, y=3432, z=7}, {x=924, y=3432, z=7}) and doSendMagicEffect({x=924, y=3432, z=7}, CONST_ME_TELEPORT) and doCreatureSay(cid, "You have 30 seconds to enter the teleport before it is closed.", TALKTYPE_ORANGE_1) and addEvent(function() doRemoveItem(getTileItemById({x = 924, y = 3432, z = 7}, 1387).uid) end, 30 * 1000) end

Lua:
<event type="death" name="pythius the rottenteleport" script="pythius the rotten_teleport.lua"/>
 
Last edited:
you all are doing it wrong, that's not how it works.

If you are saying that it isn't like RL, I know... I want to make it simple, just use the pick, create a teleport, enter it (just one player, so you can't make it with a team) and summon the boss, if the boss dies, then creates a new teleport for x seconds, and if the player dies, then the boss is removed.

If you are saying it because the scripts are wrong, may you help us?
That's why I requested it, because my basically knowledge of scripting is to basic for this complicates things...
 
That would be great... But I would like the other way, because you have to travel in order to get into the teleport, and you can add monsters in the way, so it is more RPG.
 
emm no, i mean when you kill the monster.

Ahh that would be wonderfull!
Could you help me a little with the script?

At the moment I just need the delay to use the pick again, that is all what I need, and if you could improve the script at the death of pythius the rotten, that thing about that he teleports you.
 
no, onKill is better because we don't want to loop through deathlist (only 1 player can be in room at a time)

It doesn't loop all of the deathlist if you do it correctly...you should know this.
Either way works, but I guess I would use onKill as you said, it's easier.

Code:
function onKill(cid, target)
	local monster = "pythius the rotten"
	local pos = { x = 100, y = 100, z = 100 }
	return getCreatureName(target):lower() == monster and isPlayer(cid) and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) and doTeleportThing(cid, pos)
end
 
Last edited:
Ok:

1) The monster:

Lua:
<?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>

2) The pick action on the stone, there is a missing part, that adds a delay to use it, example 10 minutes:

Lua:
	function onUse(cid, item, toPosition, itemEx, fromPosition)
	if getGlobalStorageValue(#####) <= 0 then	--all the ##### have to be the same
		if itemEx.aid ==  wwww then
                doRemoveItem(itemEx.uid, 1)
                teleport = doCreateTeleport(1387, {x=xdest, y=ydest, z=zdest}, {xxx,yyy,z})
                doItemSetAttribute(teleport, "aid", 101)
				setGlobalStorageValue(#####, 1)
				addEvent(function reset, 10*60*1000, setGlobalStorageValue(#####, 0) end)
                return true
        end
	else
		doPlayerSendTextMessage(cid, 25, "Your Message Here.")
	end
return true
end

3) The teleport that may enter 1 player and it dissapears.

Lua:
<movement type="StepIn" itemid="1387" event="script"><![CDATA[
function onStepIn(cid, item, position, fromPosition)
    if item.actionid > 100 then
		doRemoveItem(item.uid, 1)
		item = doCreateItem(stoneid,1,{xxx,yyy,zzz})
		doItemSetAttribute(item, "aid", wwww)
	end
    return true
end
]]></movement>

4) The death of the monster:

Lua:
function onKill(cid, target)
	local monster = "pythius the rotten"
	local pos = { x = 100, y = 100, z = 100 }
	return getCreatureName(target):lower() == monster and isPlayer(cid) and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) and doTeleportThing(cid, pos)
end

PS: If you missed it, there is just one thing left, there is a missing part, that adds a delay to use it, example 10 minutes.
 
Last edited:
PS: If you missed it, there is just one thing left, that adds a delay to use it, example 10 minutes - Using the pick on the stone, it menas a delay to create the teleport.
 
Back
Top