Ir para conteúdo

Featured Replies

Postado

Galera queria um script da seguinte maneira...ele é movements e creaturescript eu axo..

è assim o player entra no tp dai ele fica com uma outfit e nao pode muda-la em quanto nao morrer na arena ou relogar, e nesse mesmo tp q ele entrar ele nao podera atacar player do time dele(que entro no mesmo tp), seja magia ou combate mesmo, dai quando o player morrese na war ele voltaria ao normal.SE NAO ENTENDERAM POSTEM AI QUE EU TENTO EXPLICAR MELHOR.

SE AJUDEI REP+ ;D, NÃO CUSTA NADA.

uRti.png

<a href="http://central.evenhost.net/aff.php?aff=020"><img src="http://i.imm.io/uRti.png" width="500" height="82" border="0"></a>

Postado

Entendi muito nao velho voce quer um script tipo Wow e castle ne ? so que com cada player com sua cor indenpendete das guilds er cara?

Msn : [email protected]

Skype: joaobona1

Se voce Gosto Da ReP + Pra ajuda :D

Postado
  • Autor

+- isso, tipo eu quero fazer um war manualmente, e seria assim o player passa pelo tp dai muda o outfit dele, e tambem esse script proibe o player de atk membro que passou pelo mesmo tp, dai eu vou por 4 tps desse soq cada um de uma cor(cada um é 1 time).Entendeu?

SE AJUDEI REP+ ;D, NÃO CUSTA NADA.

uRti.png

<a href="http://central.evenhost.net/aff.php?aff=020"><img src="http://i.imm.io/uRti.png" width="500" height="82" border="0"></a>

Postado

Como voce tinha me pedido, fis de 4 team.

Primeiro voce copia 3 arquivos la do creaturescript, renomeie o primeiro de attack
e coloque :

function onAttack(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerStorageValue(cid, 123321) == 1 and getPlayerStorageValue(target, 123321) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123322) == 1 and getPlayerStorageValue(target, 123322) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123323) == 1 and getPlayerStorageValue(target, 123323) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123324) == 1 and getPlayerStorageValue(target, 123324) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
end
return true
end



Depois renomeie o segundo de atkmagia e coloque :

function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerStorageValue(cid, 123325) == 1 and getPlayerStorageValue(target, 123325) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123326) == 1 and getPlayerStorageValue(target, 123326) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123327) == 1 and getPlayerStorageValue(target, 123327) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
if getPlayerStorageValue(cid, 123328) == 1 and getPlayerStorageValue(target, 123328) == 1 then
doPlayerSendCancel(cid, "Você nao pode atacar um player, do seu team.")
return false
end
end
return true
end



E o ultimo no creaturescript, voce renomeie o nome de removesto
e coloque :

function onPrepareDeath(cid, deathList)
if(not isPlayer(cid)) then
return true
end
if getPlayerStorageValue(cid, 123321) == 1 then
setPlayerStorageValue(cid, 123321, -1)
end
if getPlayerStorageValue(cid, 123322) == 1 then
setPlayerStorageValue(cid, 123322, -1)
end
if getPlayerStorageValue(cid, 123323) == 1 then
setPlayerStorageValue(cid, 123323, -1)
end
if getPlayerStorageValue(cid, 123324) == 1 then
setPlayerStorageValue(cid, 123324, -1)
end
if getPlayerStorageValue(cid, 123325) == 1 then
setPlayerStorageValue(cid, 123325, -1)
end
if getPlayerStorageValue(cid, 123326) == 1 then
setPlayerStorageValue(cid, 123326, -1)
end
if getPlayerStorageValue(cid, 123327) == 1 then
setPlayerStorageValue(cid, 123327, -1)
end
if getPlayerStorageValue(cid, 123328) == 1 then
setPlayerStorageValue(cid, 123328, -1)
end
return true
end



Agora vamos para area de moveevents,

Copie qualquer arquivo la, e renomeie-o de outfit
e coloque :

function onStepIn(cid, item, frompos, item2, topos)
local outfit = getCreatureOutfit(cid)
local roupa = {lookType = outfit.lookType, lookHead = 81, lookBody = 114, lookLegs = 114, lookFeet = 81, lookAddons = outfit.lookAddons}

if item.actionid == 31823 and isPlayer(cid) then
setPlayerStorageValue(cid, 123321, 1)

setPlayerStorageValue(cid, 123325, 1)
doSetCreatureOutfit(cid, roupa)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Evento War: Boa sorte!")
end
return true
end



Copeie outros arquivos la, e muda as storage ali, 123321 dps 123322, e a de baixo tbm 123325 dps 123326,
e assim vai indo.

Pronto, agora as tags

Creaturescript.
<event type="attack" name="Attack" event="script" value="attack.lua"/>
<event type="combat" name="magia" event="script" value="atkmagia.lua"/>
<event type="preparedeath" name="sto" event="script" value="removesto.lua"/>


Moveevents.
<movevent type="StepIn" uniqueid="31823" event="script" value="outfit.lua" />



:P

Editado por 12Bryan12 (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo