The mud I play on allows for adding stats to eq, up to a set "max_enchant" level using tokens.
this causes many pieces of eq to have multiple lines of the same stat.
to ease in determining the stats of an item, and what tokens can be applied to, someone created a script to report that. However it was for mudmaster. It has been altered for zmud as well. However, rather than switch clients, I thought I would try my hand at translating it for mushclient. I was already using jscript for the few things I have scripts for, so that is where I started.
The output from the mud from a lore on an item is:
Object 'held item' is type armor, extra flags burn_proof cache bejeweled.
Weight is 0, value is 11000, level is 1 (-14 To Wear).
Wear bits: take hold
Armor class is 500 pierce, 500 bash, 500 slash, and 500 vs. magic.
Affects dexterity by 4.
Affects strength by 3.
Affects wisdom by 3.
Affects constitution by 5.
Affects intelligence by 5.
Affects damage roll by 21.
Affects hit roll by 24.
Affects mana by 200.
Affects hp by 200.
Affects armor class by -493.
Affects damage roll by 21.
Affects hit roll by 24.
Affects mana by 250.
Affects hp by 250.
Affects save vs spell by -40.
Affects armor class by -493.
Affects mana by 300.
Affects hp by 300.
the basic output I would like to see from the plugin is:
CharacterName reports:
This item is NON-UNIQUE, and has the following properties:
Hps: 750 Mana: 750 Moves: 0AC: -986 Saves: -40 Hitroll: 48 Damroll: 42
CharacterName reports:
The following amounts may be applied via tokens:
250/250 work: Hps (0) / Mana (0) / Moves (500)
10/10 work: Hitroll (0) / Damroll (0)
AC work: AC (0)
Spellshield work: Saves (0)
CharacterName reports:
The following amounts of tokens would be used:
250/250: 1
10/10: 0
AC: 0
Spellshield: 0
Style: 1
Fireproof: 0
Gems: 0
so I made all my triggers and aliases, most all of them being send to script, and then used the plugin wizard to make it a plugin.
the first part is semi working, but when it gets to the math functions its not doing what i want.
I am getting this instead:
characternaem reports:
This item is NON-UNIQUE, and has the following properties:
Hps: 750 Mana: 750 Moves: 0AC: 0 Saves: 0 Hitroll: 48 Damroll: 42
charactername reports:
The following amounts may be applied via tokens:
250/250 work: Hps (500) / Mana (500) / Moves (500)
10/10 work: Hitroll (30) / Damroll (30)
AC work: AC (500)
Spellshield work: Saves (25)
charactername reports:
The following amounts of tokens would be used:
250/250: 3
10/10: 3
AC: 2
Spellshield: 1
Style: 1
Fireproof: 1
Gems: 1
the next post(s) contain the plugin as it is now.
If anyone can help I would be grateful.
this causes many pieces of eq to have multiple lines of the same stat.
to ease in determining the stats of an item, and what tokens can be applied to, someone created a script to report that. However it was for mudmaster. It has been altered for zmud as well. However, rather than switch clients, I thought I would try my hand at translating it for mushclient. I was already using jscript for the few things I have scripts for, so that is where I started.
The output from the mud from a lore on an item is:
Object 'held item' is type armor, extra flags burn_proof cache bejeweled.
Weight is 0, value is 11000, level is 1 (-14 To Wear).
Wear bits: take hold
Armor class is 500 pierce, 500 bash, 500 slash, and 500 vs. magic.
Affects dexterity by 4.
Affects strength by 3.
Affects wisdom by 3.
Affects constitution by 5.
Affects intelligence by 5.
Affects damage roll by 21.
Affects hit roll by 24.
Affects mana by 200.
Affects hp by 200.
Affects armor class by -493.
Affects damage roll by 21.
Affects hit roll by 24.
Affects mana by 250.
Affects hp by 250.
Affects save vs spell by -40.
Affects armor class by -493.
Affects mana by 300.
Affects hp by 300.
the basic output I would like to see from the plugin is:
CharacterName reports:
This item is NON-UNIQUE, and has the following properties:
Hps: 750 Mana: 750 Moves: 0AC: -986 Saves: -40 Hitroll: 48 Damroll: 42
CharacterName reports:
The following amounts may be applied via tokens:
250/250 work: Hps (0) / Mana (0) / Moves (500)
10/10 work: Hitroll (0) / Damroll (0)
AC work: AC (0)
Spellshield work: Saves (0)
CharacterName reports:
The following amounts of tokens would be used:
250/250: 1
10/10: 0
AC: 0
Spellshield: 0
Style: 1
Fireproof: 0
Gems: 0
so I made all my triggers and aliases, most all of them being send to script, and then used the plugin wizard to make it a plugin.
the first part is semi working, but when it gets to the math functions its not doing what i want.
I am getting this instead:
characternaem reports:
This item is NON-UNIQUE, and has the following properties:
Hps: 750 Mana: 750 Moves: 0AC: 0 Saves: 0 Hitroll: 48 Damroll: 42
charactername reports:
The following amounts may be applied via tokens:
250/250 work: Hps (500) / Mana (500) / Moves (500)
10/10 work: Hitroll (30) / Damroll (30)
AC work: AC (500)
Spellshield work: Saves (25)
charactername reports:
The following amounts of tokens would be used:
250/250: 3
10/10: 3
AC: 2
Spellshield: 1
Style: 1
Fireproof: 1
Gems: 1
the next post(s) contain the plugin as it is now.
If anyone can help I would be grateful.