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

Raid Best Raid System :D

HamTheKratos

Member
Joined
Jan 14, 2009
Messages
243
Reaction score
8
Location
I Dunno
Here We Go :p

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:
I have a question about raids.

I want to make raid but not with intervals. I want to run a raid some day of the week at some hour specify. Is it posible?
 
Sure!
but idk how :D! haha
It's easy...
Code:
<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
So... login as god and say /raid "raid name" :)
 
Back
Top