Login
User Name:

Password:



Register

Forgot your password?
SmaugFUSS 1.8/1.9
Sep 21, 2024 5:04 am
By Elwood
Bug: char_check( )
Aug 31, 2024 12:27 am
By GatewaySysop
Bug: move_char( )
Aug 30, 2024 3:52 am
By GatewaySysop
Bug: spell_animate_dead
Aug 25, 2024 10:48 pm
By GatewaySysop
ROOM_NO_MAGIC Inconsistencies...
Jul 8, 2024 12:32 am
By GatewaySysop
Discord Websocket Server
Author: Khonsu
Submitted by: Khonsu
Mapout Fix
Author: Khonsu
Submitted by: Khonsu
Progfind command
Author: Khonsu
Submitted by: Khonsu
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
Users Online
CommonCrawl, Bing, AhrefsBot

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
492
3,803
19,665
608
TerranceMa

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