Guys.. Answer ffs
|
Hey Guys. I think i got my Zarpor Shop Editor Fixed
But now i changed shop prices, with the tool or manually in the prices.txt.
I compile it, or Just do it toug eclipse ( wich should auto maticly compile)
I go ingame , Go to my PKP Shop and My items still have thair OLD price. Not the new ones.My Shops also count in points ( Also shops that dont need points but coins) How do i change this? Points -> Coins
#1, Shop prices aint changing ingame, Need to get this fixed ( Maybe i have to change the prices some where else? )
#2 Changing The shops that have a payment value Points , Changing those to Coins.
Thanks in advance
EDIT: I went to ShopAssistant.java, Searched for my shop ID ( 25 ) Found the whole thing it had c.points, what should i change it to to have it to gold? ( coins)
Guys.. Answer ffs
remove the shopassistant code. if you want to edit the prices of the pkpoints they are in there simply change them I think it will be a return statement not sure actually will check.
I deleted the Code of the shop witht he id 25 ( barrows shop that counts with point insteed of coins ) It still shows as point.. even when i deleted the code. I also cant find prices in the shopassistent,
when its a pkp shop u need to set the pkp prices
Go to you shopassistans.java and search for
you should see something likepublic int getSpecialItemValue(int id) {
thats case (item ID):case 2460:
case 2462:
case 2464:
case 2466:
case 2468:
case 2470:
case 2472:
case 2474:
case 2476:
case 8936:
case 8938:
return 50;
return (pkp price);
this sets the price of the pkp item in shop
Yes i found that out allready. Now i just have to find out how to switch my barrows store from pkp to coins.
oh
well thats easy too,
again shopassistant.java, and search there for the shopID and delete everything u find. For example
my shop ID is 27 ( u find shop id in shops.cfg)
then search for
and deletec.myShopId == 27
if (c.myShopId == 27) {
handleOtherShop(itemID);
return false;
}else if(c.myShopId == 27) {
if (c.votePoints >= TotPrice2) {
if (c.getItems().freeSlots() > 0) {
buyDelay = System.currentTimeMillis();
c.votePoints -= TotPrice2;
c.getItems().addItem(itemID, 1);
Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) {
Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0;
}
} else {
c.sendMessage("You don't have enough space in your inventory.");
break;
}
} else {
c.sendMessage("You don't have enough Donor Points.");
break;
}
}Kinda easy, i hope i helped you.if (c.myShopId == 27) {
if (c.votePoints >= getSpecialItemValue(itemID)) {
if (c.getItems().freeSlots() > 0){
c.votePoints -= getSpecialItemValue(itemID);
c.getItems().addItem(itemID,1);
c.getItems().resetItems(3823);
}
} else {
c.sendMessage("You do not have enough Vote Points to buy this item.");
}
I did this, and it still counts in points..
If you want to make it easy on yourself just change the shop id and it'll be coins...
jelle if it still count in points, u did it wrong
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |