Thread: Help please & thank you

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Help please & thank you 
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    okay so im working on my dungeoneering mini-game and now im stuck on the part when you teleout you lose all the items your wearing + your inventory can anyone help me with this?
    Reply With Quote  
     

  2. #2  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    Add this.
    Code:
    c.getItems().removeAllItems();
    The equipment i'm not sure of gimmi a sec.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    the inventory one worked so im waiting for the equipment, thanks
    Reply With Quote  
     

  5. #4  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    add something like this method.
    Code:
    public void killBlessed(){
    playerEquipment[playerWeapon] = -1;
    		playerEquipmentN[playerWeapon] = 1;
    		playerEquipment[playerAmulet] = -1;
    		playerEquipmentN[playerAmulet] = 1;
    		playerEquipment[playerFeet] = -1;
    		playerEquipmentN[playerFeet] = 1;
    		playerEquipment[playerHands] = -1;
    		playerEquipmentN[playerHands] = 1;
    		playerEquipment[playerHat] = -1;
    		playerEquipmentN[playerHat] = 1;
    		playerEquipment[playerChest] = -1;
    		playerEquipmentN[playerChest] = 1;
    		playerEquipment[playerLegs] = -1;
    		playerEquipmentN[playerLegs] = 1;
    		playerEquipment[playerCape] = -1;
    		playerEquipmentN[playerCape] = 1;
    		playerEquipment[playerShield] = -1;
    		playerEquipmentN[playerShield] = 1;
    		playerEquipment[playerRing] = -1;
    		playerEquipmentN[playerRing] = 1;
    		getItems().updateSlot(playerWeapon);
    		getItems().updateSlot(playerAmulet);
    		getItems().updateSlot(playerFeet);
    		getItems().updateSlot(playerHands);
    		getItems().updateSlot(playerHat);
    		getItems().updateSlot(playerChest);
    		getItems().updateSlot(playerLegs);
    		getItems().updateSlot(playerCape);
    		getItems().updateSlot(playerRing);
    		getItems().updateSlot(playerShield);
    		getItems().sendWeapon(playerEquipment[playerWeapon], getItems().getItemName(playerEquipment[playerWeapon]));
    		getItems().resetBonus();
    		getItems().getBonus();
    		getItems().writeBonus();
    		getCombat().getPlayerAnimIndex(getItems().getItemName(playerEquipment[playerWeapon]).toLowerCase());
    		getPA().requestUpdates();
    		getItems().deleteAllItems();
    		blessed = false;			
    }
    Reply With Quote  
     

  6. #5  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    Code:
    src\server\model\players\Client.java:166: cannot find symbol
    symbol  : variable blessed
    location: class server.model.players.Client
                    blessed = false;
                    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    i just threw it in client.java
    Reply With Quote  
     

  7. #6  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    Declare public boolean blessed = false;
    Reply With Quote  
     

  8. #7  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    okay and i just throw that in when the npc boss tele's you out?

    tried doing this c.blessed = true; but it didnt work
    Reply With Quote  
     

  9. #8  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    make it c.killBlessed(); when they teleport
    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    thank you so much .... i have a question do you know how to disable the minimap while in the dueling screen or any other way to stop the dueling dupe without disabling staking?
    Reply With Quote  
     

  12. #10  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    Quote Originally Posted by mr selby View Post
    thank you so much .... i have a question do you know how to disable the minimap while in the dueling screen or any other way to stop the dueling dupe without disabling staking?
    Make it freeze them, make a new method that does not let them move, and in tradeandduel.java load the method while in the screen.
    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
  •