Jump to content
  • 0
Sign in to follow this  
Zirius

updated map user count in PUB every minute?

Question

Haha, I have seen this to some servers, but up to know I have no idea where to start coding.

All I know is that PUB must be created, but to destroy it and update it I have no idea.

 

Can somebody please lead me where to start?

 

Thanks!

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello! I'm confused if you also need the info about how to create a pub but just in-case

 

To create a pub you could use a command called waitingroom

 

and destroy it with delwaitingroom
 
You could check the syntax at your herculescopy/doc/script_commands.txt just search *waitingroom or *delwaitingroom.
 
Then you probably need to put them in some kind of loop or a bunch of OnMinute if you're in a hurry xD (see *OnMinute on the doc)
 
If i have time later I'll try to make this for you if you still haven't figure it out or someone else hasn't given the answer yet :)

Share this post


Link to post
Share on other sites
  • 0

found that somewhere in my HDD

http://upaste.me/07c8156078217feff

 

wow, so while(1) would keep the script running, very clever.

Another question, will it be memory extensive if the NPC will be duplicated 20+ times? Because seems like each NPC would getmapuser every <x> millisecond.

Thanks!

 

if this is true, I might just store the data globally. Thanks!

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.