Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Feb 16, 2025 1:25 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
AFKMud 2.5.1
Author: AFKMud Team
Submitted by: Samson
Kayle's Weather Code for AFKMud
Author: Kayle
Submitted by: Samson
AFKMud 2.5.0
Author: AFKMud Team
Submitted by: Samson
SWFotEFUSS 1.5.2
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, AhrefsBot, Google, Bing

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
503
3,812
19,715
590
iasiney

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 127 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)