• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

I need effect from tile!! [Globalevent]

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
i need a script that makes a single effect on a tile like a flame, energy hit, terra hit plzz i need it D:
 
globalevents.xml:
XML:
<globalevent name="tile_effect" interval="1" event="script" value="tile_effect.lua"/>

tile_effect.lua:
LUA:
function onThink(cid, interval)
	return doSendMagicEffect({x = 1000, y = 1000, z = 7}, CONST_ME_ENERGYAREA)
end
 
@wafuboe: this is your script, that do you want.

globalevents.xml:
XML:
<globalevent name="tile_effect" interval="1" event="script" value="tile_effect.lua"/>

tile_effect.lua:
LUA:
function onThink(cid, interval)
	return doSendMagicEffect({x = 1000, y = 1000, z = 7}, CONST_ME_ENERGYAREA)
end
 
@wafuboe
here my friend :D::

Code:
<globalevent name="Effecttile" interval="0.5" event="script" value="effecttile.lua"/>

Code:
local config = {
positions = {
["TEXT"] =    { x = 997, y = 993, z = 7 }, -- max 10 letters!
["TEXT1"] =    { x = 1006, y = 992, z = 7 },

},

effects = {
CONDITION_PARAM_DELAYED



}
}

function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(1, 255))
-- YOU CAN USE ONLY 1 EFFECT BY USING THIS LINE :: doSendAnimatedText(pos, 31)
end

return TRUE
end
 
Back
Top