item lookup

A forum for sharing CFG/Bind snippets

Moderator: MacroQuest Developers

dark3d
orc pawn
orc pawn
Posts: 14
Joined: Thu Apr 14, 2005 6:27 pm
Contact:

item lookup

Post by dark3d » Sat May 06, 2006 5:29 pm

I know i'm missing something horribly obvious..

Code: Select all

// autoexec.cfg 

/declare itemlookup global
/custombind add lookupitem
/custombind add lookup
/custombind set lookupitem /www everquest.allakhazam.com/db/searchdb.html?iname=${itemlookup}
/custombind set lookup itemlookup
/bind lookup ?

is there a way to parse text to replace the spaces in item names with +?

any help is greatly appreciated.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Sat May 06, 2006 6:35 pm

use lucy and search for id maybe

dark3d
orc pawn
orc pawn
Posts: 14
Joined: Thu Apr 14, 2005 6:27 pm
Contact:

Post by dark3d » Sat May 06, 2006 7:49 pm

well I was sort of going about it all wrong.. creating an alias like

/alias /lookup /www everquest.allakhazam.com/db/searchdb.html?iname=

then using:

/lookup itemname

was a much simpler solution, however I still end up with a leading space I cant figure out how to trim out