Jump to content
  • 0

Gender check on item


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

I have this custom box made which gives a custom headgear when you open it. I want the box to check if the player is male or female and give a headgear according to their gender. How can I do something like this on an item_db script? And please show an example using 2 items.
Thanks in return~

Edit: Solved.
it's something like this:

25000,Box,Box,2,0,,20,,,,,0xFFFFFFFF,63,2,,,,,,{ if(Sex == 1) { getitem 531,1; } else { getitem 532,1; } },{},{}
Edited by Patskie
Remove strike through
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

You shouldn't edit your first post as some people might encounter the same problem with you and your topic might be helpful. Glad to see that you solve the problem yourself. Making this topic as solved

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Opps sorry about that. I was going to take the strikes out but I forgot ^^;

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...