markitu
New Member
Hello friends, i need some help to finish this Zao Arena script.
The problem is : Only 2 monsters (Baron Brute & The Axeorcist) spawn, if anyone can help me to when the 2 monsters get killed, spawn the others two from Arena.
Theses are the monster from Arena
If anyone help me, i give rep+++
Cheers, markitu!
The problem is : Only 2 monsters (Baron Brute & The Axeorcist) spawn, if anyone can help me to when the 2 monsters get killed, spawn the others two from Arena.
Theses are the monster from Arena
And this is the scriptBaron Brute & The Axeorcist
Menace & Fatality
Incineron & Coldheart
Dreadwing & Doomhowl
Haunter & The Dreadorian
Rocko & Tremorak (after short time spawn Tirecz)
Code:
function onUse(cid, item, frompos, item2, topos)
local portal_quest01_pos = {x = 33079, y = 31014, z = 2, stackpos = 2}
if item.uid == 32145 then
if item.itemid == 1946 then
player1pos = {x=33080, y=31014, z=2, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=33081, y=31014, z=2, stackpos=253}
player2 = getThingfromPos(player2pos)
if player1.itemid > 0 and player2.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
questlevel = 120
if player1level >= questlevel then
queststatus1 = getPlayerStorageValue(player1.uid,6300)
queststatus2 = getPlayerStorageValue(player2.uid,6300)
if queststatus1 == -1 and queststatus2 == -1 then
if 1==1 then
demon1pos = {x=33064, y=31034, z=3}
demon2pos = {x=33065, y=31034, z=3}
doSummonCreature("Baron Brute", demon1pos)
doSummonCreature("The Axeorcist", demon2pos)
nplayer1pos = {x=33062, y=31027, z=3}
nplayer2pos = {x=33063, y=31027, z=3}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doCreateItem(9772,1,portal_quest01_pos)
doCreateItem(9772,1,portal_quest01_pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doTransformItem(item.uid,1945)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
if item.uid == 32145 then
if item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
end
return 1
end
end
end
Cheers, markitu!