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
kiraile
Newbie


Joined: 31 Jan 2003
Posts: 4
Location: Germany

PostPosted: Sun Oct 28, 2007 2:04 pm   

database help
 
Hi all

I am having a little trouble scripting my database. i want to catch the selling/buying price and the commodity being traded.
from there i want to send them to a database. there are many different exchanges but they all output the same way. i have managed to capture the output, gag and redirect to a child window. i have also managed to get the database working.
what i am unable to figure out is how to replace the buy/sell prices without having a new entry put in the database. i have a room script that sets the exchange name and location and would like to have a seperate db for each exchange that would load and begin updating prices when i enter the exchange.
if it helps i can supply what i already managed to do but it isnt pretty, my first time trying something like this.

mud output:

+++ The exchange display shows the prices for Simulations +++
+++ Exchange will buy 75 tons at 348ig/ton +++
+++ The exchange display shows the prices for Soya +++
+++ Exchange has 700 tons for sale +++
+++ Offer price is 187ig/ton for first 75 tons +++
+++ The exchange display shows the prices for Spices +++
+++ Exchange has 700 tons for sale +++
+++ Offer price is 551ig/ton for first 75 tons +++
+++ The exchange display shows the prices for Studios +++
+++ Exchange will buy 75 tons at 424ig/ton +++

hope someone can help
Kir
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sun Nov 04, 2007 3:04 am   
 
Post what code you have and I'll give it a gander.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
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