getmemberaid checkmes

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
Download: 1.3

plugin

--------------------------------

everything is inside this sample

http://upaste.me/10bb21957e0971185

its meant to attachrid online players

checkmes ...

is just like addrid with type 1 ... means only attachrid on players that doesn't have a npc dialog

- script test dialog -1,{Onaaa: mes "hi"; close;OnInit: while (1) { getmemberaid ALL_CLIENT; for ( .@i = 0; .@i < $@onlinecount; .@i++ ) { if ( !checkmes( $@onlineaid[.@i] ) ) { // if don't have a npc dialog attachrid $@onlineaid[.@i]; addtimer 1, strnpcinfo(0)+"::Onaaa"; } } sleep 1000; }}
1.0

plugin

patch

1.1

-- fixed uint16 into int16 for map index

plugin

patch

1.2

-- fixed battleground team listing bug

plugin

patch

outdated sample

http://upaste.me/0b2010783212b7248

1.3

-- reorganize format thanks to haru

-- fix player and guild type using wrong $@onlineaid index ( should be j, not i )

plugin
 
Last edited by a moderator:
very nice
default_smile.png


 
have to add another script command *checkmes to check the player is having a npc dialog or not

 
have to add another script command *checkmes to check the player is having a npc dialog or not
Hi Annie, I just want to ask if this is okay? I'm getting this warning in compiling. Thank you!

Code:
script.c: In function 'buildin_getmemberaid':script.c:18555: warning: comparison is always false due to limited range of data typescript.c:18577: warning: comparison is always false due to limited range of data type
 
I think not, might be a bug ... I not sure, though it works in my test server

what's the line on 18555 and 18577 ?

btw, if it falls on line uint16 m;

I've fixed it int16 m; ages ago

 
Last edited by a moderator:
Sorry here's the code on that line.

Line 18555

BUILDIN(getmemberaid) { uint16 i = 0; switch ( script_getnum(st,2) ) { // type case ALL_CLIENT: map->foreachpc( buildin_getmemberaid_ALL_pc, &i ); mapreg->setreg( script->add_str("$@onlinecount"), i ); return true; case ALL_SAMEMAP: { uint16 m; if ( script_hasdata(st,3) ) { if ( ( m = map->mapname2mapid( script_getstr(st,3) ) ) < 0 ) {
Line 18577

Code:
case AREA:		if ( script_hasdata(st,3) ) {			if ( script_hasdata(st,4) && script_hasdata(st,5) && script_hasdata(st,6) && script_hasdata(st,7) ) {				uint16 m;				if ( ( m = map->mapname2mapid( script_getstr(st,3) ) ) < 0 ) {					mapreg->setreg( script->add_str("$@onlinecount"), 0 );					return false;				}
 
you should wait for annie for update it for latest revision, or use as plugin or apply it manually

 
I think not, might be a bug ... I not sure, though it works in my test server

what's the line on 18555 and 18577 ?

btw, if it falls on line uint16 m;

I've fixed it int16 m; ages ago
what was changed in 1.1? xD

 
LOL

check properly please

http://upaste.me/34ce110099fd24b02

Posted on the 7th March, 2014 at 10:57:59version 1.1 is fixed the 'uint16 m;' into 'int16 m;' for the map indexwhich was already fixed before post#5 (11 March) before he mentioned about that

 
Back
Top