Morague Beginner
Joined: 16 Dec 2000 Posts: 27
|
Posted: Sun Apr 01, 2001 2:41 am
Eq ID for Avatar MUD part2 |
#TRIGGER {Modifies constitution by &{conp} continuous.$} {#MATH con @con+@conp} "identify"
#TRIGGER {Modifies dexterity by &{dexp} continuous.$} {#MATH dex @dex+@dexp} "identify"
#TRIGGER {Modifies save vs %w by &{svsp} continuous.$} {#MATH svs @svs+@svsp} "identify"
#TRIGGER {Modifies armor class by &{acp} continuous.$} {#MATH ac @ac+@acp} "identify"
#TRIGGER {Modifies hp by &{hpdbp} continuous.$} {#MATH hpdb @hpdb+@hpdbp} "identify"
#TRIGGER {Modifies mana by &{manadbp} continuous.$} {#MATH manadb @manadb+@manadbp} "identify"
#TRIGGER {Modifies moves by &{movedbp} continuous.$} {#MATH movedb @movedb+@movedbp} "identify"
#TRIGGER {$} {#ADDKEY Item {ItemSpell=@ItemSpell|Hp=@hpdb|Mana=@manadb|Moves=@movedb|DR=@dr|HR=@hr|Con=@con|Wis=@wis|Str=@str|Dex=@dex|Int=@int|AC=@ac|Svs=@svs|Name=@Namedb};#loopview {All} {#if (&Name = @Namedb) {#T- identify;#abort 1}};#if (@type="weapon") {#ADDKEY Item {Type="Weapon"};#NEW Weapon @Item};#if (@type="armor") {#ADDKEY Item {Type="Armor"};#NEW Armor @Item};#if (@type="potion") {#ADDKEY Item {Type="Potion"};#NEW Potion @Item};#if (@type="light") {#ADDKEY Item {Type="Light"};#NEW Light @Item};#if (@type="scroll") {#ADDKEY Item {Type="Scroll"};#NEW Scroll @Item};#if (@type="rogue tool") {#ADDKEY Item {Type="Rogue Tool"};#NEW Rogue Tool @Item};#if (@type="wand") {#ADDKEY Item {Type="Wand"};#NEW Wand @Item};#if (@type="staff") {#ADDKEY Item {Type="Staff"};#NEW Staff @Item};#if (@type="treasure") {#ADDKEY Item {Type="Treasure"};#NEW Treasure @Item};#if (@type="ticket") {#ADDKEY Item {Type="Ticket"};#NEW Ticket @Item};#if (@type="key") {#ADDKEY Item {Type="Key"};#NEW Key @Item};#if (@type="trash") {#ADDKEY Item {Type="Trash"};#NEW Trash @Item};#if (@type="furniture") {#ADDKEY Item {Type="Furniture"};#NEW Furniture @Item};#if (@type="container") {#ADDKEY Item {Type="Container"};#NEW Container @Item};#if (@type="drink container") {#ADDKEY Item {Type="Container"};#NEW Container @Item};#if (@type="poison") {#ADDKEY Item {Type="Poison"};#NEW Poison @Item};#if (@type="boat") {#ADDKEY Item {Type="Boat"};#NEW Boat @Item};#if (@type="food") {#ADDKEY Item {Type="Food"};#NEW Food @Item};#if (@type="pill") {#ADDKEY Item {Type="Pill"};#NEW Pill @Item};#T- identify} "identify"
#TRIGGER {^'&{ItemSpellp}' continuous.$} {#MATH ItemSpell @ItemSpell+@ItemSpellp} "identify"
I've tested this thoroughly.
Morague |
|