Jump to content
  • 0

Custom Element Issues


Azura Skyy

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

This is a re-post for my brother who foolishly posted it in Source Requests. I fear that if we leave it only there it will never see an answer.

 

We're looking to add a new element that will be used exclusively by monsters.

 

I have read over the topic below and followed all instructions however when I attempt to add the value 90 or 91 to make it a level 4 elemental monster it does not change the element.

 

I do not know what value to add as the monsters attribute value to use my custom element if not 30,50,70,90 or 31,51,71,91.

Also, are their any files I need to add to the client side?

 

Thanks,
~Azura Skyy

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

for attribute/element, example for Poring is 21, it means 21%10 = 1 for Water and 21/20 = 1 for Lv 1. So 21 means Level 1 Water.

 

well, if u're asking about add new element, seems rA source kinda suck for this, because the rule above. rA already have 10 elements, if you make the 11th element, it won't apply the 11th element. why?

 

For example Level 1 for 11th element (id 10).

 

10 <= Element

20 <= Level 1

= 30

 

but then, 30%10 = 0 = Neutral

u got water instead the 11th element. /wah

 

i = atoi(str[24]); //Element
status->def_ele = i%10;
status->ele_lv = i/20;
if (!CHK_ELEMENT(status->def_ele)) {
ShowError("mob_parse_dbrow: Invalid element type %d for monster ID %d (max=%d).\n", status->def_ele, mob_id, ELE_ALL-1);
return false;
}
if (status->ele_lv < 1 || status->ele_lv > 4) {
ShowError("mob_parse_dbrow: Invalid element level %d for monster ID %d, must be in range 1-4.\n", status->ele_lv, mob_id);
return false;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

So it is impossible with rAthena without replacing an existing element?

That kind of defeats the purpose, but I appreciate the reply.

Thanks,
~Azura Skyy

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Possible, I'll make a diff file so u can make & use custom elements

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

Possible, I'll make a diff file so u can make & use custom elements

 

That's more than I could have asked for you. Thanks, Cydh.  /ok

 

~Azura Skyy

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

try make custom element after this change 2bfe1d6

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