Thread: [718] help with an error while coding barrage multi target

Results 1 to 5 of 5
  1. #1 [718] help with an error while coding barrage multi target 
    Registered Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Getting this error when compiling and I don't quite know how to resolve it. thanks for anyone who helps (and +rep ).
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Post some code dude we can't just magically fix it

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    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;
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    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 )

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    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!
    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. 718 Need quick help with an error!
    By altiar in forum Help
    Replies: 2
    Last Post: 08-02-2012, 11:43 PM
  2. [php + mysql] Need help with an error.
    By tor0en in forum Application Development
    Replies: 2
    Last Post: 07-01-2009, 09:32 PM
  3. Help With an Error.
    By balonick in forum Help
    Replies: 8
    Last Post: 03-28-2009, 06:03 AM
  4. Help with an error (barrows).
    By Mr Brent in forum Help
    Replies: 2
    Last Post: 01-05-2009, 10:53 PM
  5. Need help with an error in NPCHandler.
    By Anx Ziety in forum Help
    Replies: 4
    Last Post: 11-10-2008, 04:15 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •