Jump to content
  • 0

Item Script help..


chromus28

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

anyone know how to script to an item like this 

 

if they use the item, they can sex change? is there any script for this?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "change"; },{},{}

 

 

make a script in npc folder 
 

function <TAB> script <tab>  change {
atcommand "@changesex";
dispbottom "Sex Change!";
}



Hi,
im not really good in scripting but i will try xD 
i put the script in a usable items coz i don't know how to change sex without Logging out :) just edit the item script
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

http://rathena.org/wiki/Changesex

dispbottom "Sex Change!";
lol no need this one

the player has been kicked to the login screen already, they couldn't see this message

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   54
  • Joined:  12/23/12
  • Last Seen:  

Pointless adding a function for one item, it uses unnecessary loading of the server even if it is miniscule, just add the following in the item script in item_db.txt

atcommand "@sexchange";
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...