mawjustin Posted July 6, 2021 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 124 Reputation: 6 Joined: 09/26/14 Last Seen: August 20, 2024 Share Posted July 6, 2021 Hi Team, I tried checking on rathena document, but I am unable to find the following, I'm not sure if I am looking in the wrong files or data: 1. How to check Random Option Element either from 1-5? 2. How to check Armor Element? 3. How to check Card slotted element? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 27, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 1 hour ago Share Posted August 27, 2021 On 7/6/2021 at 9:56 PM, mawjustin said: 1. How to check Random Option Element either from 1-5? *getequiprandomoption(<equipment index>,<index>,<type>{,<char id>}); Returns value of an attribute of a random option on an equipped item. See 'getequipid' for a full list of valid equipment slots. index parameter can be 0 to MAX_ITEM_RDM_OPT-1 (default 0-4). For valid attribute types, see `getrandomoptinfo` command reference. or *getinventorylist {<char_id>}; This command sets a bunch of arrays with a complete list of whatever the invoking character has in their inventory, including all the data needed to recreate these items perfectly if they are destroyed. Here's what you get: @inventorylist_option_id1[] - first array of random option IDs @inventorylist_option_value1[] - first array of random option values @inventorylist_option_parameter1[] - first array of random option parameters @inventorylist_option_id2[] - second array of random option IDs @inventorylist_option_value2[] - second array of random option values @inventorylist_option_parameter2[] - second array of random option parameters @inventorylist_option_id3[] - third array of random option IDs @inventorylist_option_value3[] - third array of random option values @inventorylist_option_parameter3[] - third array of random option parameters @inventorylist_option_id4[] - fourth array of random option IDs @inventorylist_option_value4[] - fourth array of random option values @inventorylist_option_parameter4[] - fourth array of random option parameters @inventorylist_option_id5[] - fifth array of random option IDs @inventorylist_option_value5[] - fifth array of random option values @inventorylist_option_parameter5[] - fifth array of random option parameters On 7/6/2021 at 9:56 PM, mawjustin said: 2. How to check Armor Element? not available On 7/6/2021 at 9:56 PM, mawjustin said: 3. How to check Card slotted element? check for card id instead. *getequipcardid(<equipment slot>,<card slot>) Returns value from equipped item slot in the indicated slot (0, 1, 2, or 3). This function returns CARD ID, CARD0_FORGE, CARD0_CREATE, or CARD0_PET (for card 0, if the item is produced). It's useful for when you want to check whether an item contains cards or if it's signed. or getinventorylist Quote Link to comment Share on other sites More sharing options...
1 Litro Endemic Posted July 7, 2021 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted July 7, 2021 element like fire, wind and water? if yes, there is no available script command for that, since element is script based not field member of item, you need to create indexes your self for it Quote Link to comment Share on other sites More sharing options...
0 mawjustin Posted July 7, 2021 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 124 Reputation: 6 Joined: 09/26/14 Last Seen: August 20, 2024 Author Share Posted July 7, 2021 30 minutes ago, Litro Endemic said: element like fire, wind and water? if yes, there is no available script command for that, since element is script based not field member of item, you need to create indexes your self for it I see, I guess I that's the only option for now. Quote Link to comment Share on other sites More sharing options...
Question
mawjustin
Hi Team,
I tried checking on rathena document, but I am unable to find the following, I'm not sure if I am looking in the wrong files or data:
1. How to check Random Option Element either from 1-5?
2. How to check Armor Element?
3. How to check Card slotted element?
Thank you in advance.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.