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

Rotating effect in X space.

ikaro22

New Member
Joined
Dec 17, 2019
Messages
22
Reaction score
0
Good morning, I would like if possible that someone help me in a script like above, in which Y effect, revolves around X space. I appreciate your understanding.

example in the photo below!
 

Attachments

Solution
I know i saw someone do something like that a while ago. I believe they did it with a global event and custom event settings/functions and made a short timer.
Post automatically merged:

I am not sure the context of what exactly you are looking for. Sooooo I rewrote a script i had used for another task. This one does not rotate though, it just splashes them all at once. It is a start though

This script generates FIREWORK BLUE around 1 square. Like Exori would on a player. As i stated im not sure the context in which you are using the script for, but its a global event.
Globalevent
Code:
<globalevent name="TestScript" interval="3500" script="test.lua"/>

Code:
local effects = {
    {position =...
You are talking about rotating an effect in a radius? Something like
With 0 being the tile you want the effect to rotate around and 1 being the effect? I have seen a script like this before, but I cant remember where. I do remember they set events with a timer.

1 1 1
1 0 1
1 1 1
 
I know i saw someone do something like that a while ago. I believe they did it with a global event and custom event settings/functions and made a short timer.
Post automatically merged:

I am not sure the context of what exactly you are looking for. Sooooo I rewrote a script i had used for another task. This one does not rotate though, it just splashes them all at once. It is a start though

This script generates FIREWORK BLUE around 1 square. Like Exori would on a player. As i stated im not sure the context in which you are using the script for, but its a global event.
Globalevent
Code:
<globalevent name="TestScript" interval="3500" script="test.lua"/>

Code:
local effects = {
    {position = Position(1024, 1071, 5), text = 'Pos 1', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1023, 1071, 5), text = 'Pos 2', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1025, 1071, 5), text = 'Pos 0', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1023, 1072, 5), text = 'Pos 4', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1023, 1073, 5), text = 'Pos 5', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1024, 1073, 5), text = 'Pos 6', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1025, 1073, 5), text = 'Pos 7', effect = CONST_ME_FIREWORK_BLUE},
    {position = Position(1025, 1072, 5), text = 'Pos 8', effect = CONST_ME_FIREWORK_BLUE},
}

function onThink(interval)
    for i = 1, #effects do
        local settings = effects[i]
        local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5)
        if #spectators > 0 then
            if settings.text then
                for i = 1, #spectators do
                    spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position)
                end
            end
            if settings.effect then
                settings.position:sendMagicEffect(settings.effect)
            end
        end
    end
   return true
end
 
Last edited:
Solution
Back
Top