GOD Esteve
New Member
- Joined
- May 18, 2011
- Messages
- 87
- Reaction score
- 1
Hello guys,
I try to make one globalevents to make a raid system hour by hour
Script work, the only problem that allways that come the time of globalevent summon and send all message of the list.
Here is the script
Can somebody help me, monter should be only one and random like the position.
Thank You
I try to make one globalevents to make a raid system hour by hour
Script work, the only problem that allways that come the time of globalevent summon and send all message of the list.
Here is the script
Code:
local respawpositions = {
{x = 370, y = 105, z = 7},
{x = 384, y = 94, z = 7},
{x = 402, y = 90, z = 7},
{x = 411, y = 95, z = 7},
{x = 435, y = 112, z = 7},
{x = 421, y = 124, z = 7},
{x = 403, y = 121, z = 7},
{x = 383, y = 121, z = 7},
{x = 386, y = 108, z = 7},
{x = 398, y = 100, z = 7},
{x = 406, y = 106, z = 7},
{x = 398, y = 111, z = 7},
{x = 394, y = 125, z = 7}
}
local monsters = {
[1] = {text = {"INVASION: Brutus"}, monster = {'Brutus Bloodbeard'}},
[2] = {text = {"INVASION: Deadeye"}, monster = {'Deadeye Devious'}},
[3] = {text = {"INVASION: Demodras"}, monster = {'Demodras'}},
[4] = {text = {"INVASION: Ushuriel"}, monster = {'Ushuriel'}},
[5] = {text = {"INVASION: Ferumbras"}, monster = {'Ferumbras'}},
[6] = {text = {"INVASION: Rotworm Queen"}, monster = {'Rotworm Queen'}},
[7] = {text = {"INVASION: Tiquandas Revenge"}, monster = {'Tiquandas Revenge'}},
[8] = {text = {"INVASION: The Horned Fox"}, monster = {'The Horned Fox'}},
[9] = {text = {"INVASION: Ron The Ripper"}, monster = {'Ron The Ripper'}},
[10] = {text = {"INVASION: Necropharus"}, monster = {'Necropharus'}},
[11] = {text = {"INVASION: The Old Widow"}, monster = {'The Old Widow'}},
[12] = {text = {"INVASION: Lethal Lissy"}, monster = {'Lethal Lissy'}}
}
function onThink(cid, interval, lastExecution)
for _, area in pairs(monsters) do
Game.broadcastMessage(area.text[1], MESSAGE_STATUS_WARNING)
Game.createMonster(area.monster[1], respawpositions[math.random(#respawpositions)])
end
return TRUE
end
Can somebody help me, monter should be only one and random like the position.
Thank You