Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cost = 1000 -- Valor a se pagar
- function creatureSayCallback(cid, type, msg)
- if not npcHandler:isFocused(cid) then
- return false
- end
- if msgcontains(msg, 'male') then
- npcHandler:say('are you sure you want to give your sex ?' ,cid)
- npcHandler.topic[cid] = 1
- if msgcontains(msg, 'yes') --[[and npcHandler.topic[cid] == 1 ]]then
- if doPlayerRemoveMoney(cid, cost) then
- doPlayerSetSex(cid, 1)
- npcHandler:say('You successfully changed sex.', cid)
- doRemoveCreature(cid)
- else
- npcHandler:say('You no have money.', cid)
- npcHandler.topic[cid] = 0
- end
- end
- else
- npcHandler:say('Sorry is not possible.', cid)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement