PDA

View Full Version : How to add colors to NewAutoColor.scar



Shuttleu
07-12-2010, 07:52 PM
This tutorial is for the people who want to help by adding new colors to NewAutoColor.scar

Now i would just like to say that this tutorial may seem a bit long winded but it is the way i have written it out, once you have read it it wont seem as long

If you do not know what NewAutoColor.scar is then you can find out from here http://villavu.com/forum/showthread.php?p=723545

Now if you want to add a new color to NewAutoColor.scar then you will need to find if it has a relationship to the other symbols that are already there.

To find out if it has a relationship then you can do the following

NOTE: you can use the Large Map if you want as it has the same colors as the MM

i will be using the grey rock in this tutorial, but you can use any symbol that is already in the include.

Get the color of the grey rock on the MM and then the color of the symbol you want to add

So for example the grey rock may be 5133245 and the new symbol might be 12543

Reload the client and get the colors again

This time the grey rock may be 5133046 and the new symbol might be 12344

This is all the colors you will need to get from RS

Now do the follwing to seew if there is a relationship between the two symbols

subtract the color from the new symbol from the the color of the grey rock on both of them
12543-5133245=-5120702
12344-5133046=-5120702

If both numbers match then there is a relationship for that symbol

Now you can add the color to the rest of the list

The difference between the two colors is -5120702

So get the color of the grey rock in NewAutoColor.scar which is 5133385

And add the two numbers together
5133385+-5120702=12683

Now you know that the color you need to add is you can go ahead and add it to NewAutoColor.scar

There are two places you need to change in NewAutoColor.scar

First of all you need to add the color to the list of constants
So just add the line
ref_The_New_Color = 12683;//*
And add the const name to the procedure called NAC_LoadtColors
Simply edit the TIntegerArray called Colors
So by adding the color above it would be like

Colors := [ref_Bank, ref_Grey_Rock, ref_Anvil, ref_Magic_Shop,
ref_Brown_Rock, ref_Clothes_Shop, ref_Quest, ref_Mining_Spot,
ref_Plate_Shop, ref_General_Store, ref_Transport,
ref_Green_Palm, ref_Fishing_Spot, ref_Farming_Spot,
ref_Guide, ref_Cactus, ref_Cooking_Range, ref_Green_Tree,
ref_Training_Dummy, ref_The_New_Color];


Good luck on finding colors that aren't already in the include :p

Let me know what you think

~shut

Wizzup?
07-13-2010, 09:16 PM
Does it still work? :)

Shuttleu
07-13-2010, 09:17 PM
as far as i know, yes

~shut

EDIT: ima now check

Wizzup?
07-14-2010, 10:18 PM
And?

Shuttleu
07-14-2010, 10:33 PM
sorry forgot to update

there is still a relation between ladder colors, road colors, rock colors etc
but as im sure you have seen in another thread of mine, symbols are now satic

~shut

EDIT: http://villavu.com/forum/showthread.php?t=57890