kerbiii 5 Posted December 18, 2013 OnInit:waitingroom "PvP[" + getmapusers("guild_vs3.gat") + "/30",0;end;} i have this on my npc but it doesnt show the right numbers of players on the map its always 0/30 Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 18, 2013 You could use instead of this loop a initnpctimer and a label, but I think it's simpler this way: OnInit: waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; while(1) { delwaitingroom strnpcinfo(3); waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; sleep 1000; //Update rate (ms) } end;Haven't tested it, but I hope it works c: Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 18, 2013 (edited) Remove the file extension and I think it'll work c waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; Edited December 18, 2013 by pan 1 kerbiii reacted to this Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted December 18, 2013 (edited) Remove the file extension and I think it'll work c waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; it worked, thanks! EDIT: the pub doesnt change even when there's no player in the pvp room anymore Edited December 18, 2013 by kerbiii Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted December 19, 2013 You could use instead of this loop a initnpctimer and a label, but I think it's simpler this way: OnInit: waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; while(1) { delwaitingroom strnpcinfo(3); waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; sleep 1000; //Update rate (ms) } end;Haven't tested it, but I hope it works c: its not working the pub is always [0/30] Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 19, 2013 I just tested this code in Hercules' last revision and it's working fine, have you altered anything in it? You could post the snippet that you are using c: Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted December 19, 2013 I just tested this code in Hercules' last revision and it's working fine, have you altered anything in it? You could post the snippet that you are using c: for got edit some line, its working now, does the sleep part really needed? because sometimes its giving the wrong numbers Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted December 19, 2013 (edited) Change it to : sleep 100; sleep is needed otherwise it will cause infinite loop Edited December 19, 2013 by Patskie Quote Share this post Link to post Share on other sites
i have this on my npc but it doesnt show the right numbers of players on the map its always 0/30
Share this post
Link to post
Share on other sites