|
Magekraft Newbie
Joined: 21 Aug 2003 Posts: 3 Location: USA
|
Posted: Thu Aug 21, 2003 8:45 am
newbie help for zmud script thingy |
ok, first off, i know there is a link from another post, about this question im gonna ask, but that script is geared for another mud and i'm dumb when it comes to making scripts or programming in general--thus, i dont know how to reconfigure it to work with the mud i play.
here is the question: i'd like to make a trigger/alias that when i id something in the mud, it automatically puts that info into the database.
to give an example of what an identify looks like:
You feel informed:
Object 'belt soft fabric', Item type: ARMOR
Minimum Level: 100
Item is: GLOW HUM INVISIBLE ANTI-GOOD
Weight: 5, Value: 75000, Rent cost: 1
AC-apply is 0
Can affect you as :
Affects : SPELL AFFECT By BERSERK SNEAK
Affects : ARMOR By 50
Affects : BASH By 100
Affects : HIT-N-DAM By 6
Affects : HIT By 150
i dont care about weight/value/or rent cost...but everything else it lists i would like to be in the db.
if anyone would b willing to make it for me i would greatly appreciate it, or at least tell me how to do it...in a very basic, dumb way that is.. [:p]
feel free to email me for more info.
Thankx
Mk |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Thu Aug 21, 2003 8:08 pm |
here is the lin you were probably refering to, and yes it is written for another mud.
http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=2164
This is a question that is asked alot and the answer is pretty much the same = you should learn to do this it is part of the fun.
But just so you see how nice we are here is yours.....
(might have bugs)====shrug=====
#CLASS {equip_id}
#ALIAS store_data {#IF !%null( %find( @newRecord.Name, All, Name)) {#YESNO "A duplicate item already exists, add anyway?" {#NOOP} {#ABORT 1}};#PROMPT newRecord.Source "Source Mob or Shop?";#DBLOAD eq;#NEW All @newRecord;#DBRESET}
#VAR affects {ARMOR|BASH|HIT~-N~-DAM|HIT}
#TRIGGER {Object '(*)', Item type~: (%w)$} {#VAR newRecord %null %null equip_id;#ADDKEY newRecord Name {%1};#ADDKEY newRecord Kind %2;#TEMP eqidtemptrig {^$} {#T- eqidtemptrig;store_data}}
#TRIGGER {^Special properties: (*)$} {#LOOP %numwords( %1) {#IF %ismember( %word( {%1}, %i), @allRestrictions) {#ADDITEM newRecord.Restrictions %word( {%1}, %i)} {#ADDITEM newRecord.Properties %word( {%1}, %i)}}}
#TRIGGER {Minimum Level~: (%d)} {#ADDKEY newRecord Level %1}
#TRIGGER {Item is~: (*)} {#ADDKEY newRecord prop "%1"}
#TRIGGER {AC~-apply is (%d)$} {#addkey newrecord ac~- %1}
#TRIGGER {Affects : ({@affects}) By (*)} {#if %1=ARMOR {#addkey newrecord ar %2};#if %1=BASH {#addkey newrecord bash %2};#if %1=HIT~-N~-DAM {#addkey newrecord HD %2};#if %1=HIT {#addkey newrecord hit %2}}
#TRIGGER {Affects : SPELL AFFECT By (*)} {#addkey newrecord spaf %1}
#CLASS 0 |
|
|
|
Magekraft Newbie
Joined: 21 Aug 2003 Posts: 3 Location: USA
|
Posted: Thu Aug 21, 2003 8:27 pm |
thanks for the quick reply. It gives me something to start from, since there is more that I want to be added to it, and I will try to figure that out on my own.
|
|
|
|
Warrb Beginner
Joined: 20 Aug 2003 Posts: 10
|
Posted: Fri Aug 22, 2003 3:52 am |
bleh megamog75, mind helping me with mine, i don't understand the scripty thing but i want it...:
A mitrill long sword (sword)
----------------------------------------------------------------------------
Max Damage: 28 to 71 (average 49)
Your Damage: 22 to 57 (average 39)
Speed: 7.0 (5.5 for you)
Required level: 40
Wear location: Hold
Enchantment: (562/932)
Glorified by: Warrb
Size: Fine
Weight: 0.4 lb.
Crafted: Normal quality
Value: 0 gold
Main component: Mitrill
| Wearer turns invisible *
A thief vest (armor)
----------------------------------------------------------------------------
Defense: -5.0 AC, +83.0 DR
Required level: 37
Wear location: body
Condition: in good shape.
Enchantment: (0/616)
Weight: 42.0 lb.
Value: 75 gold
Main component: Bronze
| See invisibility | See hidden beings | +fire susceptability
| +1 strength | Bestows scrying *
*affects the item has |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Fri Aug 22, 2003 5:38 am |
Is that how your actuall appers?
copy and past hole thing form the moment you idendify till the end and yes I can help, But again you should lern it. |
|
|
|
Warrb Beginner
Joined: 20 Aug 2003 Posts: 10
|
Posted: Fri Aug 22, 2003 10:36 pm |
*A mitrill long sword (sword)
----------------------------------------------------------------------------
*Max Damage: 28 to 71 (average 49)
*Your Damage: 22 to 57 (average 39)
*Speed: 7.0 (5.5 for you)
*Required level: 40
*Wear location: Hold
*Enchantment: (562/932)
Glorified by: Warrb
*Size: Fine
*Weight: 0.4 lb.
*Crafted: Normal quality
*Value: 0 gold
*Main component: Mitrill
*| Wearer turns invisible
^ is how items look when you id them
*=what i want in db |
|
|
|
Magekraft Newbie
Joined: 21 Aug 2003 Posts: 3 Location: USA
|
Posted: Tue Aug 26, 2003 2:35 am |
ok..i tried cut/paste the sample script you made, all it did was giv me the prompt for "source mob or shop?", and thats it. i *tried* to get the hang of making the script on my own, but as i stated earlier i am dumb when it comes to this stuff. i never took a programming class, and i get confused with the various commands. if *anyone* could help, please please please let me know.
|
|
|
|
|
|