1
[Talkactions] Change sex por premiun days Lun Jul 14, 2014 12:18 am
[Admin] God Maya
![[Admin] God Maya](https://2img.net/u/2712/30/40/04/avatars/1-92.jpg)
Administrador

Hola usuarios de tibiaface
Hoy les tarigo el change sex por premiun days bueno es muy simple al ejecutar el comando !trocarsexo el sexo del player sera modificado.
Instalacion:
Nos vamos a
copiamos cualquier archivo y renombramos por trocarsexo.lua y pegamos esto dentro.
Luego añadimos esta tag en:
y listo
Créditos:
Doidin
Absolute
Hoy les tarigo el change sex por premiun days bueno es muy simple al ejecutar el comando !trocarsexo el sexo del player sera modificado.
Instalacion:
Nos vamos a
Data/talkactions/scripts |
copiamos cualquier archivo y renombramos por trocarsexo.lua y pegamos esto dentro.
- Código:
function onSay(cid, words, param, channel)
local config = {costPremiumDays = 0}
if(getPlayerSex(cid) >= 2) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode mudar para o mesmo sexo.")
return TRUE
end
if(getPlayerPremiumDays(cid) < config.costPremiumDays) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Desculpe, mas voce nao tem dias vip- change sex custa " .. 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, "Voce trocou seu sexo e perdeu " .. config.costPremiumDays .. " days of premium time.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
return TRUE
end
Luego añadimos esta tag en:
data/talkctions/talkactions.xml |
- Código:
<talkaction words="!trocarsexo" script="trocarsexo.lua" />
y listo
Créditos:
Doidin
Absolute

![[Talkactions] Change sex por premiun days YNU5B25](https://i.imgur.com/yNU5B25.png)