prices notepad 1st number is the id 2nd number is shop buy price
just assuming your using project insanity
|
item = 4151 Abyssal_whip A_weapon_from_the_abyss. 1 2000000 3
Alright, lets say I want to have the whip in one store, for 2m and then have it in another shop for 1 tokkul, So it would read from the "1" nstead of "2m".. How would I do this?
I have no clue what so ever..
prices notepad 1st number is the id 2nd number is shop buy price
just assuming your using project insanity
Well you could just over-ride the item file inside your buying method for the specific shop by having something like:
or put the items from the tokkul shop in an array:Code:if (itemId == 4151) { price = 1; }
or something along those lines...Code:int[][] tokkulShop = {{4151, 1}, {1050, 2000}} etc. for (int i = 0; i < tokkulShop.length; i++) { if (itemId == tokkulShop[i][0]) { price = tokkulShop[i][1]; } }
or you could completely edit your item information loading technique and have a tokkul price included in the items file, but that could take a while.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |