Jump to content
  • 0
Sign in to follow this  
K4m4r40

getmapusers doubt

Question

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. :wacko: 
Sorry for the English. :mellow:

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Not yet know if whats going to be the output but try this one

	@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,

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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?

 

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. =(

Edited by K4m4r40

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.