Thread: Divine and Elysian Spirit shield effects.

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 59
  1. #1 Divine and Elysian Spirit shield effects. 
    F0rerunner
    Guest
    Server Base: I personally used RichScape V4.3 but others should work too.
    Classes Modified: Client.java
    Difficulty: 1/10
    Assumed Knowledge: C+P, little programming knowledge if you get an error.
    Purpose: To add the special effect of the 2 spirit shields from RuneScape into your server. They only work for PvP at the moment but are pretty effective. Need to add the models and ints first before you can do this. Here is the link: http://www.rune-server.org/f306/summ...ms-t92401.html

    1. Go to Client.java and hit CTRL+F. Type in:
    boolean Attack()
    2.Hit enter and once you reach your boolean attack, scroll down a bit until you reach the if(******) stuff. Now below one of the "if" codes, below the "}", paste this:
    if (PlayerManager.players[AttackingOn].playerEquipment[playerShield] == 9000 && Misc.random(2) == 1) {
    Client k = (Client) Server.PlayerManager.players[AttackingOn];
    k.hitDiff=hitDiff/2;
    k.Send("You feel the soul of your combatant flow through your body, decreasing the damage");
    k.Send("taken by them by half.");
    k.hitUpdateRequired = true;
    k.updateRequired = true;
    k.appearanceUpdateRequired = true;
    }
    if (PlayerManager.players[AttackingOn].playerEquipment[playerShield] == 9001 && PlayerManager.players[AttackingOn].playerLevel[5]>=5) {
    Client k = (Client) Server.PlayerManager.players[AttackingOn];
    k.hitDiff=hitDiff-playerLevel[5]/2;
    k.playerLevel[5] -= 5;
    k.Send("You feel your prayer flowing through the shield, making the shield stronger.");
    k.hitUpdateRequired = true;
    k.updateRequired = true;
    k.appearanceUpdateRequired = true;
    }
    3. Now just compile your server and your finished.

    Extra: Here are the stats for the shields that go in Items.cfg. Exactly the same stats as RuneScape without, of course, the Summoning bonus. Which would be +50.
    item = 9000 Elysian_spirit_shield An_ethereal_shield_with_an_elysian_sigil_attached_ to_it. 82000 80000 53000 0 0 0 0 0 63 65 75 2 57 0 3
    item = 9001 Divine_spirit_shield An_ethereal_shield_with_a_divine_sigil_attached_to _it. 82000 80000 53000 0 0 0 0 0 63 65 75 2 57 0 3
    item = 9002 Spirit_shield3 An_ethereal_shield. 82000 80000 53000 0 0 0 0 0 39 41 50 1 45 0 0
    item = 9004 Spectral_spirit_shield An_ethereal_shield_with_a_spectral_sigil_attached_ to_it. 82000 80000 53000 0 0 0 0 0 53 55 73 30 52 0 3
    item = 9005 Spirit_shield An_ethereal_shield. 82000 80000 53000 0 0 0 0 0 39 41 50 1 45 0 0
    item = 9006 Arcane_spirit_shield An_ethereal_shield_with_an_arcane_sigil_attached_t o_it. 82000 80000 53000 0 0 0 20 0 53 55 73 2 52 0 3
    These shields should be hard and extremely rare to obtain, and cost a lot of money, they are currently dropped by the level 785 Corporeal Beast in RuneScape as a rare drop. The monster has 2000HP and can NOT be solo'd. Now you should have an image of how rare these shields should be. The effects of the shields can be altered if you think they are too strong or too weak. They have the general effect of the same shields in RuneScape. Just altered percentages.

    What you have now:
    Elysian shield: Now while you have the Elysian Shield equipped and are getting attacked by a player, half the time it will decrease the damage you take from them by half. An example is: Say you have the shield equipped and you get hit for a 60, if you get lucky the damage will be reduced to 30 without draining any of your stats like the Divine shield.

    Divine shield: While your wearing the Divine shield, every single time you get hit by the enemy you will transfer 5 prayer to your shield decreasing the damage taken by the amount of prayer you have left divided by 2. The higher prayer you have the higher amount of damage you can decrease from the enemy. Say you have 99 prayer. You get hit by a 30. You will lose 5 prayer and decrease the damage taken by about 50 damage. Instantly taking away the damage taken and reducing it to 0. Making it an awesome item for pkers and stakers. Then the next blow will get reduced by 47 damage, because your prayer would be 94. The reduced damage gets weakened by 3 every blow.

    If you get an error about can't find the variable PlayerManager, change PlayerManager to PlayerHandler or whatever file your using to handle the players in your server.

    This was my first tutorial EVER I just began coding 3 days ago so it might be a little buggy but it works and is pretty awesome to use for PKING or other PvP. If you read this thread please post. Even though it isn't a complicated code I put a lot of effort into getting this to work because I'm still new to programming servers.
    Reply With Quote  
     

  2. #2  
    Registered Member blood rush20's Avatar
    Join Date
    Sep 2008
    Posts
    426
    Thanks given
    18
    Thanks received
    9
    Rep Power
    7
    very nice this is kinda like a prayer but way more advanced.
    Reply With Quote  
     

  3. #3  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    L Those shields look like some kind of deformed animal cracker.

    Anyways nice, but i won't use cause 99% of the new items are just crap
    Reply With Quote  
     

  4. #4  
    Donator

    Sir Lethal's Avatar
    Join Date
    Mar 2008
    Posts
    2,286
    Thanks given
    9
    Thanks received
    74
    Rep Power
    426
    Looks nice I guess .
    Reply With Quote  
     

  5. #5  
    Founder of MBScape & Xora

    Ryan.'s Avatar
    Join Date
    Oct 2008
    Posts
    1,509
    Thanks given
    53
    Thanks received
    49
    Rep Power
    312
    nice tut. ill add this tommarow
    Attached image
    Reply With Quote  
     

  6. #6  
    Donator

    Aeronix's Avatar
    Join Date
    Sep 2008
    Posts
    435
    Thanks given
    2
    Thanks received
    8
    Rep Power
    134
    You should add pictures or a video :/. Anyways good job.
    Reply With Quote  
     

  7. #7  
    F0rerunner
    Guest
    Quote Originally Posted by blood rush20 View Post
    very nice this is kinda like a prayer but way more advanced.
    The divine shield is more like prayer. The Elysian shield has nothing to do with it .

    Quote Originally Posted by pro k0er View Post
    L Those shields look like some kind of deformed animal cracker.

    Anyways nice, but i won't use cause 99% of the new items are just crap
    Lol. I thought they looked weird too but I'm adding most of the new things that are coming to rs to my server. Plus, they pretty good for PvP.

    Quote Originally Posted by Dark. View Post
    Looks nice I guess .
    Thanks man, glad you liked it.

    Quote Originally Posted by Ryan™ View Post
    nice tut. ill add this tommarow
    Cool. Tell me if you get any errors or not.

    Quote Originally Posted by FusionBird View Post
    You should add pictures or a video :/. Anyways good job.
    Thanks. Also, No point in pictures. The thread that gives you the models already has pictures and the effect doesn't have a GFX.

    Anyone know where I can find the tut for the health bars in my sig?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Chachi's Avatar
    Join Date
    Sep 2008
    Posts
    1,536
    Thanks given
    49
    Thanks received
    103
    Rep Power
    602
    Very Nice Man Good Job! Rep'ed.
    Also the hp bars kind of look like the hp bars in deltas client.
    [/CENTER]
    Reply With Quote  
     

  9. #9  
    ( ͡° ͜ʖ ͡°)
    Edgeville's Avatar
    Join Date
    Nov 2007
    Posts
    2,453
    Thanks given
    80
    Thanks received
    428
    Rep Power
    2589
    Nice, Thanks.

    Attached image
    Reply With Quote  
     

  10. #10  
    F0rerunner
    Guest
    Quote Originally Posted by Chachi View Post
    Very Nice Man Good Job! Rep'ed.
    Also the hp bars kind of look like the hp bars in deltas client.
    Awesome thanks! Gotta check out delta now. Thanks for the rep .

    Quote Originally Posted by Kyle. View Post
    Nice, Thanks.
    Glad you found this useful.
    Reply With Quote  
     

Page 1 of 6 123 ... 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
  •