Welcome to the Builder Academy

Question New command - Please help

More
04 Jul 2025 12:57 - 13 Jul 2025 10:30 #10780 by JTP
Hi

Have anyone made something like this and maybe wanna share or could make it ? I gave up could never figure it out:

Command maybe: do_worldinfo - that any player can use

Showing:
Uptime: 3 days 15 hours 1 mins

Mobiles: 100/80  Objects: 100/80 (first number being total mobs alive atm, 80 being unique) (if loaded several of one unique the first number will be higher then the second)

Rooms: 5000  Zones: 50  Quests: 100

Players: 5/600 (5 being online atm, 600 total)



Only calculated mobs, object, zones etc flagged as GRID
Last edit: 13 Jul 2025 10:30 by JTP.

Please Log in or Create an account to join the conversation.

More
06 Jul 2025 15:43 #10783 by wlessard1
Replied by wlessard1 on topic New command
Check the Show function, it has a show "stat" that outputs this....

Current stats:
2 players in game 2 connected
8 registered
6322 mobiles 1753 prototypes
7517 objects 2545 prototypes
6526 rooms 91 zones
722 triggers 194 shops
1 large bufs 37 autoquests
46 buf switches 0 overflows
4 lists

Would think that uptime could be added as the output for show stats

Please Log in or Create an account to join the conversation.

More
06 Jul 2025 15:57 #10784 by JTP
Replied by JTP on topic New command
That’s not quite what I need.

As that isn’t only looking at gridded areas. And only shows unique mobs, not also adding how many total. As sometimes several of a unique mob is loaded.

Please Log in or Create an account to join the conversation.

More
12 Jul 2025 16:02 #10790 by Salty
Replied by Salty on topic New command
To achieve your goal, I’d create separate mob and object counting functions to be added in reset_zone() in db.c. 

Those functions would iterate the number of uniquely loaded mobs and objects which can then be returned by the do_show() command that wlessard1 mentioned. 

Please Log in or Create an account to join the conversation.

More
14 Jul 2025 19:21 #10798 by thomas
Replied by thomas on topic New command - Please help
Not entirely sure what the difference between the do_stat output and your expected output is.

6322 mobiles 1753 prototypes
7517 objects 2545 prototypes

literally means the same as

Mobiles: 6322/1753 Objects: 7517/2545

Please Log in or Create an account to join the conversation.

More
14 Jul 2025 19:27 - 14 Jul 2025 19:30 #10800 by JTP
Replied by JTP on topic New command - Please help
This command will be for players.

I have closed the areas that I don’t want people to teleport into by accident.

So I only wanna know how many rooms, mobs, obj etc are loaded in zones marked with GRID or !CLOSED

So players only see realistic infor about how many rooms, mobs, objs etc there are in the playable world
Last edit: 14 Jul 2025 19:30 by JTP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds