Thread: Changing shop currency

Results 1 to 6 of 6
  1. #1 Changing shop currency 
    Registered Member
    Join Date
    Apr 2009
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    I use emulous, and i have never done this before


    How would i make a shop that takes assault points


    i already have assault coded 100% but i need the shop

    Nothing fancy, just a regular shop that uses assaultpoints instead of gold


    shopid = 2

    ...requested by .Zach


    Code:
    		if (Server.shopHandler.ShopSModifier[c.myShopId] > 1) {
    			for (int j = 0; j <= Server.shopHandler.ShopItemsStandard[c.myShopId]; j++) {
    				if (removeId == (Server.shopHandler.ShopItems[c.myShopId][j] - 1)) {
    					IsIn = true;
    					break;
    				}
    			}
    		} else {
    			IsIn = true;
    		}
    		if (IsIn == false) {
    			c.sendMessage("You can't sell "+c.getItems().getItemName(removeId).toLowerCase()+" to this store.");
    		} else {
    			int ShopValue = (int)Math.floor(getItemShopValue(removeId, 1, removeSlot)/2);
    			String ShopAdd = "";
    			if (ShopValue >= 1000 && ShopValue < 1000000) {
    				ShopAdd = " (" + (ShopValue / 1000) + "K)";
    			} else if (ShopValue >= 1000000) {
    				ShopAdd = " (" + (ShopValue / 1000000) + " million)";
    			}
    			c.sendMessage(c.getItems().getItemName(removeId)+": shop will buy for "+ShopValue+" coins"+ShopAdd);
    		}
    	}


    ROFL!!
    Reply With Quote  
     

  2. #2  
    Community Veteran

    .Zach's Avatar
    Join Date
    Nov 2006
    Age
    29
    Posts
    1,852
    Thanks given
    40
    Thanks received
    50
    Rep Power
    613
    Look for like
    Code:
    Shop will buy for
    and post that here.
    Reply With Quote  
     

  3. #3  
    Rune-Search
    Guest
    Are assault points from a mini-game? Can't remember, but I think it's from Barbarian assault.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2009
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    bumpsdgwgweg


    ROFL!!
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2009
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Hello, please


    ROFL!!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2009
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Please HELP!


    ROFL!!
    Reply With Quote  
     


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
  •