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
xenothought
Beginner


Joined: 16 Sep 2002
Posts: 11
Location: USA

PostPosted: Mon Sep 16, 2002 3:51 am   

Database scripting problem
 
Ok I'm trying to set it up so that I can script items into the database...I have a lot of it done but I'm stumped on other parts...heres what the item looks like.

Object 'Dragon Flame', Item type: WEAPON
Original owner: ashd
Can be worn on: TAKE WIELD
Item is: NOBITS
Weight: 12, Value: 100000, Rent: 10000, Level: 15
Damage Dice is '8D3' for an average per-round damage of 16.0.

Affects: WIS +1
INT +2
CON +1

Spelleffects: fireball
flamestrike


ok so I got everythign but the affects, and SpellEffects to log into a var and send to the Dbase...but I'm not sure how to do the multipleline stuff...any ideas?

hello there.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Sep 16, 2002 5:56 am   
 
Have a look here for a like example.

Idea is to identify the first line then log everything till you get a null line.

Ton Diening



Object 'Dragon Flame', Item type: WEAPON
Original owner: ashd
Can be worn on: TAKE WIELD
Item is: NOBITS
Weight: 12, Value: 100000, Rent: 10000, Level: 15
Damage Dice is '8D3' for an average per-round damage of 16.0.
<null line
Affects: WIS +1
INT +2
CON +1
<null line
Spelleffects: fireball
flamestrike
<null line
<null line
Reply with quote
xenothought
Beginner


Joined: 16 Sep 2002
Posts: 11
Location: USA

PostPosted: Mon Sep 16, 2002 3:06 pm   
 
ok I have it logging everything up to the spell effects...how do I log those multiple lines? The Affects it says Affects: before it...but Spelleffects: is only one and then puts more under it...how would I go about capturing that?

hello there.
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