function onThink(interval, lastExecution)
if(math.rand(0, 100) == 5) then
executeRaid("raid_name")
end
end
You should also think about addin these functions:Its already there.
Create a raid in raid system as you just wish (with monsters, bosses, announcements, etc; script may be included, as far as I remember), then add enabled="no" in raids.xml for it.
Now, in globalevents, an example script:
for example. You can also store in global_storage last time when raid was executed, such as check it with randomity.Code:function onThink(interval, lastExecution) if(math.rand(0, 100) == 5) then executeRaid("raid_name") end end
getPlayerExperience(cid)
Code:getPlayerExperience(cid)
Already in... O.O
[23/10/2008 16:04:02] data/talkactions/scripts/test1.lua:8: attempt to call global 'getPlayerExperience' (a nil value)
[23/10/2008 16:04:02] stack traceback:
[23/10/2008 16:04:02] data/talkactions/scripts/test1.lua:8: in function <data/talkactions/scripts/test1.lua:1>
Im using TFS 0.2 xDit's really added..at least in alpha 3 ;] Maybe you forgot (cid)?
local lol = getPlayerLevel(cid)
local lolsqr = (lol*lol)
local lolcub = (lolsqr*lol)
local lol2 = (850/3)
local bignumber = 16.666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
local eform = (bignumber * lolcub) - (100 * lolsqr) + (lol2 * lol) - 200