I have the following script
I wanted to make the monster that was chosen for all the message, the more I can not, what happens is that appears a kind of monster summoned and appears in the message to every other monster!
Lua:
local config = {
monster = {
"Ashmunrah","Dipthrah","Mahrdis","Morguthis","Omruc","Rahemos","Thalas","Vashresamun"
},
storage = 12211,
time = 20 * 60
}
local p = {{x=241, y=282, z=6},{x=295, y=267, z=7},{x=308, y=246, z=7}}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doSummonCreature(config.monster[math.random(1, #config.monster)],p[1])
doSendMagicEffect(p[2],30)
setGlobalStorageValue(config.storage, os.time())
doBroadcastMessage('The '..config.monster[math.random(1, #config.monster)]..' invade the small island')
end
I wanted to make the monster that was chosen for all the message, the more I can not, what happens is that appears a kind of monster summoned and appears in the message to every other monster!