Forkz
Well-Known Member
- Joined
- Jun 29, 2020
- Messages
- 380
- Solutions
- 1
- Reaction score
- 89
Hi otlanders,
I'm using this system below as a vocation aura, but I would like to make a type command! Auraon - !auraoff could someone help me?
data/creaturescripts
I'm using this system below as a vocation aura, but I would like to make a type command! Auraon - !auraoff could someone help me?
data/creaturescripts
Lua:
local config = {
delay = 1000,
colors = {
[9] = 101,
[10] = 66,
[11] = 180,
[12] = 210
},
effects = {"' . ,", ", . '"}
}
function sendUltimateEffect(cid)
if isPlayer(cid) then
local color = config.colors[getPlayerVocation(cid)]
if color then
doSendAnimatedText(getThingPos(cid), config.effects[math.random(#config.effects)], color)
addEvent(sendUltimateEffect, config.delay, cid)
end
end
end
function onLogin(cid)
sendUltimateEffect(cid)
return true
end