Thread: dragon claws pi i tried every thing

Results 1 to 10 of 10
  1. #1 dragon claws pi i tried every thing 
    Banned
    Join Date
    Nov 2012
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    hi i am trying to add dragon claws to my rsps.

    they are added in but they only double hit.
    how do i fix? my CA code looks like this for claws.
    Spoiler for my claw code for CA:
    case 14484: // Dragon claws
    c.gfx0(1950);
    c.startAnimation(10961);
    c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquip ment[c.playerWeapon]).toLowerCase());
    c.doubleHit = true;
    c.specAccuracy = 1.30;
    c.specDamage = 1.00;
    break;


    and they only double hit.

    i seen in a guide it has to have usingclaws true.
    i added that an here is my code now.
    Spoiler for dragon claws code now:
    case 14484: // Dragon claws
    c.gfx0(1950);
    c.startAnimation(10961);
    c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquip ment[c.playerWeapon]).toLowerCase());
    c.doubleHit = true;
    c.usingClaws = true;
    c.specAccuracy = 1.30;
    c.specDamage = 1.00;
    break;

    ok there got that added time to compile.
    i get this error....
    Spoiler for CMD error code.:
    src\server\model\players\CombatAssistant.java:1877 : error: cannot find symbol
    c.usingClaws = true;
    ^
    symbol: variable usingClaws
    location: variable c of type Client
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .


    How do i fix this? to were it is using claws? thanks
     

  2. #2  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    There is no c.usingClaws object, so create in the Client class and add some use to it.
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
     

  3. #3  
    Banned
    Join Date
    Nov 2012
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Tyluur View Post
    There is no c.usingClaws object, so create in the Client class and add some use to it.
    Sir im a newb how would i do that?:O like i dont know were to add it at?
     

  4. #4  
    Banned
    Join Date
    Nov 2012
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    ok i tried what you did and in my other pi source it has this as the usingclaws.

    Spoiler for my using claws fro mmy other server added to my:
    if(c.projectileStage == 0 && !c.usingMagic && !c.castingMagic) { // melee hit damage

    int dclawhit = Misc.random(calculateMeleeMaxHit());
    int dclawhit2 = dclawhit / 2;
    int dclawhit3 = dclawhit2 / 2;
    applyPlayerClawDamage(i, 1, Misc.random(calculateMeleeMaxHit()));
    if(c.doubleHit && !c.usingClaws) {
    applyPlayerClawDamage(i, 2, Misc.random(calculateMeleeMaxHit() + Misc.random(4)));
    applyPlayerClawDamage(i, 2, Misc.random(calculateMeleeMaxHit() + Misc.random(8)));

    }
    if (c.doubleHit && c.usingClaws) {
    int dam = Misc.random(calculateMeleeMaxHit() + Misc.random(8));
    applyPlayerClawDamage(i, 2, dam);
    c.clawDamage = (dam / 2);
    applyPlayerClawDamage(i, 2, c.clawDamage);;
    Server.getCycleEventManager().addEvent(new CycleEvent() {
    @Override
    public void execute(CycleEventContainer container) {
    if(c == null) {
    container.stop();
    return;
    }
    if (c.playerIndex > 0) {
    int tempClawDamage = Misc.random((c.clawDamage / 2));
    c.getCombat().applyPlayerClawDamage(c.playerIndex, 2, tempClawDamage);
    c.getCombat().applyPlayerClawDamage(c.playerIndex, 2, (c.clawDamage - tempClawDamage));
    }
    c.clawDamage = 0;
    c.clawDelay = 0;
    c.specEffect = 0;
    c.previousDamage = 0;
    c.usingClaws = false;
    container.stop();
    }
    @Override
    public void stop() {

    }
    }, null, 1);
    }
    }


    there both pi when i added that code to my i got like 100 errors
     

  5. #5  
    Banned
    Join Date
    Nov 2012
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    still need help here...
     

  6. #6  
    Registered Member
    Join Date
    Nov 2012
    Posts
    299
    Thanks given
    14
    Thanks received
    5
    Rep Power
    29
    case 14484: // Dragon claws
    c.getPA().sendFrame171(0, 7800);
    specialAmount(weapon, c.specAmount, 7812);
    break;
    This was under a section that adds the spec bar to items that require or don't require it. Don't know if it helped :\
     

  7. #7  
    Registered Member

    Join Date
    Nov 2011
    Posts
    491
    Thanks given
    23
    Thanks received
    66
    Rep Power
    86
    This error is simple to fix. Just add
    Code:
    	public boolean usingClaws;
    in player.java
     

  8. Thankful user:


  9. #8  
    Registered Member
    Join Date
    Apr 2012
    Posts
    17
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Couldn't that also go in the client.java?
     

  10. #9  
    Enter The Dragon
    Roshi's Avatar
    Join Date
    Nov 2012
    Age
    27
    Posts
    260
    Thanks given
    4
    Thanks received
    19
    Rep Power
    4
    if you cant figure out how to make a 4 spec hit dont code.
     

  11. #10  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Roshi View Post
    if you cant figure out how to make a 4 spec hit dont code.
    If you can't do anything but be a dick, go away.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
     


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. Replies: 91
    Last Post: 08-01-2011, 03:38 AM
  2. Dragon Claws
    By Tyluur in forum Show-off
    Replies: 56
    Last Post: 11-02-2010, 12:09 AM
  3. need help with dragon claws
    By 99matt99 in forum Help
    Replies: 2
    Last Post: 10-18-2010, 02:08 PM
  4. Replies: 0
    Last Post: 07-26-2009, 10:28 AM
  5. help getting rune claws with dragon claws spec
    By pkownage135 in forum Help
    Replies: 4
    Last Post: 02-02-2009, 07:24 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •