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

Magic effect! Read!

Zeroone

Active Member
Joined
Dec 11, 2007
Messages
256
Reaction score
43
Location
Sweden
ok, so i think this is the place to ask.

I'm really really bad at lua and those things, so im asking some pro here to help me!

When you reach level 100, i want the character to have the magic effect 66 every 1minute, is that possible? thank you for your help!
 
Lua:
function onThink(interval)
 for _, cid in ipairs(getPlayersOnline()) do
  if getPlayerLevel(cid) >= 100 then
   doSendMagicEffect(getThingPos(cid),66)
 end
end
return true
end
this put it in the globale event ---> scripts
then in global event .xml pate this line
#if you use 0.3.6
Code:
<globalevent name="t" interval="60" event="script" value="xxxxx.lua"/>
#if you use 0.4 then
Code:
<globalevent name="t" interval="60000" event="script" value="xxxx.lua"/>
change xxxx to script file.lua name
 
Back
Top