• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Sex Change & Buying Premum

jestemPolakiem

New Member
Joined
Oct 17, 2009
Messages
48
Reaction score
2
Location
Poland
Sex Change & Buying Premum
by jestemPolakiem

script has been tested on The Forgotten Server 0.3.6pl1 and worked

mapava.png


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:
Kekox, yet it is the above code - is a short but stable and doing their

bogart, specifically placed in the actions that were allowed to put in the shop
 
Back
Top