GA

Como Add Mounts Para Seu Ot

Por gareme, 07 de ago. de 2011 em Archived

script
2
948
garemeG
07 de agosto de 2011 às 10:41

Olá pessoal da WC.

explicando...

 

Alguns servidores 8.70~9.1 ja tem os scripts, mas caso não tiver aqui estarei explicando como fazer tudinho.

 

Primeiro, Mount Uteis para 9.10.

pastadoot/DATA/XML copie um arquivo e renomeie para mounts

<?xml version="1.0" encoding="UTF-8"?>

<mounts>

<mount id="1" clientid="368" name="Widow Queen" speed="20" />

<mount id="2" clientid="369" name="Racing Bird" speed="20" />

<mount id="3" clientid="370" name="War Bear" speed="20" />

<mount id="4" clientid="371" name="Black Sheep" speed="20" />

<mount id="5" clientid="372" name="Midnight Panther" speed="20" />

<mount id="6" clientid="373" name="Draptor" speed="20" />

<mount id="7" clientid="374" name="Titanica" speed="20" />

<mount id="8" clientid="375" name="Tin Lizzard" speed="20" />

<mount id="9" clientid="376" name="Blazebringer" speed="20" />

<mount id="10" clientid="377" name="Rapid Boar" speed="20" />

<mount id="11" clientid="378" name="Stampor" speed="20" />

<mount id="12" clientid="379" name="Undead Cavebear" speed="20" />

<mount id="13" clientid="387" name="Mule" speed="20" />

<mount id="14" clientid="388" name="Tiger Slug" speed="20" />

<mount id="15" clientid="389" name="Uniwheel" speed="20" />

<mount id="16" clientid="390" name="Crystal Wolf" speed="20" />

<mount id="17" clientid="392" name="Brown War Horse" speed="20" />

<mount id="18" clientid="401" name="Kingly Deer" speed="20" />

<mount id="19" clientid="402" name="Tamed Panda" speed="20" />

<mount id="20" clientid="405" name="Dromedary" speed="20" />

<mount id="21" clientid="406" name="Sandstone Scorpion" speed="20" />

<mount id="22" clientid="421" name="Rented Horse" speed="20" />

<mount id="23" clientid="426" name="Fire War Horse" speed="20" />

</mounts>

Antenção! esses mounts são para versão 9.10.

se quiser os da versão 8.70 ai vai:

<?xml version="1.0" encoding="UTF-8"?>

 

<mounts>

<mount id="1" clientId="368" name="Widow Queen" speed="20" premium="yes" />

<mount id="2" clientId="369" name="Racing Bird" speed="40" premium="yes" />

<mount id="3" clientId="370" name="War Bear" speed="20" premium="yes" />

<mount id="4" clientId="371" name="Black Sheep" speed="20" premium="yes" />

<mount id="5" clientId="372" name="Midnight Panther" speed="30" premium="yes" />

<mount id="6" clientId="373" name="Draptor" speed="40" premium="yes" />

<mount id="7" clientId="374" name="Titanica" speed="30" premium="yes" />

<mount id="8" clientId="375" name="Tin Lizzard" speed="30" premium="yes" />

<mount id="9" clientId="376" name="Blazebringer" speed="40" premium="yes" />

<mount id="10" clientId="377" name="Rapid Boar" speed="40" premium="yes" />

<mount id="11" clientId="378" name="Stampor" speed="40" premium="yes" />

<mount id="12" clientId="379" name="Undead Cavebear" speed="40" premium="yes" />

 

</mounts>

Ta, agora ta pronto, mas quando o player logar, ele não vai receber o mount, então vá em pastadoot/DATA/CREATURESCRIPTS/SCRIPTS copie um arquivo e renomeie para mountOnLogin

]function onLogin(cid)

if(isPlayer(cid)) then

local storageId = 30010

if getPlayerStorageValue(cid, storageId) == -1 then

doPlayerAddMount(cid, 1)

doPlayerAddMount(cid, 2)

doPlayerAddMount(cid, 3)

doPlayerAddMount(cid, 4)

doPlayerAddMount(cid, 5)

doPlayerAddMount(cid, 6)

doPlayerAddMount(cid, 7)

doPlayerAddMount(cid, 8)

doPlayerAddMount(cid, 9)

doPlayerAddMount(cid, 10)

doPlayerAddMount(cid, 11)

doPlayerAddMount(cid, 12)

doPlayerAddMount(cid, 13)

doPlayerAddMount(cid, 14)

doPlayerAddMount(cid, 15)

doPlayerAddMount(cid, 16)

doPlayerAddMount(cid, 17)

doPlayerAddMount(cid, 18)

doPlayerAddMount(cid, 19)

doPlayerAddMount(cid, 20)

doPlayerAddMount(cid, 21)

doPlayerAddMount(cid, 22)

doPlayerAddMount(cid, 23)

setPlayerStorageValue(cid, storageId, 1)

end

end

return TRUE

end

login" name="LoginMount" script="mountOnLogin.lua"/>

Atenção! esse ai é para 9.10, para 8.70 ai vai:

 

 

 

 

function onLogin(cid)

if(isPlayer(cid)) then

local storageId = 30010

if getPlayerStorageValue(cid, storageId) == -1 then

doPlayerAddMount(cid, 1)

doPlayerAddMount(cid, 2)

doPlayerAddMount(cid, 3)

doPlayerAddMount(cid, 4)

doPlayerAddMount(cid, 5)

doPlayerAddMount(cid, 6)

doPlayerAddMount(cid, 7)

doPlayerAddMount(cid, 8)

doPlayerAddMount(cid, 9)

doPlayerAddMount(cid, 10)

doPlayerAddMount(cid, 11)

doPlayerAddMount(cid, 12)

setPlayerStorageValue(cid, storageId, 1)

end

end

return TRUE

end

Bom e isto gente.

Te Ajudei? da REP+.

leozinhoacL
07 de agosto de 2011 às 18:27

testado e aprovado, mano entrei em 1 ot que tinha mais mounts 8.7 como war wolf, carnaphila, hand of cursed fate, entre outras sera q voce pode explicar como fazer isso?