ignite wants to know what and how im doing what im doing in the mousepad maphack config to make things highlight different colours. thought id explain it to everyone.
ok. well first off let me tell you ignite. no "norm" didnt work. so im still suck on that. just to let everyone know, no one show'd me how to do this. took about a day of trial and error and just sorta reading the code and figureing it out.
i'll go ahead and copy my entire highlighting section from the config here. just FYI. its gotten pretty long. and then i'll explain how it all works..
Item Colours[Stamina Potion]: Red
Item Colours[Antidote Potion]: -1,-2
Item Colours[Thawing Potion]: -1,-2
Item Colours[Choking Gas Potion]: -1,-2
Item Colours[Rancid Gas Potion]: -1,-2
Item Colours[Strangling Gas Potion]: -1,-2
Item Colours[Exploding Potion]: -1,-2
Item Colours[Fulminating Potion]: -1,-2
Item Colours[Oil Potion]: -1,-2
Item Colours[Key]: Red
Item Colours[Scroll of Town Portal]: Red
Item Colours[Scroll of Identify]: Red
Item Colours[Tome of Town Portal]: Red
Item Colours[Tome of Identify]: Red
Item Colours[Arrows]: Red
Item Colours[Bolts]: Red
Item Colours[Mephistos Soulstone][1+]: -1,-2
Item Colours[Exceptional Armor][1]: -1,-2
Item Colours[Exceptional Armor][2]: -1,-2
Item Colours[Exceptional Armor][3]: -1,-2
Item Colours[Exceptional Armor][4]: -1,-2
Item Colours[Exceptional Weapons][1]: -1,-2
Item Colours[Exceptional Weapons][2]: -1,-2
Item Colours[Exceptional Weapons][3]: -1,-2
Item Colours[Exceptional Weapons][4]: -1,-2
Item Colours[Elite Armor][1]: -1,-2
Item Colours[Elite Weapons][1]: -1,-2
Item Colours[Ear]: -1,-2
Item Colours[Jewel]: Purple
Charm Colours[1+]: Purple
Rune Colours[1]: -1,-2
Rune Colours[2]: -1,-2
Rune Colours[Nef Rune]: Gold
Rune Colours[Amn Rune]: Gold
Rune Colours[Sol Rune]: Gold
Rune Colours[Shael Rune]: Gold
Rune Colours[Ko Rune]: Gold
Rune Colours[Lem Rune+]: Gold
Rejuv Pot Colours[1+]: Gold
Healing Pot Colours[1]: -1,-2
Healing Pot Colours[2]: -1,-2
Healing Pot Colours[3]: -1,-2
Mana Pot Colours[1]: -1,-2
Mana Pot Colours[2]: -1,-2
Mana Pot Colours[3]: -1,-2
Gem Colours[2]: -1,-2
Gem Colours[3]: -1,-2
Gem Colours[4+]: Gold
Good Gold Number: 3000
Good Gold Colour: Gold
Poor Gold Colour: -1,-2
well there it all is.
1,-2 makes things invisible when holding down ALT. it wont even let you pick things up that you KNOW are on the ground, even when you click right where it is. cause its invisible.
the color names are obvious. it changed the color when their on the ground as well as the color of the words when you pick it up and look at it
the numbers inside the brackets. correspond to types of the items that their in the same line as. i'll give an example.
minor health pots would be a 1
lesser health pots would be 2
health pots 3
greater pots 4
super pots 5
same thing for the mana pots. for rejuv's since theirs only 2 kinds they are 1 and 2 from small to large.
also you can do any of these by the numbers or you can put in the actual word for it. i use numbers cause its less to type and i dont have to guess what mouse called things as much. like instead of typing 1 for a small charm you could type out [small charm]:
charms are 1 for small, 2 for medium and 3 for grand.
runes go from 1-? 1 being el i think. whatever the lowest lvl one is.
as for the armor/weapons. 1 corresponds to crude items of all kinds. 2 are normal items, 3 are superior items, 4 are magical items. i didnt test out what 5,6,7 are. but they are rare, set, unique. but as i said.. i didnt test them so i dont know which one is set to which number.
as for gems. works just like the mana pots.
1 is chipped
2 is flawed
3 is regular
4 is flawless
and 5 is perfect.
now as for the +'s next to some of the numbers. that will make all of that number and any items obove that number highlighted.
so take this line:
Gem Colours[4+]: Gold
this will make all flawless gems (which are number 4) and above. since the only thing above it is perfect. it will highlight all flawless and perfect gems to the set color. which i have it set to gold
one thing to keep in mind when doing this. make sure you dont have a duplicate somewhere else set to a default.. like this:
Skull Colours[1+]: -1
if you leave this line in the code and you have the Gem Colours[4+]:Gold it will highlight all flawless and perfect gems except skulls.
what i did is i left those specified gem kind lines in so that i know they can be seperated by gem type if i choose to do that at a later time but i put // in front of them all so that it ignores those lines for now. like this:
//Amethyst Colours[1+]: -1
//Topaz Colours[1+]: -1
//Sapphire Colours[1+]: -1
//Emerald Colours[1+]: -1
//Ruby Colours[1+]: -1
//Diamond Colours[1+]: -1
//Skull Colours[1+]: -1
putting // in front of any line will make the proggy skip that line. its usefull in case your messing with something and instead of deleteing a line and then possibly having to retype it you can just // it. its also handy if you want to give yourself notes in the proggy on what your doing, in case you forget what that section of code is supposed to be doing or what certain numbers/characters mean
oh yeah.. the -1 is the default for everything. so if you want it back to the way D2 has it originally. you can either delete the line. // the line or set it to -1
so far this script has everything set the way i want it except for normal items. cause i dont know what mouse calls his normal items in this proggy.
everything else is assigned. all the potions, arrows, keys, scrolls etc.
sorry for this being so long.. but i didnt wanna have to explain it a dozen times to a dozen people.. thought id do it once the right way the first time.
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)