
jared
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
jared deu reputação a xWhiteWolf em Criar Itens vip para mudar nome e sexo do player.getPlayerSex(cid) Info This function checks player sex. Returns Player sex. For example: PLAYERSEX_FEMALE (0) - when player is female PLAYERSEX_MALE (1) - when player is male PLAYERSEX_GAMEMASTER (2) - gamemaster (Means if player have changed their sex to type = 2) Example local playerPos = getCreaturePosition(cid) local playerSex = getPlayerSex(cid) if playerSex == PLAYERSEX_FEMALE then --female doSendAnimatedText(playerPos, 'GiRl :*:*', TEXTCOLOR_GOLD) elseif playerSex == PLAYERSEX_MALE then --male doSendAnimatedText(playerPos, 'Wtf? I aM BoY.', TEXTCOLOR_GOLD) else --hermaphrodite doSendAnimatedText(playerPos, 'Who am I? :(', TEXTCOLOR_GOLD) end a função que troca de sexo é essa daqui sendo que em newSex você coloca só o numero seguindo a tabela acima:
PLAYERSEX_FEMALE (0) - when player is female
PLAYERSEX_MALE (1) - when player is male
PLAYERSEX_GAMEMASTER (2) - gamemaster (Means if player have changed their sex to type = 2)
doPlayerSetSex(cid, newSex) -
jared deu reputação a xWhiteWolf em Criar Itens vip para mudar nome e sexo do player.isso são exemplos da função.. no caso oque vc quer é uma action de um item que quando vc clique ele vai te mudar de sexo
-
jared deu reputação a xWhiteWolf em Criar Itens vip para mudar nome e sexo do player.poderia ser qualquer uma das duas kkkk aqui tem uma talkaction já pronta http://www.tibiaking.com/forum/topic/16596-talkaction-comando-name-mudar-nome-de-char/ é só colocar uma condição de ter X item que ja fica como vc quer