Jump to content
  • 0

Help with changesex function for item


Pink Guy

Question


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

I wanted to make an item for changesex function.. here's my script..

23001,ChangeSex_Certificate,ChangeSex_Certificate,18,0,,,,,,,,,,,,,,,{ changesex; },{},{}

My item type is 18 because I want the item to ask for confirmation first before changing sex.. I also tried making the type 0 but it doesn't do anything.. can someone please help me?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Item type 11, and for item script:

if(select("Change Sex:Cancel")==2) close; delitem 23001,1; changesex;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

let me try it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  07/12/12
  • Last Seen:  

@Euphy

Wasn't aware you could do that right on the item script. Very cool stuff

you can use a callfunc script on item, which I would have done originally.

callfunc changesex;

and then have an npc script function that uses changesex

Edited by PokemonRO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Is there any way I can make it like this... before you get change sex, all of your equips will be stripped or unequipped?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

Based on Euphy Script

add this after the "delitem" or any where you want after the "close;"

nude;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Doesn't "changesex" already strip your equipment? Maybe it was the atcommand...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  07/12/12
  • Last Seen:  

The atcommand logs you out and forces you to relog on your char and yeah it strips your items

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...