Thread: both currencies appear on value

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 both currencies appear on value 
    jack24
    Guest
    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?

    Reply With Quote  
     

  2. #2  
    AKA Edvinas
    Ed's Avatar
    Join Date
    Jun 2009
    Age
    31
    Posts
    4,501
    Thanks given
    523
    Thanks received
    512
    Rep Power
    2659
    look for a string "currently" or "currently costs" in your server folder and you you'll find it
    Reply With Quote  
     

  3. #3  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Put up the shop code so i can help you
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  4. #4  
    jack24
    Guest
    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;
    	}
    Reply With Quote  
     

  5. #5  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Lol ur suppos to but the 46 as the LAST ONE
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  6. #6  
    jack24
    Guest
    i put 46 as last one same thing. can u do it maybe i am doing something wrong :/
    Reply With Quote  
     

  7. #7  
    jack24
    Guest
    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;
    Reply With Quote  
     

  8. #8  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Delete sM(getItemName(removeID)+": currently costs "+ShopValue+" coins"+ShopAdd);
    }
    idk
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  9. #9  
    jack24
    Guest
    lol then it doesnt work anymore. i dont know why lol xD
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Mar 2009
    Age
    27
    Posts
    970
    Thanks given
    22
    Thanks received
    29
    Rep Power
    0
    Wow other people are idiots.

    Declare this.

    Code:
    public boolean BuyingWithPoints = false;
    Ok now go to your npc click code and add this for the shops that use points.

    Code:
    BuyingWithPoints = true;
    Ok now go to the close button for the shops and add this.

    Code:
    BuyingWithPoints = false;
    Ok now search currently costs.

    Then add this to above the coins one.

    Code:
    if (BuyingWithPoints == false) {
    And under the coins one add this.

    Code:
    }
    And now above the points one add this.

    Code:
    if (BuyingWithPoints == true) {
    And under the points one add this.

    Code:
    }
    Presto.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •