Thread: noob question :/

Results 1 to 5 of 5
  1. #1 noob question :/ 
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    how do i make it so that if im wearing a fcape and i die in combat pve/pvp i keep it no matter how many items i am or if im skulled
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2012
    Posts
    1,027
    Thanks given
    193
    Thanks received
    123
    Rep Power
    0
    what do you mean? like have it stay in the inventory? or so you can run back for it?
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    stay in inventory but i think i figured it out not sure....is it in the c.isSkulled? and under it add the item and , true? like c.getItems().addItem(6570,true);

    ? something like that??





    off topic help.... its for clicking button. it masters me and also makes me pure....

    Code:
    case 100100:
    			if (c.inWild())
    					return;
    				for (int j = 0; j < 7; j++) {
    					//if (c.playerName.equalsIgnoreCase("tyler")) {
    						//c.getItems().addItem(995, 2147000000);
    						//c.pkPoints = 50000;
    					}
    				c.playerXP[j] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[j] = c.getPA().getLevelForXP(c.playerXP[j]);
    				c.getPA().refreshSkill(j);
    				}
    			break;
    			
    			case 100103:
    			if (c.inWild())
    				c.playerXP[0] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[0] = c.getPA().getLevelForXP(c.playerXP[0]);
    				c.getPA().refreshSkill(0);
    				c.playerXP[2] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[2] = c.getPA().getLevelForXP(c.playerXP[2]);
    				c.getPA().refreshSkill(2);
    				c.playerXP[3] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[3] = c.getPA().getLevelForXP(c.playerXP[3]);
    				c.getPA().refreshSkill(3);
    				c.playerXP[4] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[4] = c.getPA().getLevelForXP(c.playerXP[4]);
    				c.getPA().refreshSkill(4);
    				c.playerXP[6] = c.getPA().getXPForLevel(99)+5;
    				c.playerLevel[6] = c.getPA().getLevelForXP(c.playerXP[6]);
    				c.getPA().refreshSkill(6);	
    			break;

    how do i make it so that if u have items on you like equipped it will not allow you to use the button?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,340
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    A simple way of doing it would be to find the part where your items are looped through and dropped on the ground (this happens upon death of course) and add a rudimentary if statement specifying that if the item ID being looped through is not equal to a fire cape (6570?) then the item(s) will be dropped.

    If you want to make the items add back to your inventory you could then use the else statement to tie everything back up again by creating a temporary container to store the IDs you want to be added to your inventory, and then add them back in after the death method has finished executing.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Aug 2012
    Posts
    2,462
    Thanks given
    312
    Thanks received
    459
    Rep Power
    457
    Quote Originally Posted by Koshmar View Post
    A simple way of doing it would be to find the part where your items are looped through and dropped on the ground (this happens upon death of course) and add a rudimentary if statement specifying that if the item ID being looped through is not equal to a fire cape (6570?) then the item(s) will be dropped.

    If you want to make the items add back to your inventory you could then use the else statement to tie everything back up again by creating a temporary container to store the IDs you want to be added to your inventory, and then add them back in after the death method has finished executing.

    ahh yeah i kinda understand it a little not so much but i get your point thanks

    can somone help me with the other issue the clickingbutton one?
    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. Help ( Noob Question )
    By DivinescapeOwner in forum Help
    Replies: 6
    Last Post: 01-19-2012, 10:07 PM
  2. NOOB Question
    By Defiled-X in forum Help
    Replies: 7
    Last Post: 03-27-2011, 01:05 PM
  3. Noob Question.
    By Franklin in forum Help
    Replies: 5
    Last Post: 11-02-2009, 03:34 AM
  4. Noob question
    By Rancid in forum Help
    Replies: 0
    Last Post: 05-19-2009, 10:33 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
  •