AnnieRuru 957 Posted February 23, 2014 (edited) 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 Edited November 13, 2015 by AnnieRuru 5 evilpuncker, Mystery, Dramosith and 2 others reacted to this Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted February 24, 2014 very nice Quote Share this post Link to post Share on other sites
quesoph 105 Posted February 24, 2014 Thank you annie.. Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted March 7, 2014 have to add another script command *checkmes to check the player is having a npc dialog or not 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 11, 2014 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! 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 Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted March 11, 2014 (edited) 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 Edited March 11, 2014 by AnnieRuru 1 Hadeszeus reacted to this Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 11, 2014 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 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; } Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 11, 2014 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 ok got it. ty Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted March 12, 2014 have to add another script command *checkmes to check the player is having a npc dialog or not due to your latest patch to hercules, it will not be necessary anymore, right? Caution :due to CHAT_MAINCHAT removed in clif.h remember to apply this patch to make type BG works Quote Share this post Link to post Share on other sites
javierlog08 2 Posted April 3, 2014 Can i diff this on Github Hercules? Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted April 3, 2014 Can i diff this on Github Hercules? sure Quote Share this post Link to post Share on other sites
javierlog08 2 Posted April 3, 2014 Im getting some erros trying to patch this.A screen shothttp://prntscr.com/36om9j Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted April 3, 2014 you should wait for annie for update it for latest revision, or use as plugin or apply it manually Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted April 4, 2014 you should wait for annie for update it for latest revision, or use as plugin or apply it manually Should I expect error? I'm still using this in latest rev without problems.. Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted April 4, 2014 you should wait for annie for update it for latest revision, or use as plugin or apply it manually Should I expect error? I'm still using this in latest rev without problems.. you shouldn't expect error since you have it working already Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted September 3, 2014 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 Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted September 3, 2014 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 Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted September 5, 2014 version 1.2 just a minor fixed of type BG, which was found here http://herc.ws/board/topic/4570-battleground-system-without-waitingroom/?p=42419 its minor because I'm sure everyone use getbgusers instead of getmemberaid to get the account ID of batttleground users =/ Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted November 13, 2015 version 1.3 http://upaste.me/0e55219566e411b05 new plugin format reorganize the code and ... fix party and guild type using wrong index Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 20, 2021 On 11/13/2015 at 8:08 PM, AnnieRuru said: version 1.3 http://upaste.me/0e55219566e411b05 new plugin format reorganize the code and ... fix party and guild type using wrong index Hi AnnieRuru, Can't access the updated file. Can't find it in your repo as well. Do you still have the updated version of this? I have an instance using this 😅 Thanks! Quote Share this post Link to post Share on other sites
Hadeszeus 15 Posted March 20, 2021 32 minutes ago, Hadeszeus said: Hi AnnieRuru, Can't access the updated file. Can't find it in your repo as well. Do you still have the updated version of this? I have an instance using this 😅 Thanks! Please discard. I was able to access upaste. I thought it's down didn't load at first. Quote Share this post Link to post Share on other sites