|
reavor Novice
Joined: 31 Aug 2001 Posts: 48 Location: USA
|
Posted: 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 ** |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
reavor Novice
Joined: 31 Aug 2001 Posts: 48 Location: USA
|
Posted: 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 ** |
|
|
|
|
|