Ir para conteúdo
  • 0

[Resolvido] Efeito Staff (PARA TFS 0.4)


ITALOx

Pergunta

Salve Scripts, Alguém poderia mandar uma script de Efeito pra staff?

 

Tipo: o nome em cima do personagem escrito [STAFF] OU [GOD].

 

Se alguém tiver, darei REP+. TMJ!

 

zeno-sama.jpg

Editado por Italox
Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0
  • Diretor
1 minuto atrás, diarmaint disse:

Ultima coisinha , tem como fazer algo do tipo 


[6] = {message = '[GOD]', time = 2}, --[Group ID] {MENSAGEM, tempo em segundos}
[5] = {message = '[CM]', time = 2},
[4] = {message = '[GM]', time = 2},
[3] = {message = '[Senior Tutor]', time = 2},
[2] = {message = '[Tutor]', time = 2}

Pra cada group um nome?

Sim, só editar como quiser.

Link para o comentário
Compartilhar em outros sites

  • 0
3 minutos atrás, Yan Liima disse:

@diarmaint Creaturescript.

 


local configEffect = {
[6] = {message = '[GOD]', color = 25, time = 2}, --[Group ID] {MENSAGEM, tempo em segundos}
[5] = {message = '[CM]', color = 25, time = 2},
[4] = {message = '[GM]', color = 25, color = 25,time = 2},
[3] = {message = '[Senior Tutor]', color = 25, time = 2},
[2] = {message = '[Tutor]', color = 25, time = 2}
}

function onLogin(cid)
registerCreatureEvent(cid, "animatedTextStaff")
if configEffect[getPlayerGroupId(cid)] then
effectGroup(cid)
end
return true
end
function effectGroup(cid)
	if isPlayer(cid) then
		local config = configEffect[getPlayerGroupId(cid)]
		doSendAnimatedText(getThingPos(cid), config.message, config.color)
		addEvent(effectGroup, config.time*1000,cid)
	end
end

<event type="login" name="animatedTextStaff" event="script" value="animatedTextStaff.lua"/>

 

Obrigado!

5 minutos atrás, Thalles Vitor disse:

Não esquece do REP+ :) , isso eu não sei.

Obg!

Link para o comentário
Compartilhar em outros sites

  • 0
43 minutos atrás, Yan Liima disse:

@diarmaint Creaturescript.

 


local configEffect = {
[6] = {message = '[GOD]', color = 25, time = 2}, --[Group ID] {MENSAGEM, tempo em segundos}
[5] = {message = '[CM]', color = 25, time = 2},
[4] = {message = '[GM]', color = 25, color = 25,time = 2},
[3] = {message = '[Senior Tutor]', color = 25, time = 2},
[2] = {message = '[Tutor]', color = 25, time = 2}
}

function onLogin(cid)
registerCreatureEvent(cid, "animatedTextStaff")
if configEffect[getPlayerGroupId(cid)] then
effectGroup(cid)
end
return true
end
function effectGroup(cid)
	if isPlayer(cid) then
		local config = configEffect[getPlayerGroupId(cid)]
		doSendAnimatedText(getThingPos(cid), config.message, config.color)
		addEvent(effectGroup, config.time*1000,cid)
	end
end

<event type="login" name="animatedTextStaff" event="script" value="animatedTextStaff.lua"/>

 

Pft

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...