Ir para conteúdo

Posts Recomendados

Cara, não existe mais esse npc,

agora para criar guild voce fala: !createguild nome.

para invitar voce abre o guild channel e fala:

!invite nome.

para tirar da alguem da guild voce fala no guild channel:

!kick nome.

para voce sair da guild voce abre o guild channel e fala:

!leave.

para voce promover alguem a vice-leader da guild voce fala no guild channel:

!promote nome.

se alguem te invitar na guild, por exemplo vamos dizer que o nome da guild é:Seek And Destroy, voce vai falar:

!joinguild Seek And Destroy.

Espero Ter Ajudado.

Cara, não existe mais esse npc,

agora para criar guild voce fala: !createguild nome.

para invitar voce abre o guild channel e fala:

!invite nome.

para tirar da alguem da guild voce fala no guild channel:

!kick nome.

para voce sair da guild voce abre o guild channel e fala:

!leave.

para voce promover alguem a vice-leader da guild voce fala no guild channel:

!promote nome.

se alguem te invitar na guild, por exemplo vamos dizer que o nome da guild é:Seek And Destroy, voce vai falar:

!joinguild Seek And Destroy.

Espero Ter Ajudado.

 

 

Ajudo simm vei..vlw

Cara eu tenho um NPC que explica como se faz uma guild:

 

Cria um arquivo chamado guildmaster.xml e adiciona isso:

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Guild Master" script="data/npc/scripts/guild.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="57" head="20" body="30" legs="50" feet="0" addons="3"/>
</npc>

 

Depois na pasta scripts... cria um arquivo chamado guild.lua e adiciona isso:

 

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
  if focus == cid then
	  selfSay('Good bye then.')
	  focus = 0
	  talk_start = 0
  end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
  return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
  msg = string.lower(msg)

  if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
	  selfSay('Hello ' .. getCreatureName(cid) .. '! If you want make a guild, talk info.')
	  focus = cid
	  talk_start = os.clock()

  elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
	  selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

  elseif focus == cid then
	talk_start = os.clock()

	if msgcontains(msg, 'info') then
selfSay('You can create a guild talking "!createguild ...and the name...". When you create go for the Guild-Chat, and talk "!commands" that will go talk the commands for guild.')


	elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
		selfSay('Bye ' .. creatureGetName(cid) .. ', Come back.')
		focus = 0
		talk_start = 0

	elseif msg ~= "" then
		selfSay('What?')
		talk_state = 0
	end
end
end

function onCreatureChangeOutfit(creature)
end

 

Espero ter ajudado =)

 

Delton :positive:

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...