I want an effect on the player can you help me create a script like this to work with this system \/
There is another thing. If someone can help me, this system gives all the VIPs. If it's on one person's account, use VIP. I want to use it for one character, not for the whole account. Thank you in advance
VIP System [The Forgotten Server 1.0]
Credits & Stuff Credits go to @Printer for creating the original system (http://otland.net/threads/vip-system-tfs-1-1.224758/) upon which this system is based and which motivated me to work on it. Thanks for that. This version uses a global variable to look up the current vip days of a player...
otland.net
Lua:
<globalevent name="vipEffect" interval="5000" script="vipEffect.lua"/>
Code:
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerVipDays(cid) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 27)
doPlayerSetRate(cid, SKILL__LEVEL, 1)
doSendAnimatedText(getPlayerPosition(cid), "{VIP}", TEXTCOLOR_RED)
end
end
return true
end