Ir para conteúdo
Entre para seguir isso  
Pokemoon

talkactions

Recommended Posts

Pokemoon    0
Pokemoon

Ola, eu não sei se aqui é o lugar exato para perdir ajuda mais ai vai ,,

Vou direto ao assunto , tipo preciso que alguem crie talkaction de duelo , eu tenho o go/back e exp configurados ja , so nao consigo fazer o talkaction ..alguem me ajuda por favor?se alguem precisar de uma base ai vai (nao fui eu que fiz esse script peguei de um forum)

[spoiler=FIgth]

function onSay(cid, words, param) 

config = { 
level1= 10, -- level necessario do player 1 pra usar o fight system. 
level2= 10, -- level necessario do player 2 pra usar o fight system. 
pid=getPlayerGUID(cid), -- não mecha 
premium = "no", -- se precisa ser premium account ("yes" or "no") 
redskull="no", -- players com red skull podem usar o fight system? ("yes" or "no"). 
prot="no", -- players precisam estar em protection zone pra usar o fight system? ("yes" or "no"). 
bat="no", --players precisam estar sem fight pra huntar? ("yes" or "no"). 
Posplayer1 = {x=288, y=433, z=6}, -- para onde o jogador que deu fight sera levado 
Posplayer2 = {x=295, y=433, z=6}, -- para onde o jogador que aceitou fight sera levado 
RemoveItem = "yes", -- se ira remover o item ("yes" or "no") 
item = 2160, -- id do item 
storage = 9696 
} 


if words == '!fight' or param == "/fight" then 


local player = getPlayerByName(param) 
local pid = getPlayerByNameWildcard(param) 
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then 
doPlayerPopupFYI(cid, "Este Jogador Não está Online Ou Não existe.") 
return TRUE 
end 


if(config.redskull == "no") and (getCreatureSkullType(cid) == 4) then 
doPlayerPopupFYI(cid,"apenas player sem red skull podem Usar Fight System.") 

elseif (getPlayerLevel(cid) < config.level1) then 
doPlayerPopupFYI(cid,"você precisa ter level " .. config.level1 .. " pra usar o fight system.") 

elseif (getPlayerLevel(player) < config.level2 ) then 
doPlayerPopupFYI(cid,"o jogador não tem level " .. config.level2 .. " para vc dar fight system.") 

elseif(config.prot == "no") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then 
doPlayerPopupFYI(cid,"você precisa estar em protection zone pra usar o fight system.") 

elseif(config.bat == "no") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then 
doPlayerPopupFYI(cid,"você precisa estar sem battler pra usar o fight system.") 

elseif(config.redskull == "no") and (getCreatureSkullType(player) == 4) then 
doPlayerPopupFYI(cid,"o outro player precisa estar sem red skull usar o fight system.") 

elseif(config.prot == "no") and (getTilePzInfo(getCreaturePosition(player)) == FALSE) then 
doPlayerPopupFYI(cid,"o outro player precisa estar em protection zone pra usar o fight system.") 

elseif(config.bat == "no") and (getCreatureCondition(player, CONDITION_INFIGHT) == TRUE) then 
doPlayerPopupFYI(cid,"o outro player precisa estar sem battler pra usar o fight system.") 

elseif(config.premium == "no") and (not isPremium(cid)) then 
doPlayerPopupFYI(cid, "apenas players com premium account podem dar fight.") 

elseif(config.RemoveItem == "no") and (doPlayerRemoveItem(cid, config.item, 1) == FALSE) then 
doPlayerPopupFYI(cid, "Desculpe,voce não tem 1 " .. getItemNameById(config.item) .. " para dar fight.") 
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) 

elseif isPlayer(player) then 
doPlayerPopupFYI(cid,"Voce acaba de Desafiar o Player chamado " .. getPlayerName(player) .." espere ele aceitar.") 
doPlayerPopupFYI(player,getCreatureName(cid) .. ' Acaba De Dar Fight em Você,o pvp entre os dois não resultará em skulls deseja aceitar? diga !aceitar se não diga !recusar.') 
setPlayerStorageValue(player, config.storage, 1) 
doTeleportThing(cid,config.Posplayer1) 
doCreatureSetSkullType(cid, 2) 
end 
return TRUE 
end 


if words == '!aceitar' or param == "!accept" then 
if getPlayerStorageValue(cid,config.storage) >= 1 then 
doPlayerPopupFYI(cid, "o jogador aceito,começara o DESAFIO!.") 
setPlayerStorageValue(cid, config.storage, -1) 
doCreatureSetSkullType(cid, 2) 

doTeleportThing(cid,config.Posplayer2) 
doTeleportThing(cid,config.Posplayer1) 
else 
doPlayerPopupFYI(cid, "Desculpe,voce não foi envitado para a Luta.") 
end 
return TRUE 
end 

if words == '!recusar' or param == "!recuse" then 
if getPlayerStorageValue(cid,config.storage) >= 1 then 
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "você recusou o a Luta.") 
setPlayerStorageValue(cid, config.storage, -1) 
end 
return TRUE 
end 

return TRUE 
end

 

 

se alguem conseguir me manda por Pm , ou posta AQUI msm

Editado por iuniX

Compartilhar este post


Link para o post
Compartilhar em outros sites
iuniX    4
iuniX

Quando for postar algum script, coloque ele em

 fica mais fácil de visualizar.

Compartilhar este post


Link para o post
Compartilhar em outros sites
Pokemoon    0
Pokemoon

Tá bom , tem como você me ajudar?

Compartilhar este post


Link para o post
Compartilhar em outros sites
iuniX    4
iuniX

Não gosto de pokemon :X

Compartilhar este post


Link para o post
Compartilhar em outros sites
Pokemoon    0
Pokemoon

pow ajuda ae asiodioasdio custa nada , sei que tu é incarnado em script..

Compartilhar este post


Link para o post
Compartilhar em outros sites
vyctor17    35
vyctor17

bom cara como vc falo em outro topico vc "sabe fazer programação" nas "sorceres" e como n sabe fazer um simples script

Compartilhar este post


Link para o post
Compartilhar em outros sites
Pokemoon    0
Pokemoon

sei fazer programação , mais nao consigo fazer esse script !pq algum problema?cara tenho duvidas nas coisas que tem dentro do script dele , ja fiz o go/back e o exp e tudo certin so nao to conseguindo fazer isso..ja fiz ate uma parada nas sorceres que puxa o script do talkitions ..se nao for ajuda nem posta vlws?

Compartilhar este post


Link para o post
Compartilhar em outros sites
iuniX    4
iuniX
sei fazer programação , mais nao consigo fazer esse script !pq algum problema?cara tenho duvidas nas coisas que tem dentro do script dele , ja fiz o go/back e o exp e tudo certin so nao to conseguindo fazer isso..ja fiz ate uma parada nas sorceres que puxa o script do talkitions ..se nao for ajuda nem posta vlws?

 

Bom, se você conseguiu fazer o GO/BACK e o exp, isso dai é fichinha.

E outra, se forem começar de briguinha no tópico, vou fecha-lo. Aviso dado

 

Att. iuniX~

Compartilhar este post


Link para o post
Compartilhar em outros sites
Pokemoon    0
Pokemoon

Tá cara eu ja tentei nao consigo.. nao sei pq , me ajuda ae . se precisa eu posto os go/back

Compartilhar este post


Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×