Thread: [vencillio] spec bar

Results 1 to 5 of 5
  1. #1 [vencillio] spec bar 
    Developer

    Join Date
    May 2015
    Age
    26
    Posts
    185
    Thanks given
    0
    Thanks received
    9
    Rep Power
    1
    anyone know the fix to the spec bar on vencillio its not draining
    Reply With Quote  
     

  2. #2  
    Waddup

    Stan's Avatar
    Join Date
    Apr 2016
    Posts
    376
    Thanks given
    110
    Thanks received
    394
    Rep Power
    521
    Make sure you aren't on a dev/owner account.
    Reply With Quote  
     

  3. #3  
    Developer

    Join Date
    May 2015
    Age
    26
    Posts
    185
    Thanks given
    0
    Thanks received
    9
    Rep Power
    1
    Quote Originally Posted by Stan_ View Post
    Make sure you aren't on a dev/owner account.
    i'm not im a player account
    Reply With Quote  
     

  4. #4  
    Respected Member


    Join Date
    Jul 2015
    Posts
    781
    Thanks given
    206
    Thanks received
    394
    Rep Power
    524
    Quote Originally Posted by VykorOS View Post
    i'm not im a player account
    then that is something you've broken yourself -- vanilla vencillio spec works fine unless you're an administrator. we're going to need some snippets to see whats going on.
    Reply With Quote  
     

  5. #5  
    Developer

    Join Date
    May 2015
    Age
    26
    Posts
    185
    Thanks given
    0
    Thanks received
    9
    Rep Power
    1
    Quote Originally Posted by RileyM View Post
    then that is something you've broken yourself -- vanilla vencillio spec works fine unless you're an administrator. we're going to need some snippets to see whats going on.

    its dark-aslyum source bruh and ill give u the spec file now

    special attack handler

    i

    public class SpecialAttackHandler {

    private static Map<Integer, Special> specials = new HashMap<Integer, Special>();

    private static Map<Integer, CombatEffect> effects = new HashMap<Integer, CombatEffect>();

    private static void add(int weaponId, CombatEffect effect) {
    effects.put(Integer.valueOf(weaponId), effect);
    }

    private static void add(int weaponId, Special special) {
    specials.put(Integer.valueOf(weaponId), special);
    }

    public static void declare() {
    //add(20074, new StaffOfDeadSpecialAttack());
    //add(20076, new StaffOfDeadSpecialAttack());

    /* Magic Shortbow */
    add(12788, new MagicShortbowInfusedSpecialAttack());

    /* Zamorakian Hasta */
    add(11889, new ZamorakianHastaSpecialAttack());
    add(11889, new ZamorakianHastaEffect());

    /* Zamorakian Spear */
    add(11824, new ZamorakianSpearSpecialAttack());
    add(11824, new ZamorakianSpearEffect());

    /* Armadyl Crossbow */
    add(11785, new ArmadylCrossbowSpecialAttack());

    /* Blowpipe */
    add(12926, new ToxicBlowpipeSpecialAttack());
    add(12926, new ToxicBlowpipeEffect());
    add(19675, new ToxicBlowpipeEffect());

    /* Saradomin Sword */
    add(11838, new SaradominSwordSpecialAttack());
    add(12809, new SaradominSwordSpecialAttack());
    /* Arclight */
    //add(19675, new ArclightSpecial());

    /* Armadyl Godsword */
    add(11802, new ArmadylGodswordSpecialAttack());

    /* Bandos Godsword */
    add(11804, new BandosGodswordSpecialAttack());
    add(11804, new BandosGodswordEffect());

    /* Saradomin Godsword */
    add(11806, new SaradominGodswordSpecialAttack());
    add(11806, new SaradominGodswordEffect());

    /* Zamorak Godsword */
    add(11808, new ZamorakGodswordSpecialAttack());

    /* VykorOS Bow */
    add(11235, new DarkBowSpecialAttack());
    add(12765, new DarkBowSpecialAttack());
    add(12766, new DarkBowSpecialAttack());
    add(12767, new DarkBowSpecialAttack());
    add(12768, new DarkBowSpecialAttack());
    add(19481, new DarkBowSpecialAttack());

    /* Barrelchest Anchor */
    add(10887, new BarrelchestAnchorEffect());
    add(10887, new AnchorSpecialAttack());

    /* Dragon Claws */
    add(13188, new DragonClawsSpecialAttack());

    /* Dragon Spear */
    add(1249, new DragonSpearSpecialAttack());
    add(1249, new DragonSpearEffect());

    /* Dragon Dagger */
    add(13265, new AbyssalDaggerSpecialAttack());
    add(13271, new AbyssalDaggerSpecialAttack());
    add(1215, new DragonDaggerSpecialAttack());
    add(1231, new DragonDaggerSpecialAttack());
    add(5680, new DragonDaggerSpecialAttack());
    add(5698, new DragonDaggerSpecialAttack());

    /* Dragon Scimitar */
    add(4587, new DragonScimitarSpecialAttack());
    //add(4587, new DragonScimitarEffect());

    /* Dragon Longsword */
    add(1305, new DragonLongswordSpecialAttack());

    /* Dragon Mace */
    add(1434, new DragonMaceSpecialAttack());

    /* Dragon Warhammer */
    add(13576, new DragonWarhammerSpecialAttack());

    /* Dragon Halbard */
    add(3204, new DragonHalberdSpecialAttack());
    add(13092, new DragonHalberdSpecialAttack());

    /* Magic Shortbow */
    add(861, new MagicShortbowSpecialAttack());
    add(859, new MagicShortbowSpecialAttack());

    /* Granite Maul */
    add(4153, new GraniteMaulSpecialAttack());
    add(13263, new AbyssalBludgeonSpecialAttack());

    /* Abyssal Whip */
    add(4151, new AbyssalWhipSpecialAttack());
    add(4151, new AbyssalWhipEffect());
    add(4178, new AbyssalWhipSpecialAttack());
    add(4178, new AbyssalWhipEffect());
    add(12773, new AbyssalWhipSpecialAttack());
    add(12773, new AbyssalWhipEffect());
    add(12774, new AbyssalWhipSpecialAttack());
    add(12774, new AbyssalWhipEffect());

    /* Tentacle Whip */
    add(12006, new AbyssalTentacleSpecialAttack());
    //add(12006, new AbyssalTentacleEffect());
    }

    public static void executeSpecialEffect(Player player, Entity attacked) {
    Item weapon = player.getEquipment().getItems()[3];

    if (weapon == null) {
    return;
    }

    CombatEffect effect = effects.get(Integer.valueOf(weapon.getId()));

    if (effect == null) {
    return;
    }
    effect.execute(player, attacked);
    }

    public static void handleSpecialAttack(Player player) {
    Item weapon = player.getEquipment().getItems()[3];

    if (weapon == null) {
    return;
    }

    Special special = specials.get(Integer.valueOf(weapon.getId()));

    if (special == null) {
    return;
    }

    if (special.checkRequirements(player)) {
    special.handleAttack(player);
    if (!PlayerConstants.isOwner(player))
    player.getSpecialAttack().deduct(special.getSpecia lAmountRequired());
    }
    }

    public static boolean hasSpecialAmount(Player player) {
    Item weapon = player.getEquipment().getItems()[3];

    if (weapon == null) {
    return true;
    }

    Special special = specials.get(Integer.valueOf(weapon.getId()));

    if (special == null) {
    return true;
    }

    if (player.getSpecialAttack().getAmount() < special.getSpecialAmountRequired()) {
    player.getClient().queueOutgoingPacket(new SendMessage("You do not have enough special attack to do that."));
    return false;
    }
    return true;
    }

    public static void updateSpecialAmount(Player p, int id, int amount) {
    int specialCheck = 100;
    for (int i = 0; i < 10; i++) {
    id--;
    p.getClient().queueOutgoingPacket(new SendUpdateSpecialBar(amount >= specialCheck ? 500 : 0, id));
    specialCheck -= 10;
    }
    }

    public static void updateSpecialBarText(Player p, int id, int amount, boolean init) {
    if (init)
    p.getClient().queueOutgoingPacket(new SendString("@yel@Special Attack - "+p.getSpecialAttack().getAmount()+"%", id));
    else
    p.getClient().queueOutgoingPacket(new SendString("@bla@Special Attack - "+p.getSpecialAttack().getAmount()+"%", id));
    }
    }
    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. Replies: 6
    Last Post: 09-28-2016, 05:15 PM
  2. Replies: 3
    Last Post: 06-04-2016, 02:57 AM
  3. Vencillio custom weapon spec bar
    By TA TA in forum Help
    Replies: 2
    Last Post: 05-29-2016, 11:02 PM
  4. My Created Specs[VeryBasic,no spec bar]
    By kiddy in forum Tutorials
    Replies: 7
    Last Post: 07-19-2008, 06:31 AM
  5. Reducing size of spec bars by palidino
    By Jukk in forum Tutorials
    Replies: 4
    Last Post: 01-18-2008, 05:53 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
  •