Checkhum

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
Iv looked through the event scripts to find a script that finds out how many players are on the map as i want it to find out if theres only 1 person on it and i found CHECKHUM but it doesnt seem to work, ex

#IF
CheckHum E004 1

iv also tried !checkhum e004 1

Anyone got any ideas how to do it properly please?
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
Works for me..

Code:
#IF
CheckHum D1701_014 1
!CheckHum D1701_014 2
#SAY
Casino_014 Has Only ONE Person in that Room\
 
Upvote 0

mirlin6

Golden Oldie
Golden Oldie
Aug 11, 2004
532
3
124
United Kingdom
is there anyway that you could retreive a username with this and display in the script? so you can see how meny players are on map and retreive there usernames
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
I can't still lol, I mean you can use the MapQuest [ENTER] to find where someone is at all times and when they move maps it will update (either a table or a text file etc).

Then you have to check if those same people are still online... how to do this?

I suppose the other option would be to have a global script running that keeps checking where everyone is and updating a table/txt file.. but again, how do you know someone is offline?
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
mhh as ida said its a problem it would be makable to find out who is gone to a map over a text file that aktualise ever if a mapmove will done

mapmove over mapinfo.txt or as ida said over mapquest enter but if a player logout u have nothing only a quantity of ppl on map by checkhum. i dunno if there is a possibility to notize somewhere if a player used a townscroll to leave map as example
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
It doesn't matter, if they are online they can be found, either instantly if you are the MapQuest route using [ENTER] on every map.. or updated every say 1-5 Minutes if you use a Global delaygoto script from 00Default.

If a player leaves the map for any reason, they will be entering another map, so they will be caught again.. but if a player logs off, how does the script know?
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
thats the Point . i had the same prob with my lost exp script after userdie that i dont can find out if a user loged out so flags as example not work to take exp or does a tao resurrect :(
 
Upvote 0

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
114
hmm your right ida :) i didnt think of that.. ironically its easier to display this info.. on a website since there is a place in the database that stores this kind of info already but it cannot be accessed within mir3 lol.. where a player is last seen (updates every 3-4 min) but ya i dont think there is a way to trigger a script after a player disconnects. oops :P
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
You can do it externally using an outside program, and updating it in a table/text file that the NPC can read.. but like you said.. is it worth it :(
 
Upvote 0