Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2008, 01:34 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

That is an AWESOME idea, CD! Genius! I am definitely gonna see if I can figure out how to do that lol. I also might increase the output max of finditem to higher than 20 unless anyone apposes. I think 50ish would be better. Oh, and I think an alias command of #fi would help a bit too. That is an easy little fix.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 12-08-2008, 06:57 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well, that was WAY easier than I thought it would be lol (took like 5 minutes to do). I am going to add this to the SVN right now

command.cpp - Replace the old itemsearch command with this (changes are in RED):
Code:
void command_itemsearch(Client *c, const Seperator *sep)
{
	if (sep->arg[1][0] == 0)
		c->Message(0, "Usage: #itemsearch [search string]");
	else
	{
		const char *search_criteria=sep->argplus[1];

		const Item_Struct* item = 0;
		if (Seperator::IsNumber(search_criteria)) {
			item = database.GetItem(atoi(search_criteria));
			if (item)
				c->Message(0, "  %i: %c%06X000000000000000000000000000000000000000%s%c",(int) item->ID,0x12, item->ID, item->Name, 0x12);
			else
				c->Message(0, "Item #%s not found", search_criteria);
			return;
		}
#ifdef SHAREMEM
		int count=0;
		//int iSearchLen = strlen(search_criteria)+1;
		char sName[64];
		char sCriteria[255];
		strn0cpy(sCriteria, search_criteria, sizeof(sCriteria));
		strupr(sCriteria);
		char* pdest;
		int32 it = 0;
		while ((item = database.IterateItems(&it))) {
			strn0cpy(sName, item->Name, sizeof(sName));
			strupr(sName);
			pdest = strstr(sName, sCriteria);
			if (pdest != NULL) {
				c->Message(0, "  %i: %c%06X000000000000000000000000000000000000000%s%c",(int) item->ID,0x12, item->ID, item->Name, 0x12);
				count++;
			}
			if (count == 50)
				break;
		}
		if (count == 50)
			c->Message(0, "50 items shown...too many results.");
		else
			c->Message(0, "%i items found", count);
#endif
	}
}
I am going to add the #fi alias for finditem as well. This command is awesome! Thanks CD for the idea lol. I don't know why no one thought of this before now!

EDIT: The more I play with this command, the more I love it! It's just so freakin cool! This is now in Revision 237. Lemme know how you like it, or if there are any changes/fixes that are needed.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 12-08-2008 at 03:18 PM..
Reply With Quote
  #3  
Old 12-08-2008, 11:25 AM
Zeice
Sarnak
 
Join Date: Oct 2008
Location: USA
Posts: 92
Default

I added those changes and I can't get it to work. Am I supposed to do something other than just save the file like compile it or anything?
Reply With Quote
  #4  
Old 12-08-2008, 01:08 PM
Furinex
Hill Giant
 
Join Date: Apr 2002
Location: Rochester, NY
Posts: 179
Default

UI creation might be lost for some, but Im in the process of incorporating a modified Bazaar UI window that will do the #itemsearch command and list more than 20. The max I seem I could get it to show is 50 atm, but im working on maxing that out. I will post UI files when I get this working, shouldnt take me more than a week, im Underway right now so I dont have my computer with me and I dont have the tools nessisary. Anyways, I'll post back with more info when I get back home.
__________________
U.S. Navy - Retired
17 Year EQ Veteran
Reply With Quote
  #5  
Old 12-08-2008, 04:31 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Quote:
Originally Posted by Zeice View Post
I added those changes and I can't get it to work. Am I supposed to do something other than just save the file like compile it or anything?
Yes, once you make that change, you need to compile it
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 12-26-2008, 03:53 AM
Furinex
Hill Giant
 
Join Date: Apr 2002
Location: Rochester, NY
Posts: 179
Default

Well I have an alpha of the bazaar window, im still out at sea (missed christmas :( ) but I should be back by new years, Im having issues uploading it from here... but here's what i've got so far. The window replaces ALT+K (Mp3 player) but it can replace any window you wish to specify (like the bandolier or whatever...Anyways, it opens just like the bazaar window, instead of "Find Trader", the button is replaced by "Summon Item". Ive also narrowed down the search paramiters so it looks for items by class, race, and all other specifications that you can do in the bazaar window. I will post this completed project when I get home. Later yall.
__________________
U.S. Navy - Retired
17 Year EQ Veteran
Reply With Quote
  #7  
Old 12-26-2008, 04:23 AM
Richardo
Banned
 
Join Date: Oct 2003
Location: Mattmecks Basement
Posts: 546
Default

I'll believe it when I see it. Hah-hah-hah.. :p
Reply With Quote
  #8  
Old 12-26-2008, 04:33 AM
Gonner
Fire Beetle
 
Join Date: Aug 2007
Location: Columbus Grove, Ohio
Posts: 22
Default

You can use the /Buyer window in the bazaar to see the stats of everything. Sadly though its not my number but by name.
__________________
The reason I talk to myself is because I am the only one whose answers I accept.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3