-
Member
[Tut] Sara Brew [TUT]
Difficulty : lol... If your a good coder :eek:
Knowledge - To know what cases are... (sort of)
Step 1. Go into your client.java and press control + f, search for any cooked foods ID with case infront of it example... case 385:
step 2. you will see something like this
Code:
case 385: //Shark
healing[1] = 20;
healing[2] = 20;
healing[3] = -1;
break;
The Processes
case ####: //item-Says the item that will be doing the healing
healing[1] = ##;-The hp that the potion will heal
healing[2] = ##;-Confirms that you want the 20hp to be healed - if you changed healing[2] to 40 then the food would heal 20-40 -
healing[3] = #; -What the item is reduced to... -1 is dissapear
break;-Ends the process, brings a halt to what has happened
My example will be a something with 4 doses. such as a sara brew
Code:
case 6685: //Sara Brew (4)
healing[1] = #; (the healing amount)
healing[2] = #; (other amount of hp you want it to heal upto do both same for constant heal of same hp)
healing[3] = ##; (what the item then becomes, in this case it would be sarabrew 3 doses - USE THE ITEM ID FOR 3 DOSE SARABREW)
break;
case 6687: //Sara Brew (3)
healing[1] = #;
healing[2] = #;
healing[3] = #;
break;
case 6689: //Sara Brew (2)
healing[1] = #;
healing[2] = #;
healing[3] = ##;
break;
case 6691: //Sara Brew (1)
healing[1] = #;
healing[2] = #;
healing[3] = ##;
break;
Please Post If Any Errors :D
-