Thread: Need a little help :P

Results 1 to 2 of 2
  1. #1 Need a little help :P 
    Registered Member jelleplomp's Avatar
    Join Date
    Oct 2012
    Age
    26
    Posts
    549
    Thanks given
    73
    Thanks received
    6
    Rep Power
    11
    well hello,
    I am trying to add the Armadyl battlestaf :
    so far i got these codes gathered up

    under the void attackNpc :
    Code:
    if (c.playerEquipment[c.playerWeapon] == 19961) {
    fireProjectileNpc();
    }
    under attackPlayer :
    Code:
    if (c.playerEquipment[c.playerWeapon] == 19961) {
    fireProjectilePlayer();
    }
    the code in fireProjectilePlayer / Npc :

    Code:
    } else if (c.playerEquipment[c.playerWeapon] == 19961) {
    c.gfx0(1333);
    c.getPA().createPlayersProjectile2(pX, pY, offX, offY, 50, 55, getRangeProjectileGFX(), 22, 22,
    c.oldPlayerIndex - 1, getStartDelay(), -1);
    c.specGfx = false;
    oh yeah ive added this in getWeaponDistance :

    Code:
    if (weaponName.contains("battlestaf"))
    if (c.fightMode == 3)
    return 9;
    else
    return 7;
    there are 2 problems

    1. its not ehh doing the fireprojectile

    2. when i use the staff it stil runs towards the npc
    instead of hitting it 7 squares further

    thanks
    Reply With Quote  
     

  2. #2  
    Registered Member jelleplomp's Avatar
    Join Date
    Oct 2012
    Age
    26
    Posts
    549
    Thanks given
    73
    Thanks received
    6
    Rep Power
    11
    bump
    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
  •