very nice this is kinda like a prayer but way more advanced.
|
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:
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:boolean Attack()
3. Now just compile your server and your finished.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;
}
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.
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.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
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.
very nice this is kinda like a prayer but way more advanced.
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
You should add pictures or a video :/. Anyways good job.
The divine shield is more like prayer. The Elysian shield has nothing to do with it .
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.
Thanks man, glad you liked it.
Cool. Tell me if you get any errors or not.
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?
Very Nice Man Good Job! Rep'ed.
Also the hp bars kind of look like the hp bars in deltas client.
Nice, Thanks.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |