Thread: last question for a while z525

Results 1 to 5 of 5
  1. #1 last question for a while z525 
    Registered Member
    Join Date
    Jul 2010
    Posts
    250
    Thanks given
    6
    Thanks received
    1
    Rep Power
    30
    i got a problem in compiler with this code i got from a leech prayers tutorial
    if(opp.usingPrayer(14) && poison == 0) { //Leech STRENGTH
    skillLvl[2] -= 0.10;
    getActionSender().setSkillLvl(this, 2);
    requestAnim(718,0);
    int casterX1 = opp.absX;
    int casterY1 = opp.absY;
    int offsetX1 = (opp.absX - absX) * -1;
    int offsetY1 = (opp.absY - absY) * -1;
    int casterX = absX;
    int casterY = absY;
    int offsetX = (absX - opp.absX) * -1;
    int offsetY = (absY - opp.absY) * -1;
    opp.getActionSender().slopedProjectile(opp, casterY1, casterX1, offsetY1, offsetX1, 50, 70, 500, 46, 31, playerId, getSlope());
    getActionSender().slopedProjectile(this, casterY, casterX, offsetY, offsetX, 50, 70, 500, 46, 31, opp.playerId, getSlope());
    opp.getActionSender().sendMessage(opp, "Your Ancient Curses Drain Your Opponents Strength Boosting Yours!");
    getActionSender().sendMessage(this, "Ancient Curses Drain Your Strength!");
    }
    if (opp.usingPrayer(20) && poison == 0) { //Leech RANGE
    skillLvl[4] -= 0.10;
    getActionSender().setSkillLvl(this, 4);
    requestAnim(718,0);
    int casterX1 = opp.absX;
    int casterY1 = opp.absY;
    int offsetX1 = (opp.absX - absX) * -1;
    int offsetY1 = (opp.absY - absY) * -1;
    int casterX = absX;
    int casterY = absY;
    int offsetX = (absX - opp.absX) * -1;
    int offsetY = (absY - opp.absY) * -1;
    opp.getActionSender().slopedProjectile(opp, casterY1, casterX1, offsetY1, offsetX1, 50, 70, 500, 46, 31, playerId, getSlope());
    getActionSender().slopedProjectile(this, casterY, casterX, offsetY, offsetX, 50, 70, 500, 46, 31, opp.playerId, getSlope());
    opp.getActionSender().sendMessage(opp, "Your Ancient Curses Drain Your Opponents Range Boosting Yours!");
    getActionSender().sendMessage(this, "Ancient Curses Drain Your Range!");
    }
    if (opp.usingPrayer(21) && poison == 0) { //Leech MAGE
    skillLvl[6] -= 0.10;
    getActionSender().setSkillLvl(this, 6);
    requestAnim(718,0);
    int casterX1 = opp.absX;
    int casterY1 = opp.absY;
    int offsetX1 = (opp.absX - absX) * -1;
    int offsetY1 = (opp.absY - absY) * -1;
    int casterX = absX;
    int casterY = absY;
    int offsetX = (absX - opp.absX) * -1;
    int offsetY = (absY - opp.absY) * -1;
    opp.getActionSender().slopedProjectile(opp, casterY1, casterX1, offsetY1, offsetX1, 50, 70, 500, 46, 31, playerId, getSlope());
    getActionSender().slopedProjectile(this, casterY, casterX, offsetY, offsetX, 50, 70, 500, 46, 31, opp.playerId, getSlope());
    opp.getActionSender().sendMessage(opp, "Your Ancient Curses Drain Your Opponents Mage Boosting Yours!");
    getActionSender().sendMessage(this, "Ancient Curses Drain Your Mage!");
    }
    if (opp.usingPrayer(13) && poison == 0) { //Leech DEF
    skillLvl[1] -= 0.10;
    getActionSender().setSkillLvl(this, 1);
    requestAnim(718,0);
    int casterX1 = opp.absX;
    int casterY1 = opp.absY;
    int offsetX1 = (opp.absX - absX) * -1;
    int offsetY1 = (opp.absY - absY) * -1;
    int casterX = absX;
    int casterY = absY;
    int offsetX = (absX - opp.absX) * -1;
    int offsetY = (absY - opp.absY) * -1;
    opp.getActionSender().slopedProjectile(opp, casterY1, casterX1, offsetY1, offsetX1, 50, 70, 500, 46, 31, playerId, getSlope());
    getActionSender().slopedProjectile(this, casterY, casterX, offsetY, offsetX, 50, 70, 500, 46, 31, opp.playerId, getSlope());
    opp.getActionSender().sendMessage(opp, "Your Ancient Curses Drain Your Opponents Defence Boosting Yours!");
    getActionSender().sendMessage(this, "Ancient Curses Drain Your Defence!");
    }
    if (opp.usingPrayer(15) && poison == 0) { //Leech ATT
    skillLvl[0] -= 0.10;
    getActionSender().setSkillLvl(this, 0);
    requestAnim(718,0);
    int casterX1 = opp.absX;
    int casterY1 = opp.absY;
    int offsetX1 = (opp.absX - absX) * -1;
    int offsetY1 = (opp.absY - absY) * -1;
    int casterX = absX;
    int casterY = absY;
    int offsetX = (absX - opp.absX) * -1;
    int offsetY = (absY - opp.absY) * -1;
    opp.getActionSender().slopedProjectile(opp, casterY1, casterX1, offsetY1, offsetX1, 50, 70, 500, 46, 31, playerId, getSlope());
    getActionSender().slopedProjectile(this, casterY, casterX, offsetY, offsetX, 50, 70, 500, 46, 31, opp.playerId, getSlope());
    opp.getActionSender().sendMessage(opp, "Your Ancient Curses Drain Your Opponents Attack Boosting Yours!");
    getActionSender().sendMessage(this, "Ancient Curses Drain Your Attack!");
    }
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jun 2009
    Posts
    855
    Thanks given
    208
    Thanks received
    64
    Rep Power
    0
    Dude can you code z508s? You asked for so much help... You're supposed to post the cmd error, not the code.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2010
    Posts
    250
    Thanks given
    6
    Thanks received
    1
    Rep Power
    30
    In compiler keeps repeating the line opp.playerid, getslope()); and then it points an arrow under slope
    Reply With Quote  
     

  4. #4  
    Registered Wizard

    Jesse's Avatar
    Join Date
    Sep 2009
    Age
    29
    Posts
    5,119
    Thanks given
    1,519
    Thanks received
    1,148
    Rep Power
    5000
    use eclipse helps alot



    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2010
    Posts
    250
    Thanks given
    6
    Thanks received
    1
    Rep Power
    30
    Ty I will, link to dl, i use netbeans but doesn't help alot
    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
  •