OtStrikers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Global Event] VIP Effect (When person is ghost it doesn't shows)

Go down

[Global Event] VIP Effect (When person is ghost it doesn't shows) Empty [Global Event] VIP Effect (When person is ghost it doesn't shows)

Post by Sacred Anlyest Thu Dec 22, 2011 5:22 pm

Hello Otstrikers,
Alot of ppls requested VIP Effect and if person is ghost it don't shows!

goto data/globalevents/scripts and create vipEffect.lua


Code:
function onThink(interval, lastExecution)
        for _, name in ipairs(getOnlinePlayers()) do
        local cid = getPlayerByName(name)
              if not isPlayerGhost(cid) and getPlayerVipDays(cid) >= 1 then
                  doSendMagicEffect(getPlayerPosition(cid), 27)
                  doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
              end
        end
        return true
end

and goto data/globalevents and open globalevents.xml and put this line
Code:
<globalevent name="vipEffect" interval="3" script="vipEffect.lua"/>

Credits goes to PhoOwned\OTLand
Sacred Anlyest
Sacred Anlyest
Global Moderator

Profession :
  • Mapper
  • Scripter

Posts : 20
Reputation : 1
Join date : 2011-12-20
Age : 26
Location : Egypt

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum