Ir para conteúdo

antonio664

Campones
  • Total de itens

    26
  • Registro em

  • Última visita

Histórico de Reputação

  1. Upvote
    antonio664 deu reputação a Roksas em MOD desativado   
    Abre ele com o bloco de notas, vai vendo nas primeiras linhas, exemplo:
     

    <mod name="Change gender command" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="false">
     
    No final da tag ta escrito isso
     

    enabled="false">
     
    Troca pra true
    Se não encontrar aperta CTRL+F : e digita enabled )
  2. Upvote
    antonio664 deu reputação a murilo103 em [PEDIDO]Recompensa por Storage   
    Em creaturescripts e crie um item chamado gainporstorage.lua
    em Creaturescripts/scripts/login.lua
    registerCreatureEvent(cid, "gainporstorage")
     
    e em Creaturescripts.xml
     
     
    <event type="login" name="gainporstorage" event="script" value="gainporstorage.lua"/>
     
    obs: não foi testado espero o feedback
  3. Upvote
    antonio664 deu reputação a W0lfer em Ganhar Mount Ao Atingir Level X   
    Em creaturescripts crie mount.lua:
     

    function onAdvance(cid, oldLevel, newLevel) local tab = { [20] = {mountid = xx, storage = 11950}, [35]= {mountid = xx, storage = 11951}, [50] = {mountid = xx, storage = 11952} } select = tab[newLevel] if select then if getPlayerStorageValue(cid, select.storage) < 0 then doPlayerAddMount(cid, select.mountid) setPlayerStorageValue(cid, select.storage, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou uma nova montaria por chegar no level " .. newLevel .. ".") end end end
     
    em creaturescripts.xml
     

    <event type="advance" name="MountByLevel" event="script" value="mountbylevel.lua"/>
     
    Em login.lua adicione a linha:
     

    registerCreatureEvent(cid, "MountByLevel")
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...