JO

[Pedido] Comando Para Guild Membros

Por johann07, 13 de abr. de 2011 em Archived

tibia
script
otserv
7
1.9k
johann07J
13 de abril de 2011 às 20:14

Tipo do script: Talkactions, e n sei o outro ;x

Protocolo (versão do Tibia):8.60

Servidor utilizado:Joga Facil edited

Nível de experiência:999999

Adicionais/Informações: Um comando que o Leader da guild fale alguma coisa pros membros n poderem se atakar, e quando ele fala de novo os membros poderem se atakar!

Brigadao

agradeço desde ja!

TecnomancerT
13 de abril de 2011 às 20:59

cara é capaz que seu ot já tenha ele tem que falar !guildwar on ou !guildwar off

tenta se nãoo der posta que te arrumo um!

 

toma aqui o comando va para data/talkactions/scripts e crie um arquivo.lua com o nome de attackguild ponha isso dentro:

--script by Technomancer

function onSay(cid, words, param)

 

local storageId = 101

 

if isPlayerPzLocked(cid) then

doPlayerSendCancel(cid, "You cannot use this command during battle.")

return true

end

 

if getPlayerGuildId(cid) <= 0 then

doPlayerSendCancel(cid, "You are not a guild member.")

return true

end

 

if param == '' then

local status = {

[1] = {"OFF"},

[-1] = {"ON"}

}

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently Status: "..status[getPlayerStorageValue(cid, storageId)][1].."")

return true

end

 

if param == 'on' and getPlayerStorageValue(cid, storageId) == 1 then

doPlayerSetStorageValue(cid, storageId, -1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Now you can attack guild members.")

return true

end

 

if param == 'off' and getPlayerStorageValue(cid, storageId) == -1 then

doPlayerSetStorageValue(cid, storageId, 1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Now you can't attack guild members.")

return true

end

 

return true

end

 

abra talkaction.xml e adicione em Custom System:

<talkaction words="!guildwar" event="script" value="attackguild.lua"/>
dustotD
13 de abril de 2011 às 21:25

Cara isso ae costuma dar bug de cloner! Só um aviso.

Vlw

johann07J
13 de abril de 2011 às 21:35

mas como que eles fazem?

TecnomancerT
13 de abril de 2011 às 21:41

como assim como que eles fazem? o.O

tinfer3T
13 de abril de 2011 às 21:53

--script by Technomancer

 

esse script nem é seu,é do Notorious,então faça o favor.

Editado Abril 13 por LordJoker

johann07J
14 de abril de 2011 às 15:47

brigadao ! mas ja tinha no meu ot so n tava ativado no talkactions.xml

mas msm assim brigado!