Thread: Potion Combin Doses.

Results 1 to 10 of 10
  1. #1 Potion Combin Doses. 
    Registered Member
    Join Date
    Apr 2008
    Age
    15
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Well I'm making it so I thought "Why not release just for fun?". One thing though I am not releasing full version. You must code some of it because I am not going to just spoon feed you. So enjoy



    Alright here is the base for it. I've included just Strength potions, you'll have to add the rest yourself.

    Declare this.
    Code:
    	public void Potions(int a, int b){
    		int[] Potion = { 119, 119, 119, 117, 117, 115 };
    		int[] Potion2 = { 119, 117, 115, 117, 115, 115 };
    		int[] Add1 = { 117, 115, 113, 113, 113, 113 };
    		int[] Add2 = { 229, 229, 229, 229, 119, 117 };
    		int[] Amount = { 2, 3, 4, 4, 4, 4 };
    		for (int i = 0; i < Potion.length; i++) {
    			if(a == Potion[i] && b == Potion2[i] || a == Potion2[i] && b == Potion[i]){
    				deleteItem(Potion[i], 1);
    				deleteItem(Potion2[i], 1);
    				addItem(Add1[i], 1);
    				addItem(Add2[i], 1);
    				sM("You have combined the liquid into "+Amount[i]+" doses.");
    			}
    		}
    	}
    Then in your Item on Item packet add this

    Code:
    Potions(###, ###);
    Switch the ### to whatever yours is. Mine is itemUsed & useWith. So you would make it like.

    Code:
    Potions(itemUsed, useWith);
    That's it have fun adding the rest. Also you can use this for many other things too. So have fun and hope you learned something new
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jan 2009
    Posts
    471
    Thanks given
    144
    Thanks received
    41
    Rep Power
    65
    oo kool but wont add sory
    Reply With Quote  
     

  3. #3  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    Looks Decent.
    Rep For Joo ++
    (Wont use though)
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2008
    Age
    15
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Thanks for the positive feedback
    Reply With Quote  
     

  5. #5  
    Season-Scape
    Guest
    gj already added this but looks good
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2008
    Age
    15
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Quote Originally Posted by Season-Scape View Post
    gj already added this but looks good
    You might want to switch your with this one though since this is more efficient than regular voids.
    Reply With Quote  
     

  7. #7  
    Registered Member ºKubanº's Avatar
    Join Date
    Aug 2008
    Posts
    268
    Thanks given
    15
    Thanks received
    10
    Rep Power
    16
    Even though it's just a void, good job.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,697
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Well done.

    Very simple but alot of servers don't have this, i mean ALOT. So this will definitely improve our 'goal' to become as close to rs as possible. (:

    This is just my opinion anyway.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2008
    Age
    15
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Quote Originally Posted by K U B A N View Post
    Even though it's just a void, good job.
    It's not just a void, It's like a handled version of one. It only gets called once and you donn't have to keep putting in.

    Code:
    if (ItemUsed == #### && UsedOn == ####) {
    potions();
    }
    All you need is one. Plus idk if this is conversions, But if it is then it's better than any other way of doing it.
    Reply With Quote  
     

  10. #10  
    Sate
    Guest
    Looks good nice job...
    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
  •