Issue information

Issue ID
#8703
Status
Confirmed
Severity
None
Started
evilpuncker
May 27, 2015 19:43
Last Post
Angelmelody
May 28, 2015 10:59
Confirmation
N/A

evilpuncker - May 27, 2015 19:43

[color=rgb(51,51,51)][font='Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif]
this part:[/font][/color][color=rgb(51,51,51)][font='Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif]
// Note: if a negative MobID is provided, the skill will be treated as 'global':
// -1: added for all boss types.
// -2: added for all normal types.
// -4: added for all mobs.[/font][/color][color=rgb(51,51,51)][font='Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif]
if I give -1, it is adding the skill for all monster types, like if it was -4[/font][/color][color=rgb(51,51,51)][font='Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif]
the responsible part of the code is here:[url="https://github.com/HerculesWS/Hercules/blob/master/src/map/mob.c#L4461"]https://github.com/HerculesWS/Hercules/blob/master/src/map/mob.c#L4461[/url][/font][/color]

malufett - May 27, 2015 20:00

hahah..this statement is funny..[quote]
if (mob->db_data[i]->status.mode&MD_BOSS) << check if boss type
{
if (!(mob_id&2)) //Skill not for bosses << but here if id is -1 it will restrain the boss type to get the skill
continue;
} else
if (!(mob_id&1)) //Skill not for normal enemies. << and here it will grant all normal mobs the skill
continue;[/quote]
:meow:

Angelmelody - May 28, 2015 10:59

[quote name="evilpuncker" timestamp="1432755787"]

[color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]this part:[/font][/color]
[color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]// Note: if a negative MobID is provided, the skill will be treated as 'global':
// -1: added for all boss types.
// -2: added for all normal types.
// -4: added for all mobs.[/font][/color]
[color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]if I give -1, it is adding the skill for all monster types, like if it was -4[/font][/color]
[color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]the responsible part of the code is here:[url="https://github.com/HerculesWS/Hercules/blob/master/src/map/mob.c#L4461"]https://github.com/HerculesWS/Hercules/blob/master/src/map/mob.c#L4461[/url][/font][/color][/quote]


[color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]// -1: added for all [color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]normal types[/font][/color].
// -2: added for all [color=rgb(51,51,51)][font=Helvetica, 'Segoe UI', Arial, freesans, sans-serif]boss types[/font][/color].
// -3: added for all mobs.[/font][/color]