VO
action

[Action] -> System Change Sex <-

Por voodo, 03 de jul. de 2009 em Actions e Talkactions

otserv
tibia
script
2
2k
voodoV
03 de julho de 2009 às 22:16

Olá ...

 

Venho Trazer Um Script Que Muita Gente Ja Viu ... Que e De Trocar De Sexo Por Comando .... so que agora ele esta descontando dias de premium account .....

 

Vomos lá ...

 

Crie um arquivo em data\talkactions\scripts com o nome de Changesex ... e adicione oque esta contido na quote abaixo ...

 

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

 

 

Agora va em TalkAction Xml ... e Adicione isso lá ...

 

<talkaction words="!changesex" script="Changesex.lua"/>

 

Pronto ... como Voces viram .. coloquei para discontar 3 dias de premium account .. mude conforme o desejado ...

 

Abrasso .. ate a proxima .. :smile_positivo:

 

COMENTEM .... FICAREI MT GRATO ... PELAS CRITICAS BOAS E RUINS ....

 

GOD Shark [Noel]

satan666S
03 de julho de 2009 às 22:24

mas o normal que vem na maioria dos ots e descontando dias de p.a o.0