1. how to make it not list clone monster? or slaveclone?

utofaery

New member
Messages
101
Points
0
- script BmapMobList -1,{
OnInit:
bindatcmd "mapmoblist2", strnpcinfo(0)+"::Onaaa";
end;
Onaaa:
if ( .@atcmd_numparameters ) {
if ( getmapusers(.@atcmd_parameters$) == -1 ) {
dispbottom "Map not exist";
end;
}
.@map$ = .@atcmd_parameters$;
}
else
.@map$ = strcharinfo(3);
.@size = getunits( BL_MOB, .@bl, false, .@map$ );
freeloop true;
for ( .@i = 0; .@i < .@size; ++.@i ) {
.@string$ = rid2name(.@bl[.@i]);
if ( !getd(".@"+ .@string$) ) {
.@mobname$[.@c] = .@string$;
getmapxy .@map$, .@x, .@y, UNITTYPE_MOB, .@bl[.@i];
.@mobx[.@c] = .@x;
.@moby[.@c] = .@y;
.@mobhp[.@c] = getunitdata( .@bl[.@i], UDT_HP );
.@mobmaxhp[.@c] = getunitdata( .@bl[.@i], UDT_MAXHP );
++.@c;
}
setd ".@"+ .@string$, getd(".@"+ .@string$) +1;
}
dispbottom " === These are monsters in "+ .@map$ +" ===";
for ( .@i = 0; .@i < .@c; ++.@i )
if ( getd(".@"+ .@mobname$[.@i]) )
dispbottom ( ++.@j )+". "+ .@mobname$[.@i] +" : "+ getd(".@"+ .@mobname$[.@i])+"x";
if ( getgmlevel() < 99 ) end; // Hercules doesn't catch dead monsters as being alive
dispbottom " === Location of unique monsters === ";
for ( .@i = 0; .@i < .@c; ++.@i )
if ( getd(".@"+ .@mobname$[.@i]) == 1 )
dispbottom .@mobname$[.@i] +" --> X = "+ .@mobx[.@i] +" Y = "+ .@moby[.@i] +" | Hp left = "+ .@mobhp[.@i] +"/"+ .@mobmaxhp[.@i];
end;
}


As topic

as requested don't blame me multi topic spamming..




 
change

if ( !getd(".@"+ .@string$) ) {


into

if ( !getd(".@"+ .@string$) || jobname(getunitdata( .@bl[.@i], UDT_CLASS )) != "Unknown Job" ) {






Note : 2 things

1st, UDT_CLASS is expected to change some time soon, a PR is already addressing this issue
https://github.com/HerculesWS/Hercules/pull/2382

2nd, we missing a script command to read a line from conf/message.conf

and yes, its better to open multiple topic ...

 
Last edited by a moderator:
1st, UDT_CLASS is expected to change some time soon, a PR is already addressing this issue
https://github.com/HerculesWS/Hercules/pull/2382

2nd, we missing a script command to read a line from conf/message.conf

and yes, its better to open multiple topic ...
1.  What to change if this occur?

2.  can that be created??  somehow?

3.  On the pass some forum restrict people from flooding topic in forum...which is something I faced before so ... the reason I did mashup topic.

this forum encourage flooding then??

 
1.  What to change if this occur?

2.  can that be created??  somehow?
wait until I do pull request, not all my modification can be accept by hercules staff members

3.  On the pass some forum restrict people from flooding topic in forum...which is something I faced before so ... the reason I did mashup topic.

this forum encourage flooding then??
all the questions you asked are totally valid
and yes I can answer every single one of them

 
Back
Top