• 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:
Ahh no te fuiste a la chucha, lo deje asi y funciona de maravilla:

Lua:
local last = 0
local delay = 60 * 60 * 3

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if (itemEx.uid <= 65535 or itemEx.actionid > 0) and (not (itemEx.actionid == 3602)) and (itemEx.itemid == 1304 or itemEx.itemid == 354 or itemEx.itemid == 355 or itemEx.itemid == 9024 or itemEx.itemid == 9025) then
        doTransformItem(itemEx.uid, 383)
        doDecayItem(itemEx.uid)
    elseif itemEx.uid == 60001 then
        doTeleportThing(cid, {x=329, y=772, z=10})
        doSendMagicEffect({x=329, y=772, z=10}, 10)
    elseif (itemEx.actionid == 3602) then
        if ((os.time() - last) >= delay) and getGlobalStorageValue(33503, 0) then
            local teleport = doCreateTeleport(1387, {x=345, y=887, z=15, stackpos=1}, {x=315, y=809, z=15, stackpos=2})
            doItemSetAttribute(teleport, "aid", 101)
            doSummonCreature('Pythius the Rotten', {x=344, y=887, z=15, stackpos = 253})
			setGlobalStorageValue(33503, 1)
            last = os.time()   
		else
            doPlayerSendTextMessage(cid, 25, "Once every 3 hours...")
        end
	  elseif (itemEx.actionid == 3602) then
        if ((os.time() - last) >= delay) and getGlobalStorageValue(33503, 1) then
            local teleport = doCreateTeleport(1387, {x=345, y=887, z=15, stackpos=1}, {x=315, y=809, z=15, stackpos=2})
            doItemSetAttribute(teleport, "aid", 101)
            last = os.time()   
		else
            doPlayerSendTextMessage(cid, 25, "Once every 3 hours...")
        end	
    else
        return false
    end
    return true
end

Lua:
function onKill(cid, target)
	local m = {
		["Pythius The Rotten"] = {
			message = "Escape through the teleport quickly before it closes!",
			cfg = {
				{
					time = 10, -- Seconds until tp closes.
					to = { x = 342, y = 839, z = 15 }, -- Where the tp takes you.
					tp = { x = 339, y = 887, z = 15 } -- Where the tp creates.
				},
			}
		}
	}
	if isPlayer(target) then
		return true
	end
	local monster = m[getCreatureName(target)]
	if monster then
		for i = 1, #monster.cfg do
			local c = monster.cfg[i]
				local function deleteTeleport()
				local teleport = getTileItemById(c.tp, 1387).uid
					if(teleport > 0) then
						doRemoveItem(teleport)
						doSendMagicEffect(c.tp, CONST_ME_POFF)
					end
					return true
				end
			doCreateTeleport(1387, c.to, c.tp)
			doSendMagicEffect(c.tp, CONST_ME_ENERGYAREA)
			addEvent(deleteTeleport, c.time * 1000)
			setGlobalStorageValue(33503, 0)
		end
		doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
	end
	return true
end

Si queris haz un ejemplo de lo que deci tu pa aprender.
 
Help... Need to add a check to use if the monster exist or doesnt, if it exist, then it doesnt get summoned... Else if the monster doesnt exist, it summons it.
 
Back
Top