jestemPolakiem
New Member
Sex Change & Buying Premum
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just use any of the items[/B]
Purchased a one day premium account.
Yours sex has been changed.
data/actions/actions.xml
PHP:
<action itemid="8305" event="buffer" value="return doPlayerRemoveItem(cid, 8305, 1) and doPlayerSetSex(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE) and doCreatureSay(cid, 'Your sex has been changed.', TALKTYPE_MONSTER)"/>
<action itemid="8300" event="buffer" value="return doPlayerRemoveItem(cid, 8300, 1) and doPlayerAddPremiumDays(cid, 1) and doCreatureSay(cid, 'Purchased a one day premium account.', TALKTYPE_MONSTER)"/>
Greets
jestemPolakiem
Last edited: