HamTheKratos
Member
Here We Go
FAQ
What is special in this raid?
the boss summoned is not in a fixed point.
So what is the range the monster will be summoned in?
You can edit the range from x-y-z to x-y-z which the monster will be summoned in.
So it will choose random place to summon monster in within the range?
Yes
raids.xml
boss.lua
FAQ
What is special in this raid?
the boss summoned is not in a fixed point.
So what is the range the monster will be summoned in?
You can edit the range from x-y-z to x-y-z which the monster will be summoned in.
So it will choose random place to summon monster in within the range?
Yes
raids.xml
Lua:
<raid name="Boss" file="Boss.lua" interval2="3600" margin="0" enabled="yes"/>
boss.lua
Lua:
--topleft=the top left cordinate of the invasion area
--bottonright= the botton right cordinate of the invasion area
--maxmonsters= the maximum number of monsters that will appear.
--spawnrate= the chance of a monster appearing in a square of the invasion area
--species= the odds that determine what kind of monster will be summoned
if getPlayerAccess(cid) ~=0 then
topleft={x=449, y=378, z=7}
bottonright={x=484, y=400, z=7}
maxmonsters= 2
checking={x=topleft.x, y=topleft.y, z=topleft.z} --Do Not Change
summonedtotal=0 --Do Not Change
repeat
checkforsummon=0 --Do Not Change
spawnrate=math.random(0,10)
if spawnrate==0 and summonedtotal ~= maxmonsters then
species=math.random(1,5)
if species<5 and species >=0 then
checkforsummon=doSummonCreature("Phoenix",checking)
elseif species == 5 then
checkforsummon=doSummonCreature("Kratos",checking)
end
if checkforsummon~= 0 then
summonedtotal=summonedtotal+1
end
end
checking.x=checking.x+1
if checking.x>bottonright.x then
checking.x=topleft.x
checking.y=checking.y+1
end
until checking.y>bottonright.y
doPlayerSay(cid,"/B Boss Have Been Summoned. Find Him!!",1)
print("Number of Creatures Summoned:",summonedtotal)
end
return 1
end
Last edited: