getmapusers doubt

K4m4r40

New member
Messages
65
Points
0
Github
K4M4R40
Emulator
Hi,
Wanted to show within a command mes "", the sum of online players in 3 maps.

 
Maps Are: ice_dun01 ,  ice_dun02, ice_dun03


*Wanted to know if the following command is right.
 
set @on_orcsdun,"+(getmapusers("orcsdun01.gat"))+(getmapusers("ice_dun02.gat"))+(getmapusers("ice_dun02.gat"))";
mes "Orc Dungeon <^FF0000"+@on_orcsdun+"^000000>!";
 
 
*And was wondering if there is a way to show the sum of the players online in the maps
without using variable...


Take much resolve this issue,  i thank all aid.
default_wacko.png
 
Sorry for the English.
default_mellow.png

 
there is no way to achieve it since the command doesn't accept an array of maps, by the way what is the problem with using variables?

 
my problem:

"=> ^FF8C00Muka^000000 ^FF0000["+(getmapusers("moc_fild02.gat"))+"]^000000(^00CED140^000000 á ^FF000080^000000)",moc_fild02,"=> ^FF8C00Zombie^000000 ^FF0000["+(getmapusers("pay_dun00.gat"))+"]^000000(^00CED140^000000 á ^FF0000100^000000)",pay_dun00, "=> ^DC143CProntera Culvert^000000 ^FF0000["+(getmapusers(".gat"))+"]^000000(^00CED140^000000 á ^FF0000100^000000)",prt_sewb, 
^DC143CProntera Culvert^000000 ^FF0000["+(getmapusers(".gat"))+"]^000000 
there are 4 floors

I wanted to show the sum of online players in the 4 maps in this menu,in the case, will be this way, right?

Code:
set @on_prt_sewb1 ,"+(getmapusers("prt_sewb1.gat"))+";set @on_prt_sewb2 ,"+(getmapusers("prt_sewb2.gat"))+";set @on_prt_sewb3 ,"+(getmapusers("prt_sewb3.gat"))+";set @on_prt_sewb4 ,"+(getmapusers("prt_sewb4.gat"))+";set @on_prt_sewb, (@on_prt_sewb1 + @on_prt_sewb2 + @on_prt_sewb3 + @on_prt_sewb1);"=> ^DC143CProntera Culvert^000000 ^FF0000["+@on_prt_sewb+"]^000000(^00CED140^000000 á ^FF0000100^000000)",prt_sewb,

right? 
is there any more simple way to do this?


Thx for help


@edit
there is no way to achieve it since the command doesn't accept an array of maps, by the way what is the problem with using variables?
Makes two years not create one scripts, I forgot commands that helped simplify my NPCs. =(


 
Last edited by a moderator:
Not yet know if whats going to be the output but try this one

Code:
	@on_prt_sewb = (getmapusers("prt_sewb1.gat"))+(getmapusers("prt_sewb2.gat"))+(getmapusers("prt_sewb3.gat"))+(getmapusers("prt_sewb4.gat"));"=> ^DC143CProntera Culvert^000000 ^FF0000["+@on_prt_sewb+"]^000000(^00CED140^000000 á ^FF0000100^000000)",prt_sewb,
 
Back
Top