History veja meu tutorial:
caso não queira entrar no link ai vai:
Olá xtibia.
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" /> <mount id="24" clientid="380" name="new1" speed="20" /> <mount id="25" clientid="427" name="new2" speed="20" /> <mount id="26" clientid="437" name="new3" speed="20" /> <mount id="27" clientid="438" name="new4" speed="20" /> <mount id="28" clientid="414" name="new5" 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) doPlayerAddMount(cid, 24) doPlayerAddMount(cid, 25) doPlayerAddMount(cid, 26) doPlayerAddMount(cid, 27) doPlayerAddMount(cid, 28) setPlayerStorageValue(cid, storageId, 1) end end return TRUE end
<event type="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
<event type="login" name="LoginMount" script="mountOnLogin.lua"/>
Garanto que vai ajudar muita gente.
Gostou? REP+ ![]()
OBS: Esse script eu tenho mounts até 28, mas não se preocupe eles não tem bugs e tem um deles que nem eu conhecia, são perfeitos, espero ter ajudado




info
Grupo: Campones
Registrado: 14/06/11
Posts: 35
Reputação: +39
Alguém pode ajduar com isso?
Quando o player criar o char ele já começa com todas as montarias.
As montarias do meu server são...
TFs 9.10:
mountid="1"
até
mountid"23"
Acho que tem como fazer por creaturescript, tipo, quando logar add mount tal.
Alguém ajuda com isso?
Por favor, é urgente.
Ou então um item que adicione todas as montarias de 1 a 23.
Agradeço desde já...
REP+
Editado Julho 20 por history