look for a string "currently" or "currently costs" in your server folder and you you'll find it
|
when i value on item, which is worht points, it comes up fine but for some reason so does coins. this happens to my pk shop and tokkul shop as well. how do i fix?
ok. i dont know why the coins one always appears in the other currency shops my shop is id 46 btw
Code:if (MyShopID != 8 && MyShopID != 19) { if (playerItemsN[Slot] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(995, GetItemSlot(995), TotPrice2); addItem(itemID, 1); ShopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; ShopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[MyShopID]) { ShopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough coins for this item."); } } if (MyShopID == 46) { if (playerItemsN[Slot2] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(6529, GetItemSlot(6529), TotPrice2); addItem(itemID, 1); ShopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; ShopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[MyShopID]) { ShopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough points for this item."); } } if (MyShopID == 8) { if (playerItemsN[Slot2] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(6529, GetItemSlot(6529), TotPrice2); addItem(itemID, 1); ShopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; ShopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[MyShopID]) { ShopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough tokkul for this item."); } } } resetItems(3823); resetShop(MyShopID); UpdatePlayerShop(); return true; } return false; }
i put 46 as last one same thing. can u do it maybe i am doing something wrong :/
sorry i think gave the wrong code.. this is the one. i wanna make it so only 1 apers per shop. shop 46 is the diff currency 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 == 19) { sM(getItemName(removeID)+": currently costs "+ShopValue+" points"+ShopAdd); } else { sM(getItemName(removeID)+": currently costs "+ShopValue+" coins"+ShopAdd); } if (MyShopID == 8) { sM(getItemName(removeID) + ": currently costs " + ShopValue + " tokkul" + ShopAdd); } if (MyShopID == 46) { sM(getItemName(removeID) + ": currently costs " + ShopValue + " points" + ShopAdd); } } else if ((interfaceID >= 1119) && (interfaceID <= 1123)) { } break;
Wow other people are idiots.
Declare this.
Ok now go to your npc click code and add this for the shops that use points.Code:public boolean BuyingWithPoints = false;
Ok now go to the close button for the shops and add this.Code:BuyingWithPoints = true;
Ok now search currently costs.Code:BuyingWithPoints = false;
Then add this to above the coins one.
And under the coins one add this.Code:if (BuyingWithPoints == false) {
And now above the points one add this.Code:}
And under the points one add this.Code:if (BuyingWithPoints == true) {
Presto.Code:}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |