What are you trying to make the code do?
|
Since i'm not at home and i can't compile (not admin 2 download jdk) i wnna ask you guys if this code is right:
AND this oneCode:if(rune1 == 555 || rune2 == 555 || rune3 == 555 || rune4 == 555 && playerEquipment[playerWeapon] = 1383) { playerHasItem(555); }
is anything wrong with it? witch one is betterCode:if(!playerHasItem(555) && playerEquipment[playerWeapon] = 1383) { playerHasItem(555); }
delta source (no flame)
making elemental staff works... if the rune1 is 555(water rune) and the staff is 1383(water staff) it returns than the player HAVE water runes
EDIT improved it abit
Wouldn't that just make it so it only shows that the player has a water rune? If that's what your aiming for, yes.
Then check,Code:private int staffType(Client client) { switch (client.playerEquipment[3]) { case 1381: return 556; } return 0; }
I have Client their cuz i do my stuff in seperate classes so work it out. I put this, because i know from this you just throw shit in your client class file...Code:if (staffType(this) == rune1) { //stuffhere; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |