Jump to content
  • 0

Question

Posted

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

5 answers to this question

Recommended Posts

Posted

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;
}
Posted

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

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