Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
GonzoMojo
Newbie


Joined: 25 Jul 2002
Posts: 3

PostPosted: Wed Jun 11, 2003 11:23 pm   

EQ Database Help....
 
I've been trying to figure out how to do this properly, been trying for about 2 days now. Best I've gotten is partial entry, the worst has been reinstalling ZMUD.

Here's the Identification Output from the mud I play on:

You recite a scroll of identify which dissolves.
You feel informed:

Trash Identified: a coil of rope
Object is: Identified
Weight: 25, Value: 18


You recite a scroll of identify which dissolves.
You feel informed:

Weapon Identified: the Wolverine's claw
Damage Dice is '4D4'
Affects: Hit Points By -20
Affects: Saving-Throw vs. Paralysis By 2
Object is: Magical Identified
Weight: 5, Value: 22356


You recite a scroll of identify which dissolves.
You feel informed:

Armor Identified: a full armor torso plate
AC-apply is 10
Damage-apply is 0
Object is: Identified
Weight: 30, Value: 53460


You recite a scroll of identify which dissolves.
You feel informed:

Light Identified: a sun spot
Affects: Mana By 5
Affects: Hit Points By 5
Object is: Magical Identified
Weight: 2, Value: 9900



You recite a scroll of identify which dissolves.
You feel informed:

Food/Water Identified: some iron rations
Object is: Identified
Weight: 1, Value: 24

What I was wanting was to have these fields:
Type
IDName
DamageDice
ACApply
DAMApply
HitApply
Affects1
Affects2
ObjectIs
Weight
Value

I can get the number values everytime on AC-Apply, Weight, and Value. But I'm having trouble capturing Type and Name, plus I can't figure out how to capture remaining line info, like Affects: Mana by 5.

Thanks for any help....
Reply with quote
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Thu Jun 12, 2003 12:29 am   
 
I once had the same idea and I found this.

http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=2164&FORUM_ID=29&CAT_ID=1&Topic_Title=Realms+of+Despair+%2D%2D+Equipment+Database+Script&Forum_Title=Finished+MUD+Scripts.

I'm not going to try explain what to do because I don't really understand all of it, but I have something that works for me that started with this.

Good Luck

Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!

RockyMud: Sometimes, life needs to be a little Rocky.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jun 12, 2003 12:40 am   
 
You didn't provide a name for the record-variable so I used @IDData.
#TR {^(%x) Identified: (*)} {#ADDK IDData Type {%1};#ADDK IDData IDName {%2}}
#TR {^Damage Dice is '(%a)'} {#ADDK IDData DamageDice {%1}}
#TR {^AC-apply is (%n)} {#ADDK IDData ACApply {%1}}
#TR {^Damage-apply is (%n)} {#ADDK IDData DAMApply {%1}}
#TR {^Hit-Apply is (%n)} {#ADDK IDData HitApply {%1}}//No pattern given, I guessed
#TR {^Affects: (*)} {#ADDK IDData Affects1 {%1}}
#COND {^Affects: (*)} {#ADDK IDData Affects2 {%1}} {Within|Param=1}
#TR {^Object is: (*)} {#ADDK IDData ObjectIs {%1}}
#TR {^Weight: (%d), Value: (%d)} {#ADDK IDData Weight {%1};#ADDK IDData Value {%2}}

LightBulb
Advanced Member
Reply with quote
GonzoMojo
Newbie


Joined: 25 Jul 2002
Posts: 3

PostPosted: Thu Jun 12, 2003 1:31 am   
 
hehe....how the heck do i right the variable @IDData to the EQData Database?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jun 12, 2003 1:34 am   
 
Assuming EQData is the current database
#NEW All @IDData

LightBulb
Advanced Member
Reply with quote
GonzoMojo
Newbie


Joined: 25 Jul 2002
Posts: 3

PostPosted: Fri Jun 13, 2003 10:54 pm   
 
Thanks LightBulb....you are my hero
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net