I found a changesex doll in otland, but it doesn't work like I want...
When I use the doll, it changes my Gender and the item removes, that's good.
But, when I use same doll again, I cannot change my gender again after it's changed once.
I want it, so it can be changed always. Ofcourse, the doll will dissapear everytime on use.
Script:
When I use the doll, it changes my Gender and the item removes, that's good.
But, when I use same doll again, I cannot change my gender again after it's changed once.
I want it, so it can be changed always. Ofcourse, the doll will dissapear everytime on use.
Script:
PHP:
function onUse(cid, item, fromPosition, item2, toPosition)
local sexs = {
[1] = {s=1},
[1] = {s=0}
}
local sex = sexs[getPlayerSex(cid)]
if sex then
doPlayerSetSex(cid,sex.s)
doRemoveItem(item.uid,1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Your sex has been changed")
end
return true
end