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
reavor
Novice


Joined: 31 Aug 2001
Posts: 48
Location: USA

PostPosted: Fri Feb 08, 2002 12:03 pm   

5.55 Database Help needed (newbie)
 
hi,
I am trying to setup a small database for mobs that i kill. I have setup a trigger to
look like this when a mob is killed.
------------ old wizard is Level 129

what i want to do is Capture the mob name and then capture the level of the mob my question is... how do i get started, i am almost clueless to start and the helpfiles are a bit more then i understand. ;( Any help getting started would be greatly appreciated.



- Reavor
aardwolfmud.org 4010
** Happy 5th Aardwolf **
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Feb 08, 2002 12:58 pm   
 
First, you must create the datbase in the database module and let zMUD what field it will have, the names of the different fields and what type of data each field will contain. Seems like you will only need two fields - one for the mob name, and one for the level. I will assume that they are called name and level respectively.

Now, you create a trigger to get that information and use the #NEW command to add it to the database:
#TRIGGER {------------ (*) is Level (%d)} {#NEW "" {Name="%1"|Level=%2}}

Note: The database must be open for this to work.

Kjata
Reply with quote
reavor
Novice


Joined: 31 Aug 2001
Posts: 48
Location: USA

PostPosted: Mon Feb 11, 2002 4:46 pm   
 
hi,
Thanks so much that helped me out quite a bit, i had one other question *snicker..
i need to setup a check in that that if the mob name already exists it won't add it again.

I found the %find(mobname) but not sure how to set it up (of couse) the help files aren't very clear :(

- Reavor
aardwolfmud.org 4010
** Happy 5th Aardwolf **
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