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


Joined: 12 Feb 2005
Posts: 2

PostPosted: Sat Feb 12, 2005 9:55 pm   

got a problem....
 
I wanna setup a kind of a script for running a database
for eq info.

I use the Lore command....

The output comes out:
You study the a wicked looking black mask very carefully
You know what this is!
Object 'wicked black mask' is type armor.
Extra flags glow.
Usable by all.
Weight is 5, value is 100, level is 10.
Armor class is 10 pierce, 10 bash, 10 slash, and 0 vs. magic.
Affects ENDUR by 1000.
Affects CON by 2.
Affects STR by 2.
Affects DEX by 2.
Affects WIS by 2.
Affects INT by 2.

or

You study the a pitch black breastplate with a golden flame on it very carefully
You know what this is!
Object 'black breastplate' is type armor.
Extra flags glow hum.
Usable by all.
Weight is 10, value is 100, level is 100.
Armor class is 45 pierce, 45 bash, 45 slash, and 45 vs. magic.
Affects HIT by 240.
Affects ENDUR by 120.


and I wanna learn how to add them to the database in
level
effect's
armor class

Id apriciate any kind of help I can get....

Thanx Very Happy
Reply with quote
spearhawk1969
Newbie


Joined: 12 Feb 2005
Posts: 2

PostPosted: Sun Feb 13, 2005 2:05 am   
 
This is what I got so far:

#CLASS {lore}
#TRIGGER {Object '(*)' is type (*).} {#ADDKEY db {Object name=%1|type=%2}}
#TRIGGER {You study the (*) very carefully} {#ADDKEY db {Name=%1}}
#TRIGGER {Affects (%w) by (%x).} {#ADDKEY db {%1=%2}}
#CLASS 0

but I do not know how to add or post that to the database in zmud so i can just open it and see it there....

Please help.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Feb 13, 2005 5:42 am   
 
Since you have triggers already you might want to just grab a through database script from the forums.

A quick search turned up this topic. http://forums.zuggsoft.com/phpbb/viewtopic.php?t=19453 It include the script and a discussion of some problem a user was having with it. In my opinion the script is the best because I wrote it and it does nifty things like: make sure the DB window is open, back store IDs if you don't have the window open. However it is rather hard to understand. The design goal I was aiming for was that a user could simply create triggers and setup the database then the script would handle the rest.

Another longer search will likely turn up more scripts, but I am just not finding them right now.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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