Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • OracleScape: Bump my server and play [link]
      Today at 06:08:29 PM
    • OracleScape: BUMP my thread please [link]
      Today at 06:08:00 PM
    • stCky: idk man im just a chat bot
      August 22, 2017, 11:14:52 PM
    • symantec: is this forum
      August 22, 2017, 09:02:56 PM
    • symantec: what the fudge
      August 22, 2017, 09:02:52 PM
    • symantec: I just joined to download datmaker, the links are broken and a user named i nelson i has a fudgeing weird signature
      August 22, 2017, 08:59:33 PM
    • stCky: ur so cool and edgy
      August 22, 2017, 04:15:50 PM
    • Deathspirit: anyways, i'm un ip banned now.. but don't even want to be that at this point lmfao
      August 22, 2017, 01:58:14 PM
    • Deathspirit: now it's some sell out half leeched server :')
      August 22, 2017, 01:57:53 PM
    • Deathspirit: gf moparscape, was the best rsps community i've been on since 2006
      August 22, 2017, 01:57:31 PM
    • stCky: yeah, nah. it's cooked. [link] might help u with a backup or something idk man im just a chat bot
      August 22, 2017, 12:13:25 AM
    • flew420: I sure hope someone has a copy of the forum before it was recked
      August 21, 2017, 11:40:52 PM
    • flew420: O wow i see now, just read thru all the news articles. :(  i've been out of the game for a couple years so coming back to this shit is sad.
      August 21, 2017, 11:39:46 PM
    • flew420: Huh?
      August 21, 2017, 10:49:51 PM
    • stCky: got bought by a russian dude, he put a shitty rsps on it for donations, now no one cares
      August 21, 2017, 10:48:30 PM
    • flew420: I came on for some nostalgic reading in old classic development, and it only goes back to 2014 wtf.
      August 21, 2017, 10:43:09 PM
    • flew420: what happened to this site??
      August 21, 2017, 10:42:36 PM
    • Sean56:[link]
      August 21, 2017, 05:33:45 PM
    • kb010: how can i play? i downloaded the client and it doesnt open.
      August 21, 2017, 10:52:56 AM
    • wodkode: shut it down or fix it
      August 20, 2017, 10:11:28 PM

    Author Topic: [317] [Delta] How to add weapon specials to your server [Delta] [317] UPDATED!  (Read 8859 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Alright, the topic title speaks for itself. I'm going to be explaining how to add a weapon special to a weapon of your choice. Lets get started.

    Red = Explanations

    Difficulty: 2/10
    Knowledge Needed: Animations list, Graphics List, Basic Java Programming, A brain?
    Files Edited: Special & Client Class
    Tested On: Delta Obviously


    Step 1: Making The Weapon Have A Special Bar!

    Open Special.java and you should see something like..

    Code: [Select]
    import java.io.*;

    public class special {
    public void loginSpec(client c, int item) {
    switch(item) {
    case 1215:
    case 1231:
    case 1249:
    case 1263:
    case 7808:
    case 1305:
    case 1377:
    case 1434:
    case 3204:
    case 4587:
    case 5680:

    Within the rest of the switch statement add:

    Code: [Select]
    case ####:
    #### = The Item Id of your weapon

    To my understanding, this makes it so the special bar appears for the items in the switch statement upon login.

    Now find

    Code: [Select]
    switch(item) {
    and you should see another switch statement.

    Within the rest of the switch statement add:

    Code: [Select]
    case ####:
    #### = The Item Id of your weapon

    This makes it so the special bar appears every time you wear an itemId specified in the switch statement.


    Part 2: Making The Special Attack

    Open the Client Class and find:

    Code: [Select]
    specialAmount
    Until you see something like this:

    Code: [Select]
    if(playerEquipment[playerWeapon] == 2402 && specialAmount > 49){
    specialAtk(false, 50, 600, 2967);
    specGFX(611);
    getHit(0);
    currentHealth += hitDiff;
    playerLevel[5] += 5 + misc.random(15);
    sendQuest("" + playerLevel[5] + "", 4012);
    if (currentHealth > playerLevel[playerHitpoints])
    currentHealth = playerLevel[playerHitpoints];
    sendQuest("" + currentHealth + "", 4016);
    if (playerLevel[5] > getLevelForXP(playerXP[5]))
    playerLevel[5] = getLevelForXP(playerXP[5]);
    sendQuest("" + playerLevel[5] + "", 4012);
    }
    if(playerEquipment[playerWeapon] == 746 && specialAmount > 74){
    stillgfx(369, EnemyY, EnemyX);
    stillgfx(644, EnemyY, EnemyX);
    specialAtk(false, 75, 600, 2927);
    getHit(0);
    AttackingOn2.EntangleDelay = 5;
    }
    if(playerEquipment[playerWeapon] == 7808 && specialAmount > 19){
    specialAtk(true, 20, 600, 1979);
    stillgfx(369, EnemyY, EnemyX);
    stillgfx(453, EnemyY, EnemyX);
    stillgfx(446, EnemyY, EnemyX);
    stillgfx(582, EnemyY, EnemyX);
    stillgfx(572, EnemyY, EnemyX);
    getHit(50);
    }
    if(playerEquipment[playerWeapon] == 8100 && specialAmount > 99){
    specialAtk(true, 100, 600, 811);
    AttackingOn2.specGFX(656);
    getHit(5);
    usingSpecial = true;
    }


    Under a closing bracket "}" add this:

    Code: [Select]
    if(playerEquipment[playerWeapon] == #### && specialAmount > @@)
    {
        specialAtk($$$$, %%%%, ^^^^, &&&&);
        stillgfx(****, EnemyY, EnemyX);
        getHit(!!!!);
    }

    #### = Weapon id
    @@ = special needed to make attack (out of 100)
    $$$$ = Put ethier true or false here. true for 2 hits and false for 1 hit
    %%%% = how much special it drains (out of 100)
    ^^^^ = Projectile
    &&&& = Emote when using special
    **** = gfx when using special (you can add more under)
    !!!! = extra damage

    Now, It's time to explain each piece of the code:

    Code: [Select]
    if(playerEquipment[playerWeapon] == #### && specialAmount > @@)
    If you are wielding the item id you specified, and your special amount is the above the amount you specified...

    Code: [Select]
    specialAtk($$$$, %%%%, ^^^^, &&&&);
    It will call the method "specialAtk"  and do what you specified

    Code: [Select]
    stillgfx(****, EnemyY, EnemyX);
    It will show a GFX on the Enemy's absX and absY Coordinates

    Code: [Select]
    getHit(!!!!);
    Extra Damage

    We have now just added a special attack that will work against players.


    Now find:

    Code: [Select]
    specialAtkNPC
    Until you get something like this..

    Code: [Select]
    if(playerEquipment[playerWeapon] == 746 && specialAmount > 74){
    specialAtkNPC(false, 75, 600, 2927);
    stillgfx(369, EnemyY, EnemyX);
    stillgfx(644, absY, absX);
    }
    if(playerEquipment[playerWeapon] == 7808 && specialAmount > 19){
    specialAtkNPC(true, 20, 600, 1979);
    stillgfx(369, EnemyY, EnemyX);
    stillgfx(453, EnemyY, EnemyX);
    stillgfx(446, EnemyY, EnemyX);
    stillgfx(582, EnemyY, EnemyX);
    stillgfx(572, EnemyY, EnemyX);
    }
    if(playerEquipment[playerWeapon] == 8100 && specialAmount > 99){
    specialAtkNPC(true, 100, 600, 811);
    hitDiff = misc.random(playerMaxHit) + misc.random(5) + misc.random(StrPrayer) + misc.random(voidmelee);
    stillgfx(656, EnemyY, EnemyX);
    }

    Then under a closing bracket, add:

    Code: [Select]
    if(playerEquipment[playerWeapon] == @@@@ && specialAmount > ##)
    {
        specialAtkNPC($$$, %%%, ^^^, &&&);
        stillgfx(***, EnemyY, EnemyX);
    }

    @@@@ = Item id
    ## = Special amount needed to attack (Out of 100)
    $$$ = put true for 2 hits or false for 1 hit
    %%% = How much spec it drains (Out of 100)
    ^^^ = Projectile hit
    &&& = Emote used when attacking
    *** = Gfx used when attacking (You can add more under)


    Now, It's time to explain each piece of the code:

    Code: [Select]
    if(playerEquipment[playerWeapon] == @@@@ && specialAmount > ##)
    If you are wielding the item id you specified, and your special amount is the above the amount you specified...

    Code: [Select]
    specialAtkNPC($$$, %%%, ^^^, &&&);
    It will call the method "specialAtkNPC"  and do what you specified

    Code: [Select]
    stillgfx(***, EnemyY, EnemyX);
    It will show a GFX on the Enemy's absX and absY Coordinates

    We have now just added a special attack that will work against NPCS.


    And we are done, you have now just added a special attack. yay.

    I know it's not the best tutorial, forgive me.

    Credits:
    85% Jason (Clawz Fury)
    15% Deathchaos9 For finally getting me to attempt and update this shit.


    « Last Edit: January 27, 2011, 05:59:56 PM by Clawz fury »
    hi. check out luna:)


    Offlinenikolaww3

    • Member
    • ***
    • Posts: 224
    • Thanks: +0/-0
      • View Profile
    nice i will use for my sword of 1000th truths lol


    Offlinen00bf0rlyf3

    • Member
    • ****
    • Posts: 257
    • Thanks: +0/-0
      • View Profile
    Nice guide.. :D


    OfflineRjthebear

    • Member
    • **
    • Posts: 27
    • Thanks: +0/-0
      • View Profile
    Seems goods and people need this tut :P

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Thanks for the comments guys  :D
    hi. check out luna:)

    Offlinexldarkwinglx

    • Member
    • **
    • Posts: 84
    • Thanks: +0/-0
      • View Profile
    Nice, I will most definatly use this! :P I would repp++ but I cant yet :(
    Thank-you to all that have helped me get my account back and Owner Nitro banned! I will soon be rolling on runewings317 again! 'SJ_ is helping me get my password changed. Thanks guys!

    Offlineoldschool-scape

    • Member
    • ****
    • Posts: 910
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #6 on: September 20, 2010, 12:50:49 AM »
    dude fudgeing awsome !!!!  :>D  just made a mopar acc so dont know how to rep+ or rep++ or something XD but if i did i would give you rep+++++++ searshed soo long for this now it makes my own created godsword realy pwnage :D ty matee xxxxxxxx
    If it ain't dutch. It ain't much

    Quote
    Problem?

    Offlinei code rsps

    • Member
    • ****
    • Posts: 314
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #7 on: September 21, 2010, 11:37:22 AM »
    Theres already 1000 guides out there on this subject.  :|
    If i die, I'll die Scapin'.

    Offlinegoldstylez

    • Member
    • ***
    • Posts: 182
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #8 on: September 21, 2010, 11:50:15 AM »
    niice!
    i was looking for this!
    rep++
    My client has 127.0.0.1, mine works, his doesn't.
    LOOOLOOLOLOLOLOL

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #9 on: September 22, 2010, 05:56:34 PM »
    Theres already 1000 guides out there on this subject.  :|
    So you spammed my topic too say that...? And there aren't 1000 guides on this subject. I acctually explain my codes and teach people how too do things. not just C & P
    hi. check out luna:)

    OfflineViety

    • Member
    • **
    • Posts: 98
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #10 on: November 03, 2010, 08:27:23 PM »
    Thank you!
    Anyone know how to download "java". It says i need to have it to pleh.

    Offlinerunewings317

    • Member
    • ****
    • Posts: 2,251
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #11 on: November 03, 2010, 10:26:12 PM »
    Good job with this! I need to add specs to some of the dragon weps on my server!

    Rep+
    I'm back for now.

    OfflineDastan_

    • Member
    • ****
    • Posts: 1,184
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #12 on: November 05, 2010, 05:28:38 AM »
    The fact is , that not all Delta's ( ( special.java ) ) has weapon special attack bar cases in there. And there is nowhere to put 'em. What then?
    « Last Edit: November 05, 2010, 05:30:52 AM by Dastan_ »
    if (noCodeExplained())
        return false;

    Offlinejal knight

    • Member
    • ****
    • Posts: 1,124
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #13 on: November 07, 2010, 11:05:52 PM »
    awesome, good job. I've been looking for this for a while! Thanks to scape-java also for posting the tut page :)
    yup...

    Offlinex united x

    • Member
    • **
    • Posts: 61
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #14 on: November 07, 2010, 11:10:28 PM »
    awesome, good job. I've been looking for this for a while! Thanks to scape-java also for posting the tut page :)

    how to add special in seach jeez ppl so lazy
    where do players go when project insaity has shit?
    they go to delta =)

    Offlineaug551

    • Member
    • **
    • Posts: 9
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #15 on: January 27, 2011, 10:25:56 AM »
    DUDE U HELPED ME SOOOO MUCH!!!! :eek::eek::eek:

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #16 on: January 27, 2011, 05:07:23 PM »
    This is so old, please don't bump this any further. I'm embarrassed by this tutorial  :o
    hi. check out luna:)

    OfflineDeathsChaos9

    • Skype: deathschaos9
    • Global Moderator
    • *****
    • *
    • Posts: 7,437
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #17 on: January 27, 2011, 05:10:58 PM »
    Than update it ;)
    Peace isn't merely the absence of conflict, but the presence of justice.
    F*ck my previous inferior work...

    Play MoparScape!

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Re: [317] [Delta] How to add weapon specials to your server [Delta] [317]
    « Reply #18 on: January 27, 2011, 06:05:02 PM »
    Than update it ;)

    Just did  :P

    Oh god, looking back on this I was so ignorant, how did you learn to deal with me.
    hi. check out luna:)

    Offlinepownd28

    • Member
    • **
    • Posts: 13
    • Thanks: +0/-0
      • View Profile
    where can u get the graphics and projectiles and that that ?? i need one for the d bow spec

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal