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


Joined: 10 Jun 2003
Posts: 7
Location: USA

PostPosted: Thu Jun 12, 2003 6:10 pm   

help with database script
 
hello.. i have been trying to find a script to automatically input item stats into the zmud database when i id the item.. i'm on sojourn 3.. i see some examples in this forum.. but they are for other muds.. now i am stupid with scripts and things like that.. i have tried to customize them for my mud.. but i cant get them to work.. is there any way you guys can help me customize one of these scripts to work on my mud? i can provide any info that you need.. i would greatly appreciate it.. thank you

Asaf

akrudo@optonline.net
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jun 13, 2003 12:13 pm   
 
Provide the info. Be sure to include sample MUD output of all possible item stats that you want to enter in the database, how you would prefer each stat to be stored, and any other information that might be helpful (like some particular line that always appears after viewing the stats of an item, or your prompt).

Kjata
Reply with quote
akrudo
Newbie


Joined: 10 Jun 2003
Posts: 7
Location: USA

PostPosted: Sat Jun 14, 2003 6:54 am   
 
actually the full names of the items dont appear in the id output.. but if
you can make it copy lets say exactly 'mace runed wicked' into the Object
line.. and create a blank name line above it that i can enter manually..
that way i can enter the names of the items myself.. and have the keywords
for the items there as well.. pretty spanky :)

ok we have the following stats.. STR, DEX, AGI, CHA, CON, POW, INT, WIS..
also we have SV_SPELL, SV_PARA, SV_ROD, SV_PETRI, SV_BREATH.. then there are
STR_MAX, CON_MAX, etc.. all these are under the effects area i believe..
with the HITROLL and DAMROLL...

we can have No-Cleric, No-Thief, No-Warrior, No-Mage... those are the 4
major class categories.. then it can be broken town to races or classes..
but instead of No<info> its Anti<info>.. so Anti-Invoker, Anti_Duergar.. etc

Then there are the following flags... NoBurn, NoLocate,NoDrop(sometimes
called cursed), Bless, Float, Magic, NoSummon, TWOHANDS, NOBITS, NOSLEEP..
all these are in capitals too...

the item type field says what it is.. though it wont say ring, necklace,
armor.... it will all be armor.. etc.. no dagger, sword, axe... all under
weapons.. potion.. staff.. container.. etc.. not sure of all of them..


oh yeah.. eq slots.. we have

worn on head an adamantine crown
worn on eyes a purple silk eyepatch
worn in ear a tiny rosewood disc
worn in ear a tiny rosewood disc
worn on face a glittering golden mask
worn around neck a malevolent darkstone amulet
worn around neck a holy symbol shaped like a beast head
worn on body some platemail of the forest
worn as quiver an eelskin quiver
worn about waist a thin girdle with a turquoise clasp
worn on arms a deep-blue set of sleeves
worn around wrist a silver band
worn around wrist an ivory bracelet
worn on hands talons of the raven
worn on finger a ring of eldritch fire
worn on finger a ring of eldritch fire
held a jewel-encrusted egg (here can be 'primary
weapon')
held a swirling orb of air (here can be either
'secondary weapon' or 'worn as shield')
worn on legs a pair of itchy knit gretwehrr legwarmers
worn on feet a pair of itchy knit gretwehrr slippers

Item can be worn on: WIELD, HOLD, etc.. i can find out the rest for you if
you need these.....

wrote:
> > Here is some output from my mud
> >
> >
> > You feel informed:
> > Object 'mace runed wicked', Item type: WEAPON
> >
> > Item will give you following abilities: NOBITS
> > Item is: MAGIC ANTI-GOOD NOSLEEP TWOHANDS NO-THIEF NO-MAGE NOBITS
> > Weight: 18, Value: 70000
> > Damage Dice is '8D4'
> > Can affect you as :
> > Affects : HITROLL by 3
> > Affects : DAMROLL by 4
> > Special Effects : Drowse
> >
> >
> >
> > < 820h/820H 152v/152V P: sit > You recite a scroll of identify which
> > turns
> > to dust in your hands.
> > You feel informed:
> > Object 'plate platemail forest moss', Item type: ARMOR
> > Item can be worn on: BODY
> > Item will give you following abilities: SENSE-LIFE
> > Item is: MAGIC ANTI-GOOD ANTI-EVIL NOBURN NO-THIEF NO-MAGE NOBITS
> > Weight: 18, Value: 80000
> > AC-apply is 18
> > Can affect you as :
> > Affects : HITPOINTS By 30
> > Affects : CON By 9
> > +=-'
> > You recite a scroll of identify which turns to dust in your hands.
> > You feel informed:
> > Object 'swirling orb air', Item type: ARMOR
> > Item can be worn on: HOLD
> > Item will give you following abilities: NOBITS
> > Item is: MAGIC NOBURN NO-WARRIOR NO-THIEF NO-MAGE NOBITS
> > Weight: 1, Value: 0
> > AC-apply is 0
> > Can affect you as :
> > Affects : HITPOINTS By 30
> > Affects : WIS_MAX By 4
> >
> >
> > < 820h/820H 152v/152V P: sit > You recite a scroll of identify which
> > turns
> > to dust in your hands.
> > You feel informed:
> > Object 'vial blue', Item type: POTION
> > Item can be worn on: HOLD
> > Item will give you following abilities: NOBITS
> > Item is: NOBITSNOBITS
> > Weight: 1, Value: 5512
> > Level 10 spells of:
> > sleep
> > vigorize light
> >
> >
> > < 820h/820H 152v/152V P: sit > You recite a scroll of identify which
> > turns
> > to dust in your hands.
> > You feel informed:
> > Object 'staff water gurgling dkr', Item type: STAFF
> > Item can be worn on: HOLD
> > Item will give you following abilities: NOBITS
> > Item is: MAGIC NO-WARRIOR NOBITS
> > Weight: 2, Value: 4000
> > Has 15 charges, with 5 charges left.
> > Level 30 spell of:
> > water breathing
> >
> > Item added to Database.
> > Variable Item removed.
> > < 820h/820H 152v/152V P: sit >
> >
> > These are classes
> >
> > Fighter Priest Rogue Magic-User Other
> > ======= ====== ===== ========== ======
> > Warrior Cleric Rogue Enchanter
> > Psionicist
> > Ranger Druid Bard Invoker
> > Paladin Shaman Battlechanter Elementalist
> > Anti-Paladin Necromancer
> > Dire Raider Illusionist
> >
> > These are races:
> >
> > Human, Barbarian, Drow Elf, Grey Elf, Half-Elf, Mountain Dwarf,
> > Duergar Dwarf, Gnome, Halfling, Ogre, Swamp Troll, Illithid, Orc and
> > Yuan-Ti.

I would like to keep the same fields in my dbase that are in the outputs.. and categories such as weapons, armors, potions, staves.. instead of rings, necklaces.. etc

I would be happy with just cutting and pasting whatever is in the output to the database.. what other info do u need..
Reply with quote
akrudo
Newbie


Joined: 10 Jun 2003
Posts: 7
Location: USA

PostPosted: Sun Jun 15, 2003 3:47 pm   
 
is there anyone that can help me with this??
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sun Jun 22, 2003 3:13 pm   
 
help you or do it for you? It seems more people want a quick fix than to learn, In the finished scripts forum there are two examples of hoe this can be done.

1) is by Charbal
2) is by megamog75

There might be others but These are very reliable.

now lets look at some of the questions you asked that this program should do and I will show you how you answered your own question.

___________________________________________
actually the full names of the items dont appear in the id output.. but if
you can make it copy lets say exactly 'mace runed wicked' into the Object
line.. and create a blank name line above it that i can enter manually..
_______________________________________________
so when you: mace runed wicked, you would like zmud tho ask or #prompt you for the full name?
___________________________________________________

#trigger {^You feel informed~:} {maybe turn on captue mode or class containing all the nessecary triggers}
#trigger {^Object ~'(*)~'~, item type~: (%w)} {#addkey newrecord {name="%1"|type=%2}}
#trigger {^Item will give you following abilities~: (*)} {#addkey newrecord {abilities="%1"}}
#trigger {^Item is~: (*)} {#addkey newrecord {properties="%1}}
#trigger {^Weight~: (%d)~, Value~: (%d)} {#addkey newrecord {lbs=%1|value=%2}}


get the idea.................

then your last trigger would be
:

#trigger {^$} {#new @newrecord}

Ofcorse all of this is talked about in the manual if you would just have read it.
Topic name: Creating New Records

megamog75
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
Reply with quote
akrudo
Newbie


Joined: 10 Jun 2003
Posts: 7
Location: USA

PostPosted: Wed Jul 02, 2003 3:49 pm   
 
i appreciate your help.. i've tried to read the manual.. it just makes no sense to me.. i'm a complete idiot with this stuff.. i cant understand even one thing that you posted.. no clue what it does.. how it affects zmud or the dbase.
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