|
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: Sat Apr 24, 2004 5:14 am
Matching wierd EQ descs |
can anyone match both these in a single zmud trig and put text after Desc: in a variable??
Desc: <*><|Modi's Courage|><*>
or
Desc: [****NO-PK****] Leggings of l33tn3$$
trying to auto-pop database and the special characters in eq
keep messing with %* or %1 or &eqdesc...
what pattern do i use? |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Sat Apr 24, 2004 6:02 am |
#TRIGGER {Desc: (*)} {VARIABLE = "%1"}
Ok that will store them correctly, now the ones with a | in them will be displayed by zmud in the settings as a list but this isn't a big deal, they'll still be able to be used as the complete string they are.
Now when you want to display the value in the variable use %quote(@VARIABLE)
Jesse |
|
|
|
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: Sat Apr 24, 2004 7:03 am |
found a partial solution using %expand or %quote:
Trigger pattern: ^| Desc%s:%s&%*item_realname%s|
#show %expand(@item_realname,1)
shows
<*><|Modi's Courage|><*>
#ADDITEM item_full_info %expand(@item_realname,1)
or
#ADDITEM item_full_info %quote(@item_realname)
adds
* Sash of Jord *
how do i make it work with #ADDITEM? :( |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Sat Apr 24, 2004 9:55 am |
The string contains | characters and they are reserved characters for zMUD's string lists.
I think it would be much simpler to use database-record variables to store these descs, especially when the information is going to be transferred into the database. However, that was not a simple matter either. I came across a problem with EQ descs containing ()s around them eg. (-)Magician's Restitution(-), (Green Aura), but it was resolved in another thread http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=15895. |
|
|
|
|
|