Thread: Increase the hits of a weapon

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Increase the hits of a weapon 
    deathmoon
    Guest
    Description: Alright, as requested, im showing how to make a weapon "stronger"
    Difficulty : 1/10
    Classes Modified : Client and item.cfg

    open up item.cfg
    Lets use a whip as an example.


    CODE
    Code:
    item = 4151    Abyssal_whip    A_weapon_from_the_abyss.    4000000    4000000    4000000    0    102    0    0    0    0    0    0    0    0    52    0
    (remember to space/tab them well)


    Ignore the first three numbers, they are prices.

    the numbers following that, is the bonus.
    if im correct, 102 should be the Strength bonus in mine.

    Now, what if you want to change the max hits?

    Open up Client Class. (or client.java if you dont understand)

    search for
    Code:
    "//viewTo(server.playerHandler.players[AttackingOn].absX, server.playerHandler.players[AttackingOn].absY);"
    (something like this)

    Underneath look for

    CODE
    Code:
    if(playerEquipment[playerWeapon] == (4151)) // whip
    {
    PkingDelay = 2;
    wepdelay = 2;
    }

    now all you have to do, is add this.

    CODE
    Code:
    hitDiff = 0 + misc.random(45);

    What does this do?
    hitDiff = 0 means that thats whats definatly gonna hit.
    + misc.random(45); means that it can randomly hit 0-45 adding onto the hitdiff.

    so your code should look like


    CODE
    Code:
    if(playerEquipment[playerWeapon] == (4151)) // whip
    {
    PkingDelay = 2;
    wepdelay = 2;
    hitDiff = 0 + misc.random(45);
    }

    credits to figment 99% 1% to me for posting......
     

  2. #2  
    Registered Member
    Xxl33tk1ll3r28x's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    586
    Thanks given
    0
    Thanks received
    1
    Rep Power
    139
    leeched, and i got proof. [Only registered and activated users can see links. ]


    My Gamertag is Xxl33tk1ll3r28x
     

  3. #3  
    deathmoon
    Guest
    well u leeched it cause its posted on silabs forums earlier then u so that means u leeched
     

  4. #4  
    IvA V1n
    Guest
    Shouldnt boolean calculateMaxHit already have the formula for bonuses and such?
     

  5. #5  
    Registered Member
    Xxl33tk1ll3r28x's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    586
    Thanks given
    0
    Thanks received
    1
    Rep Power
    139
    Quote Originally Posted by deathmoon View Post
    ok....so u say its leeched just becouse u leeched it b4 ASSUMING I LEECED....if thats the prove i have 10 more proves to prove u leeched it......but i wont cuz this tut is relaly basic and many people know so no point leeching or w/e
    Making a Weapon Hit Harder - 08-16-2008, 06:26 PM - Fire cape pk

    Increase the hits of a weapon - Yesterday, 02:56 PM - Deathmoon


    My Gamertag is Xxl33tk1ll3r28x
     

  6. #6  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    There is already a maxhit method for your bonus's go into item.cfg, find your weapon, and change the str bonus, don't do it this way.
     

  7. #7  
    deathmoon
    Guest
    yes both way works but the good thing abt this is the number 0.... the minimum hit... u can change it but even if u change minimum hit to 50 u will still hit 10's 20's 30's only that u wont hit 0's anymore
     

  8. #8  
    k3vr0w9
    Guest
    i've seen this on silab this is from Figment and now ur giving 99% of the credits for you. But not for figment cause he did most of the work, and i got proof of pics here.


    So, this is actually leeched.
     

  9. #9  
    deathmoon
    Guest
    w/e ... anyways i checnged the crdits srry but even FIRE CAPE PK has leeched then....
     

  10. #10  
    k3vr0w9
    Guest
    but his, is kinda changed up alittle
     

Page 1 of 2 12 LastLast

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
  •