Tovar
Brak V
- Joined
- Jul 26, 2008
- Messages
- 347
- Reaction score
- 8
Well let me explain a bit, this is simple, after use "X" item, it will remove "X" vipdays from "KEKOX VIP SYSTEM" and will change your gender/sex, if you don't have vipdays, it will fail... Let's Go
first create a file inside data\actions\scripts called statuette_sex.lua and put this inside the file.
now go to actions.xml and add this
I didn't know if this was added before, but I hope you enjoy it.
Regards, Tovar.
first create a file inside data\actions\scripts called statuette_sex.lua and put this inside the file.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) < 5 then
doPlayerSendCancel(cid, "You don't have enough vip days to change your gender.") -- Message if don't have enough vipdays
else
if getPlayerSex(cid) == 1 then
doRemoveVipDays(cid, 5) -- Amount of days to remove
doPlayerPopupFYI(cid, "We have removed 5 vip days from your account!\n Your gender has been changed, Enjoy it!.") -- Message if succes
doPlayerSetSex(cid, 0)
doRemoveItem(item.uid,1)
else
doPlayerSetSex(cid, 1)
doRemoveVipDays(cid, 5) --Amount of days to remove
doPlayerPopupFYI(cid, "We have removed 5 vip days from your account!\n Your gender has been changed, Enjoy it!.") -- Message if succes
doRemoveItem(item.uid,1)
end
end
return true
end
now go to actions.xml and add this
Code:
<!-- Statuette change gender -->
<action itemid="YOUR ITEM ID" event="script" value="statuette_sex.lua"/>
I didn't know if this was added before, but I hope you enjoy it.
Regards, Tovar.
Last edited: