give me the code....
|
I am using delta atm, and for the pk points shop, when I value the item, I want it to say "This item is worth .... Pk Points" instad of coins.
How i do it.
kthxbai
give me the code....
search for interfaceID == 3900
change the shop id to your pk point shop.Code:else if (interfaceID == 3900) { // Show value to buy items int ShopValue = (int) Math.floor(GetItemShopValue(removeID, 0,removeSlot)); String ShopAdd = ""; if ((ShopValue >= 1000) && (ShopValue < 1000000)) { ShopAdd = " (" + (ShopValue / 1000) + "K)"; } else if (ShopValue >= 1000000) { ShopAdd = " (" + (ShopValue / 1000000) + " million)"; } if (MyShopID == 44) { sM(getItemName(removeID)+": currently costs "+ShopValue+" points"+ShopAdd); } else { sM(getItemName(removeID)+": currently costs "+ShopValue+" coins"+ShopAdd); } }
no. i mean everything works fine. but when i right click and value it, i wanan change it so this item is worth blah blah pk points not coins..
The person above you already posted the right code.
Just add:
Code:if (MyShopID == IDHERE) { sM(getItemName(removeID)+": currently costs "+ShopValue+" PK points"+ShopAdd); }
thanks guys but not both the coins and pk points show when you value the item. how do i remove the coins one.
Code:if(ShopID != YOURPKSHOP) { sM(getItemName(removeID)+": currently costs "+ShopValue+" coins"+ShopAdd); }
this is the current code:
my shop id is 6. when i value the item, both the value of pk points and coins come out. i wanna remove the coins one. thanksCode:} else if (interfaceID == 3900) { // Show value to buy items int ShopValue = (int) Math.floor(GetItemShopValue(removeID, 0,removeSlot)); String ShopAdd = ""; if ((ShopValue >= 1000) && (ShopValue < 1000000)) { ShopAdd = " (" + (ShopValue / 1000) + "K)"; } else if (ShopValue >= 1000000) { ShopAdd = " (" + (ShopValue / 1000000) + " million)"; } if (MyShopID == 6) { sM(getItemName(removeID)+": currently costs "+ShopValue+" PK Points."+ShopAdd); } else { sM(getItemName(removeID)+": currently costs "+ShopValue+" coins."+ShopAdd); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |