Jump to content
  • 0

Monster aggro system


Question

Posted

Hi,

i am using Pre Renewal system and want to know how i can change the aggro system from a monster. At the moment for example Mi Gao only attacks the Person he had first hit it. this person runs cyricels and other kills. But i want to change It.

Mi Gao have to attack the person how attack it now and not only the first person.

7 answers to this question

Recommended Posts

Posted

I have to change the red one, right?

1516,INCREASE_SOIL,Increase Soil,Mi Gao,51,8230,0,2760,2110,1,560,700,30,12,40,45,23,12,69,12,10,12,1,0,62,0x91,445,106,1056,576,0,0,0,0,0,0,0,7264,4365,7004,2300,997,10,969,2,0,0,0,0,0,0,0,0,0,0,4231,1

But what have i to change? To this?

MD_CHANGECHASE        | 0x0400 |   1024
Posted

In code boxes colors are not shown, but you have to change the 0x91 value on that line.

 

Let's analyse it: 0x91 is the sum of 0x80 + 0x10 + 0x01 which means that mob can move (0x01), cast sensor (0x10) and that it can attack (0x80).

 

So you'll have to sum the values of what you want the mob to do. If you want to make the mob to change target when it's in chase mode you'll have to sum that to the existing mode the mob has so you'll have to sum 0x91 + 0x400 which is 0x491 and place it on the mode column of the monster.

 

Then save the file, @reloadmobdb (or restart the server if it doesn't work) and chew the new behavior of Mi Gao. Then see if it fits your needs or else experiment with the rest of the modes a mob can have.

 

Hope it helped.

  • Upvote 1
Posted (edited)

Other Question:

 

Amon Ra have at mode: 181. If i want to change that he can move i have to +1, because of:

MD_CANMOVE            | 0x0001 |      1

 

1511, AMON_RA, Amon Ra, Amon Ra, 88, 1214138, 0, 87264, 35891, 1, 1647, 2576, 26, 52, 1, 1, 90, 124, 74, 45, 10, 12, 2, 7, 62, 182, 200, 1872, 672, 480, 8000, 7114, 10, 617, 100, 0, 0, 7211, 8000, 984, 2000, 0, 0, 607, 3000, 616, 450, 5053, 250, 1552, 5, 2615, 100, 0, 0, 0, 0;

 

But doesnt work.

Edited by King555
Posted

You've changed it wrong: Amon Ra's original mode is 0x1A4 (the values of the mob modes are in hexadecimal, so you have to do an hexadecimal sum for modifying its behavior), you have to sum one to that number, so you get 0x1A5. Put this value on the Amon Ra's mode and you'll see it walk.

 

I'd reccomend you get its mode then convert the value to decimal (omit the starting '0x'), make the operations in decimal and then convert it back to hexadecimal. You can use an online calculator or even your Windows calc can do the operations for you (in Windows calc you can even operate in hexadecimal directly).

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