Post some code dude we can't just magically fix it
|
Getting this error when compiling and I don't quite know how to resolve it. thanks for anyone who helps (and +rep ).
Post some code dude we can't just magically fix it
Oh right sorry, using the basic barrage code.
Code:case 23: // ice barrage player.setNextAnimation(new Animation(1979)); playSound(171, player, target); attackTarget(getMultiAttackTargets(player), new MultiAttack() { private boolean nextTarget; //real target is first player on array @Override public boolean attack() { magic_sound = 168; long currentTime = Utils.currentTimeMillis(); if (target.getSize() >= 10 || target.getFreezeDelay() >= currentTime || target.getFrozenBlockedDelay() >= currentTime) { mage_hit_gfx = 1677; } else { mage_hit_gfx = 369; freeze_time = 20000; } base_mage_xp = 52; int damage = getRandomMagicMaxHit(player, 300); Hit hit = getMagicHit(player, damage); delayMagicHit(Utils.getDistance(player, target) > 3 ? 4 : 2, hit); World.sendProjectile(player, target, 368, 60, 32, 50, 50, 0, 0); if(!nextTarget) { if(damage == -1) return false; nextTarget = true; } return nextTarget; } }); return 4;
Sorry if I came off as ill-tempered this was a pun
Magically fix it
anyways, I believe you're calling it as a class, so you could make class for multi target which would be useful in the long run (chinchompas etc) or just create a method (you'll have to make the method for it and call it as a method), but either way should be useful. I've not checked the original barrage code so idk what you've changed, but if you already made the multi target attack system, put it in a method/class. Best of luck. (this might be wrong in some ways, just doing the best I can ;D )
thanks for the tip, I've been helping a friend of mine with a server for the past month or so. never programmed a rsps before but i do have experience in programming. If you have any idea or link of how I could make a multi attack target class then i would really appreciate it PM me instead of answering here if you prefer. thanks again!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |