!guildmember

Vodkart
em Actions e Talkactions
  • 1
  • 2

Vodkart

Sumus Validus
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 21/05/10Posts: 3406Gênero: Masculino

Antes de mais nada você precisará desta duas funções:http://www.xtibia.co...-onlineoffline/

 

Sobre: é um comando que mostra no chat da sua guild os membros que a guild possuem e os membros que estão online.

 

 

"/guildmember" -- retorna o nome de todos da guild

 

"/guildmember on/online" -- retorna o nome de todos da guild que estão online

 

 

em data > talkactions > script

 

guildmembers.lua

function onSay(cid, words, param, channel)
if channel ~= CHANNEL_GUILD or getPlayerGuildId(cid) <= 0 then
return false
end
str = "Membros da Guild "..(param == "" and "" or "Online")..":"
guild = param == "" and getGuildMembers(getPlayerGuildId(cid)) or getGuildMembersOnline(getPlayerGuildId(cid))
for i = 1,#guild do
str = str..""..(param == "" and guild[i] or getPlayerName(guild[i]))..""..(#guild == i and "." or ",")
end
return doPlayerSendChannelMessage(cid, "", str, TALKTYPE_CHANNEL_RN, CHANNEL_GUILD)
end

 

talkactions.xml

<talkaction words="!guildmember;/guildmember" event="script" value="guildmembers.lua"/>

bossisg.png

Faisher

avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 20/11/10Posts: 35Char no Tibia: Peei

Donde foe testado?

xaverlock

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 14/06/13Posts: 10Char no Tibia: Nao corno

amigo, por favor teria como me passar um script para criar guild e add players na guild atraveés do comando !createguild Obrigado

igorsilveeira

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/05/13Posts: 38

Vodkart, não tem como fazer para o comando funcionar sem precisar digitar no guild chat?

Obrigado.

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

eh soh tirar essa parte...

channel ~= CHANNEL_GUILD or 

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

igorsilveeira

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/05/13Posts: 38

Eu tirei aqui não deu certo não, tem como fazer ai pra mim ?

REP+

dyego2008

Ajudar o Próximo é muito Bom,
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 03/06/08Posts: 508

Tente assim ...

 

 

 

if channel ~= CHANNEL

 

Deixe apenas CHANNEL

WyvSCRs.png

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

/\ lol?

 

usa esse aki...

 

 

function onSay(cid, words, param, channel)
   if getPlayerGuildId(cid) <= 0 then
      return false
   end
   local str = "Membros da Guild "..(param == "" and "" or "Online")..":"
   local guild = param == "" and getGuildMembers(getPlayerGuildId(cid)) or getGuildMembersOnline(getPlayerGuildId(cid))
   for i = 1, #guild do
      str = str..""..(param == "" and guild[i] or getPlayerName(guild[i]))..""..(#guild == i and "." or ",")
   end
   if channel ~= CHANNEL_GUILD then
      return doPlayerSendTextMessage(cid, 27, str)
   else
      return doPlayerSendChannelMessage(cid, "", str, TALKTYPE_CHANNEL_RN, CHANNEL_GUILD)
   end
end

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Maenilse

q manero em fera
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 21/09/12Posts: 711Char no Tibia: noé

/\ deu nao, ele nao da nenhuma erro na distro, mas nao mostra nada em channel nenhum.

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

teu char tem guild ms? ;x pq agora n parece ter nenhum problema n... ;x

-preguiça de testar aki-

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Maenilse

q manero em fera
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 21/09/12Posts: 711Char no Tibia: noé

/\ claro que meu char ta em guild u.u.

 

20:18 You see yourself. You are administrador.[Frags: 0] You are Leader of the The Boss

Vodkart

Sumus Validus
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 21/05/10Posts: 3406Gênero: Masculino

 

function onSay(cid, words, param, channel)
if getPlayerGuildId(cid) <= 0 then
doPlayerSendTextMessage(cid, 27, "você não tem guild.") return true
end
str = "Membros da Guild "..(param == "" and "" or "Online")..":"
guild = param == "" and getGuildMembers(getPlayerGuildId(cid)) or getGuildMembersOnline(getPlayerGuildId(cid))
for i = 1,#guild do
str = str..""..(param == "" and guild[i] or getPlayerName(guild[i]))..""..(#guild == i and "." or ",")
end
return doPlayerSendTextMessage(cid, 27, str)
end

bossisg.png

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

cabei de testar aki e foi --'

 

20:40 Membros da Guild :[GOD]Ticho,Ticha.

 

20:40 You see yourself. You are a GOD and a Gardestrike Tamer from Saffron City. You are Leader from the Avengers.
Position: [X: 1045][Y: 1057][Z: 7]

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Maenilse

q manero em fera
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 21/09/12Posts: 711Char no Tibia: noé
function onSay(cid, words, param, channel)
if getPlayerGuildId(cid) <= 0 then
doPlayerSendTextMessage(cid, 27, "você não tem guild.") return true
end
str = "Membros da Guild "..(param == "" and "" or "Online")..":"
guild = param == "" and getGuildMembers(getPlayerGuildId(cid)) or getGuildMembersOnline(getPlayerGuildId(cid))
for i = 1,#guild do
str = str..""..(param == "" and guild[i] or getPlayerName(guild[i]))..""..(#guild == i and "." or ",")
end
return doPlayerSendTextMessage(cid, 27, str)
end

ae preto, funfo ake, amanha te do o rep, ja chego no limite.-.

Skymagnum

Hamburguer
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 02/08/12Posts: 1025Char no Tibia: Maurolkit

Slicer, no que você mandou a mensagem estava mandando no chat da guild -k.

jeoz.png
  • 1
  • 2