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

GlobalEvent Top guild gets an effect

ghettobird

LUA newbie
Joined
Aug 17, 2013
Messages
679
Reaction score
132
Location
OTland
Hello otlanders, it's me again i came here to release my script, IT WAS NOT TESTED AND HONESTLY I DOUBT IT WILL WORK! so if someone tested it and there is a bug please post it here, anyways here is the script
Code:
local highscorefrags = getHighscoreString(Frags)

function onThink(interval, lastExecution)
    if getPlayerGuildFrags(cid) == highscorefrags then
              doSendMagicEffect(getPlayerPosition(cid), 27)
                  doSendAnimatedText(getPlayerPosition(cid), "TOP FRAGS", TEXTCOLOR_RED)
              end
        end
        return true
end

Have fun ;)
 
I don't know how this highscorestring function works but I assume Frags should be a string?
Lua:
local highscorefrags = getHighscoreString('Frags')
function onThink(interval, lastExecution)
    if getPlayerGuildFrags(cid) == highscorefrags then
        doSendMagicEffect(getPlayerPosition(cid), 27)
        doSendAnimatedText(getPlayerPosition(cid), "TOP FRAGS", TEXTCOLOR_RED)
    end
    return true
end
 
Last edited:
getPlayerGuildFrags(cid) this function doesn't work with TFS, it must to be added by yourself but the thread creator should post it.
 
Back
Top