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

[0.3.6pl1] Help with Zao Arena script

markitu

New Member
Joined
Jun 30, 2009
Messages
74
Reaction score
0
Location
Barra da Tijuca
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

Baron Brute & The Axeorcist
Menace & Fatality
Incineron & Coldheart
Dreadwing & Doomhowl
Haunter & The Dreadorian
Rocko & Tremorak (after short time spawn Tirecz)
And this is the script
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
If anyone help me, i give rep+++

Cheers, markitu!
 
first: its timed, even if you didnt killed any boss the las one will spawn after some time.
second: use addEvent(for timed version)or for your look at brothers test in inquisition
 
Back
Top