Thread: [PI] Mage Arena

Results 1 to 6 of 6
  1. #1 [PI] Mage Arena 
    Registered Member
    Join Date
    Dec 2010
    Posts
    50
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    When i go to the mage arena, and kill the sara, zammy and guthix mage people, it gets my mage arena killcount up, which is good. But when i go to spend my points on the infinty robes, the robes arent for sale with mage points, you have to buy them with coins. So how do i change it so that the shops items can only be bought with mage arean points, not coins.
    Reply With Quote  
     

  2. #2  
    Registered Member amfibija's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    302
    Thanks given
    93
    Thanks received
    19
    Rep Power
    22
    Code:
    if (c.myShopId == 18) {
    				if (c.magePoints >= getSpecialItemValue(itemID)) {
    					if (c.getItems().freeSlots() > 0){
    						c.pcPoints -= getSpecialItemValue(itemID);
    						c.getItems().addItem(itemID,1);
    						c.getItems().resetItems(3823);
    					}
    				} else {
    					c.sendMessage("You do not have enough Mage points to buy this item.");			
    				}
    
    			}
    Reply With Quote  
     

  3. #3  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Quote Originally Posted by amfibija View Post
    Code:
    if (c.myShopId == 18) {
    				if (c.magePoints >= getSpecialItemValue(itemID)) {
    					if (c.getItems().freeSlots() > 0){
    						c.pcPoints -= getSpecialItemValue(itemID);
    						c.getItems().addItem(itemID,1);
    						c.getItems().resetItems(3823);
    					}
    				} else {
    					c.sendMessage("You do not have enough Mage points to buy this item.");			
    				}
    
    			}
    lol I need this too. Where does this go? I'm not to good with shops :trollface:


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2010
    Posts
    50
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    shopAssistant.java
    Reply With Quote  
     

  5. #5  
    Registered Member amfibija's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    302
    Thanks given
    93
    Thanks received
    19
    Rep Power
    22
    in public void handleOtherShop

    And you should have

    Code:
    if (c.myShopId >= 17) {
    				handleOtherShop(itemID);
    				return false;
    			}
    in buyItem boolean
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2010
    Posts
    50
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    When i put that in buyItem boolean, saved and compile i get this error.

    Code:
    src\server\model\shops\ShopAssistant.java:342: unreachable statement
                    if (c.myShopId == 14) {
                    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    ?
    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

Similar Threads

  1. 377 cache and Mage Arena
    By User Name in forum RS2 Client
    Replies: 22
    Last Post: 04-06-2010, 01:43 AM
  2. Mage Arena - 317 Reborn
    By Ventrix in forum Show-off
    Replies: 25
    Last Post: 11-25-2009, 12:58 AM
  3. Mage Arena
    By Scu11 in forum Show-off
    Replies: 21
    Last Post: 04-13-2009, 07:35 PM
  4. 95% Mage arena
    By SWAT in forum Show-off
    Replies: 49
    Last Post: 01-06-2009, 04:43 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •