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

Lua Monsterbug azerus pos

Glidarn

Member
Joined
May 9, 2009
Messages
970
Reaction score
16
Location
Åkersberga, Sweden
ImageShack® - Online Photo and Video Hosting


LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="90" attack="50"/>
<attack name="poison" interval="2000" chance="10" range="1" radius="1" target="1" min="-60" max="-120">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="2000" chance="20" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
<loot>
<item id="2148" countmax="90" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="70" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="60" chance="22500"/><!-- gold coin -->
<item id="11319" chance="9750"><!-- spiked iron ball -->
<item id="11327" chance="8000"><!-- high guard shoulderplates -->
<item id="7591" chance="5000"><!-- great health potion -->
<item id="5881" chance="1000"/><!-- lizard scale -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="11326" chance="1000"/><!-- high guard flag -->
<item id="2149" chance="2250"/><!-- small emerald -->
<item id="11298" chance="1000"/><!-- zaoan legs -->
<item id="11297" chance="2200"/><!-- zaoan shoes -->
<item id="11239" chance="1200"/><!-- bunch of ripe dice -->
<item id="5876" chance="1500"/><!-- lizard leather -->
<item id="11200" chance="900"/><!-- red lantern-->
<item id="11295" chance="300"/><!-- zaoan armor -->
</inside>
</item>
</loot>
</monster>

need it rly fast, rep ++
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="55" attack="50"/>
<attack name="poison" interval="1000" chance="2" range="1" radius="1" target="1" min="-0" max="-110">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="1000" chance="18" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
<loot>
<item id="2148" countmax="90" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="70" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="60" chance="22500"/><!-- gold coin -->
<item id="11319" chance="9750"><!-- spiked iron ball -->
<item id="11327" chance="8000"><!-- high guard shoulderplates -->
<item id="7591" chance="5000"><!-- great health potion -->
<item id="5881" chance="1000"/><!-- lizard scale -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="11326" chance="1000"/><!-- high guard flag -->
<item id="2149" chance="2250"/><!-- small emerald -->
<item id="11298" chance="1000"/><!-- zaoan legs -->
<item id="11297" chance="2200"/><!-- zaoan shoes -->
<item id="11239" chance="1200"/><!-- bunch of ripe dice -->
<item id="5876" chance="1500"/><!-- lizard leather -->
<item id="11200" chance="900"/><!-- red lantern-->
<item id="11295" chance="300"/><!-- zaoan armor -->
</inside>
</item>
</loot>
</monster>
 
i reloaded monsters and i got the same error on lizard highguard and i had the same problem on "lizard legionnaire"

Imageshack - lizardso.png

Lizard highguard

XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="55" attack="50"/>
<attack name="poison" interval="1000" chance="2" range="1" radius="1" target="1" min="-0" max="-110">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="1000" chance="18" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
<loot>
<item id="2148" countmax="90" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="70" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="60" chance="22500"/><!-- gold coin -->
<item id="11319" chance="9750"><!-- spiked iron ball -->
<item id="11327" chance="8000"><!-- high guard shoulderplates -->
<item id="7591" chance="5000"><!-- great health potion -->
<item id="5881" chance="1000"/><!-- lizard scale -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="11326" chance="1000"/><!-- high guard flag -->
<item id="2149" chance="2250"/><!-- small emerald -->
<item id="11298" chance="1000"/><!-- zaoan legs -->
<item id="11297" chance="2200"/><!-- zaoan shoes -->
<item id="11239" chance="1200"/><!-- bunch of ripe dice -->
<item id="5876" chance="1500"/><!-- lizard leather -->
<item id="11200" chance="900"/><!-- red lantern-->
<item id="11295" chance="300"/><!-- zaoan armor -->
</inside>
</item>
</loot>
</monster>

lizard legionnaire

XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard Legionnaire" nameDescription="a lizard legionnaire" race="blood" experience="1100" speed="220" manacost="0">
<health now="1400" max="1400"/>
<look type="338" corpse="11273"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="50"/>
<attack name="physical" interval="2000" chance="25" range="7" min="-0" max="-310">
<attribute key="shootEffect" value="spear"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
	</defenses>
<elements>
<element firePercent="45"/>
<element icePercent="-15"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Tssss!"/>
</voices>
<loot>
<item id="2148" countmax="76" chance="25500"/><!-- gold coin -->
<item id="2148" countmax="60" chance="25500"/><!-- gold coin -->
<item id="11328" chance="5000"><!-- legionnaire flags -->
<item id="7618" chance="12500"/><!-- health potion -->
<item id="11330" chance="3000"/><!-- lizard trophy -->
<item id="11329" chance="2250"/><!-- broken halberd -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="11317" chance="2000"/><!-- zaoan halberd -->
<item id="11298" chance="1000"/><!-- zaoan shoes -->
<item id="11299" chance="500"/><!-- drakinata -->
<item id="11295" chance="450"/><!-- zaoan armor -->
<item id="2145" chance="750"/><!-- small diamond -->
<item id="11200" chance="300"/><!-- red lantern -->
</inside>
</item>
</loot>
</monster>


No, it did not
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="90" attack="50"/>
<attack name="poison" interval="2000" chance="10" range="1" radius="1" target="1" min="-60" max="-120">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="2000" chance="20" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
	<loot>
		<item id="2148" countmax="90" chance="22500"/><!-- gold coin -->
		<item id="2148" countmax="70" chance="22500"/><!-- gold coin -->
		<item id="2148" countmax="60" chance="22500"/><!-- gold coin -->
		<item id="11319" chance="9750"/><!-- spiked iron ball -->
		<item id="11327" chance="8000"/><!-- high guard shoulderplates -->
		<item id="7591" chance="5000"/><!-- great health potion -->
		<item id="5881" chance="1000"/><!-- lizard scale -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
		<item id="11326" chance="1000"/><!-- high guard flag -->
		<item id="2149" chance="2250"/><!-- small emerald -->
		<item id="11298" chance="1000"/><!-- zaoan legs -->
		<item id="11297" chance="2200"/><!-- zaoan shoes -->
		<item id="11239" chance="1200"/><!-- bunch of ripe dice -->
		<item id="5876" chance="1500"/><!-- lizard leather -->
		<item id="11200" chance="900"/><!-- red lantern-->
		<item id="11295" chance="300"/><!-- zaoan armor -->
			</inside>
		</item>
	</loot>
</monster>

XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="55" attack="50"/>
<attack name="poison" interval="1000" chance="2" range="1" radius="1" target="1" min="-0" max="-110">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="1000" chance="18" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
	<loot>
<item id="2148" countmax="90" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="70" chance="22500"/><!-- gold coin -->
<item id="2148" countmax="60" chance="22500"/><!-- gold coin -->
<item id="11319" chance="9750"/><!-- spiked iron ball -->
<item id="11327" chance="8000"/><!-- high guard shoulderplates -->
<item id="7591" chance="5000"/><!-- great health potion -->
<item id="5881" chance="1000"/><!-- lizard scale -->
<item id="1987" chance="100000"><!-- bag -->
			<inside>
<item id="11326" chance="1000"/><!-- high guard flag -->
<item id="2149" chance="2250"/><!-- small emerald -->
<item id="11298" chance="1000"/><!-- zaoan legs -->
<item id="11297" chance="2200"/><!-- zaoan shoes -->
<item id="11239" chance="1200"/><!-- bunch of ripe dice -->
<item id="5876" chance="1500"/><!-- lizard leather -->
<item id="11200" chance="900"/><!-- red lantern-->
<item id="11295" chance="300"/><!-- zaoan armor -->
			</inside>
		</item>
	</loot>
</monster>

This will do it.
 
Okey, then use this.

Lizard High Guard:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="90" attack="50"/>
<attack name="poison" interval="2000" chance="10" range="1" radius="1" target="1" min="-60" max="-120">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="2000" chance="20" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
<loot>
    <item id="5876" chance="1025" />
    <item id="11200" chance="750" />
    <item id="11304" chance="750" />
    <item id="11332" chance="925" />
    <item id="11333" chance="3975" />
    <item id="11325" chance="7050" />
    <item id="11303" chance="750" />
    <item id="1987" chance="100000">
        <inside>
            <item id="2148" countmax="100" chance="34375" />
            <item id="2148" countmax="100" chance="34375" />
            <item id="2148" countmax="22" chance="34375" />
            <item id="11245" chance="900" />
            <item id="2149" chance="650" />
            <item id="7591" chance="1875" />
            <item id="5881" chance="950" />
            <item id="11301" chance="75" />
        </inside>
    </item>
</loot>
</monster>
Lizard Legionnaire:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard Legionnaire" nameDescription="a lizard legionnaire" race="blood" experience="1100" speed="220" manacost="0">
<health now="1400" max="1400"/>
<look type="338" corpse="11273"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="50"/>
<attack name="physical" interval="2000" chance="25" range="7" min="-0" max="-310">
<attribute key="shootEffect" value="spear"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
	</defenses>
<elements>
<element firePercent="45"/>
<element icePercent="-15"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Tssss!"/>
</voices>
<loot>
    <item id="11245" chance="950" />
    <item id="11323" chance="925" />
    <item id="11335" chance="9925" />
    <item id="5876" chance="1125" />
    <item id="2148" countmax="100" chance="38550" />
    <item id="2148" countmax="63" chance="38550" />
    <item id="7618" chance="425" />
    <item id="11303" chance="375" />
    <item id="1987" chance="100000">
        <inside>
            <item id="11305" chance="125" />
            <item id="11334" chance="825" />
            <item id="2145" chance="75" />
            <item id="11206" chance="550" />
            <item id="11301" chance="75" />
            <item id="11336" chance="25" />
        </inside>
    </item>
</loot>
</monster>
 
Okey, then use this.

Lizard High Guard:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard High Guard" nameDescription="a lizard high guard" race="blood" experience="1450" speed="340" manacost="0">
<health now="1800" max="1800"/>
<look type="337" corpse="11269"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="90" attack="50"/>
<attack name="poison" interval="2000" chance="10" range="1" radius="1" target="1" min="-60" max="-120">
<attribute key="areaEffect" value="poison"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
		<defense name="healing" interval="2000" chance="20" min="200" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
<elements>
<element icePercent="-10"/>
<element firePercent="45"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Grzzzzzzz!"/>
</voices>
<loot>
    <item id="5876" chance="1025" />
    <item id="11200" chance="750" />
    <item id="11304" chance="750" />
    <item id="11332" chance="925" />
    <item id="11333" chance="3975" />
    <item id="11325" chance="7050" />
    <item id="11303" chance="750" />
    <item id="1987" chance="100000">
        <inside>
            <item id="2148" countmax="100" chance="34375" />
            <item id="2148" countmax="100" chance="34375" />
            <item id="2148" countmax="22" chance="34375" />
            <item id="11245" chance="900" />
            <item id="2149" chance="650" />
            <item id="7591" chance="1875" />
            <item id="5881" chance="950" />
            <item id="11301" chance="75" />
        </inside>
    </item>
</loot>
</monster>
Lizard Legionnaire:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard Legionnaire" nameDescription="a lizard legionnaire" race="blood" experience="1100" speed="220" manacost="0">
<health now="1400" max="1400"/>
<look type="338" corpse="11273"/>
<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="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="150"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="50"/>
<attack name="physical" interval="2000" chance="25" range="7" min="-0" max="-310">
<attribute key="shootEffect" value="spear"/>
</attack>
</attacks>
	<defenses armor="25" defense="25">
	</defenses>
<elements>
<element firePercent="45"/>
<element icePercent="-15"/>
</elements>
<immunities>
<immunity earth="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Tssss!"/>
</voices>
<loot>
    <item id="11245" chance="950" />
    <item id="11323" chance="925" />
    <item id="11335" chance="9925" />
    <item id="5876" chance="1125" />
    <item id="2148" countmax="100" chance="38550" />
    <item id="2148" countmax="63" chance="38550" />
    <item id="7618" chance="425" />
    <item id="11303" chance="375" />
    <item id="1987" chance="100000">
        <inside>
            <item id="11305" chance="125" />
            <item id="11334" chance="825" />
            <item id="2145" chance="75" />
            <item id="11206" chance="550" />
            <item id="11301" chance="75" />
            <item id="11336" chance="25" />
        </inside>
    </item>
</loot>
</monster>

thank you, it works. rep added
 
I dno If you are good at this too

Imageshack - azerus.png

LUA:
function onStepIn(cid, item, position, fromPosition)

--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
--EndConfig-->
	if item.actionid == 1974 and queststatus == -1 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
		setPlayerStorageValue(cid, 4765, 1)
	return TRUE
end

if item.actionid == 1973 and queststatus == -1 then
-- Here is the code start:
starting={x = 576, y = 560, z = 10, stackpos = 253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x = 586, y = 572, z = 10, stackpos = 253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
 if creature.itemid > 0 then
 if getPlayerAccess(creature.uid) == 0 then
 players=players+1
 end
  if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
 totalmonsters=totalmonsters+1
  monster[totalmonsters]=creature.uid
   end
 end
checking.x=checking.x+1
  if checking.x>ending.x then
  checking.x=starting.x
  checking.y=checking.y+1
 end
until checking.y>ending.y
if players==0 then
trash= {x=33193, y=31689, z=15}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters
end
-- Here is the end of it

doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, {x=579, y=575, z=10}

else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You have already done this quest!')
end
end


been trying to change { this and this } but wth no sucess! :(
 
LUA:
function onStepIn(cid, item, position, fromPosition)

--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
--EndConfig-->
	if item.actionid == 1974 and queststatus == -1 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
		setPlayerStorageValue(cid, 4765, 1)
	return TRUE
end

if item.actionid == 1973 and queststatus == -1 then
-- Here is the code start:
starting={x = 576, y = 560, z = 10, stackpos = 253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x = 586, y = 572, z = 10, stackpos = 253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
 if creature.itemid > 0 then
 if getPlayerAccess(creature.uid) == 0 then
 players=players+1
 end
  if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
 totalmonsters=totalmonsters+1
  monster[totalmonsters]=creature.uid
   end
 end
checking.x=checking.x+1
  if checking.x>ending.x then
  checking.x=starting.x
  checking.y=checking.y+1
 end
until checking.y>ending.y
if players==0 then
trash= {x=33193, y=31689, z=15}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters
end
-- Here is the end of it

doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)

else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You have already done this quest!')
end
end

You only need have to change your:
LUA:
doSendMagicEffect(player_pos_entrada, {x=579, y=575, z=10}
For this:
LUA:
doSendMagicEffect(player_pos_entrada, 10)
 
Last edited:
LUA:
function onStepIn(cid, item, position, fromPosition)

--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
--EndConfig-->
	if item.actionid == 1974 and queststatus == -1 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
		setPlayerStorageValue(cid, 4765, 1)
	return TRUE
end

if item.actionid == 1973 and queststatus == -1 then
-- Here is the code start:
starting={x = 576, y = 560, z = 10, stackpos = 253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x = 586, y = 572, z = 10, stackpos = 253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
 if creature.itemid > 0 then
 if getPlayerAccess(creature.uid) == 0 then
 players=players+1
 end
  if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
 totalmonsters=totalmonsters+1
  monster[totalmonsters]=creature.uid
   end
 end
checking.x=checking.x+1
  if checking.x>ending.x then
  checking.x=starting.x
  checking.y=checking.y+1
 end
until checking.y>ending.y
if players==0 then
trash= {x=33193, y=31689, z=15}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters
end
-- Here is the end of it

doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)

else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You have already done this quest!')
end
end

that doesnt work cause when i have
LUA:
(player_pos_entrada, 10)
i'm getting ImageShack® - Online Photo and Video Hosting thats why i changed it to a pos
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	if getCreatureStorage(cid, 50001) == -1 then
		if item.actionid == 1974 then
			doCreatureSay(cid, 'It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.', TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 4765, 1) 
		elseif item.actionid == 1973 then
			local t, f = {}
			for x = 576, 586 do
				for y = 560, 572 do
					local v = getTopCreature({x=x, y=y, z=10}).uid
					if isPlayer(v) then
						f = true
						break
					elseif isMonster(v) then
						table.insert(t, v)
					end
				end
			end
			if not f then
				for i = 1, #t do
					doRemoveCreature(t[i])
				end
			end
			doTeleportThing(cid, {x=579, y=575, z=10})
			doSendMagicEffect({x=579, y=575, z=10}, CONST_ME_TELEPORT)
		end
	else
		doTeleportThing(cid, fromPosition, false)
		doPlayerSendCancel(cid, 'You have already done this quest!')
	end
end
 
Back
Top