Ir para conteúdo

[pedido] Por Favor ~troca De Sexo E Exp Por Ataque.


Posts Recomendados

POR FAVOR PRECISO DA AJUDA DE VOCÊS, to querendo um comando pra 8.50 que fale tipo !mudardesexo e mude o sexo e outfit para o sexo oposto. e também o de exp por ataque , EX: to num a hunt , e ao inves de matar o bicho pra ganhar a exp eu dou hit e vem de pouco em pouco a exp entenderam ?

 

 

 

;.. Bom o que quiserem postar a mais pra mim acrescentar nomeu ot também vale ... :p

Link para o comentário
https://xtibia.com/forum/topic/125388-pedido-por-favor-~troca-de-sexo-e-exp-por-ataque/
Compartilhar em outros sites

bem vai ate a pasta talkactions abra o arkivo talkactions.xml e adicione isso dentro:

 

      <talkaction words="!changender" script="changender.lua"/>

 

depois vai ate a pasta scripts copie e cole um arkivo.lua qualquer e mude o nome para changender.lua e dentro delete tudo e cole isso:

 

local config = {
    costPremiumDays = 3 
}

function onSay(cid, words, param, channel)
    if(getPlayerSex(cid) >= 2) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot change your gender.")
        return TRUE
    end

    if(getPlayerPremiumDays(cid) < config.costPremiumDays) then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, not enough premium time- changing gender costs " .. config.costPremiumDays .. " days.")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        return TRUE
    end

    if(getPlayerPremiumDays(cid) < 65535) then
        doPlayerAddPremiumDays(cid, -config.costPremiumDays)
    end

    if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
        doPlayerSetSex(cid, PLAYERSEX_MALE)
    else
        doPlayerSetSex(cid, PLAYERSEX_FEMALE)
    end

    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your gender and lost " .. config.costPremiumDays .. " days of premium time.")
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
    return TRUE
end

 

o comando sera !changender, qndo um player usar esse comando ele trocara de sexo, mais ele precisa ter dias de premium pra trocar, eu nao sei qm postar os creditos, pois eu peguei isso no meu ot...

 

espero ter ajudado!

Editado por PiabetaMan01
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

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