Login
User Name:

Password:



Register

Forgot your password?
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
CommonCrawl, DotBot, Bing, AhrefsBot, Yandex, Google

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
489
3,794
19,649
596
Elwood

Today's Birthdays
There are no member birthdays today.
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 23 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)