Jump to content
  • 0

Gender check on item


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...