Login
User Name:

Password:



Register

Forgot your password?
ROOM_NO_MAGIC Inconsistencies...
Jul 8, 2024 12:32 am
By GatewaySysop
IMC??
Jun 14, 2024 11:39 pm
By Samson
Any Smaug muds running?
Jun 1, 2024 1:47 pm
By Zedethar
Any Chances at making a new Mud
Jun 1, 2024 1:42 pm
By Zedethar
delete this?>
May 30, 2024 7:38 pm
By Elwood
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
Bing, Google

Members: 0
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
489
3,798
19,657
597
kiaols

Today's Birthdays
Mulverick (38)
Files
Upload Rules | File Index | Search | Recent Uploads
» Root » AFKMud » AFKMud Snippets
do_owhere recursive
Author Submitted by Version D/L File Size Date Added Last Updated

Khonsu Khonsu 2.23 62 3.99 KB Apr 3, 2024

Description
This is a small change to the do_owhere function so that objects within objects are displayed when using the standard "where obj" command. This functionality mostly already existed within 'where obj nesthunt" but that seemed to only find one item at a time and if you're looking for a specific sword out of 400 it was a bit cumbersome.

Example:
where obj sword
( 1) [ 6007] Sword of the Phoenix -> invent [ 6049] Fordwyn
( 2) [ 7724] A black spade sword -> invent [ 7749] The Jack of Spades
( 3) [ 7724] A black spade sword -> invent [ 7750] The Queen of Spades
( 4) [ 7724] A black spade sword -> invent [ 7751] The King of Spades
( 5) [ 7728] Kaeburayn -> room [ 7721] Within the Rose Garden
( 6) [ 6007] Sword of the Phoenix -> object [ 11418] a bag-> object [ 2869] A cloth bag-> invent [ 0] Khonsu
( 7) [ 6007] Sword of the Phoenix -> overland [One] 223 669
( 8) [ 6007] Sword of the Phoenix -> invent [ 0] Khonsu
( 9) [ 2894] An Abecedarium longsword -> object [ 2869] A cloth bag-> overland [One] 220 669

Installation instructions are pretty simple, just replace your do_owhere and include the show_obj_location function in act_wiz.cpp. If you have made custom changes to your do_owhere you might want to review how this works instead of directly replacing it.


Revisions: 0
Rating: | Download | Comments(0)