• Log in or sign up for an account here: https://www.sythe.org/login

D2H eemote

  • Thread starter Thread starter pk3r kyle
  • Start date Start date
P

pk3r kyle

Guest
Purpose: To make your server have D2H Special Attack

Server Base: Any

Difficulty: 2-4

Classes modified: client.java

STEP 1:

add these void and ints
Code:
public void Dragon2hSpecial(){								  				
	if (playerEquipment[playerWeapon] == 7158 && SpecialDelay >= 6 && (inwildy2) {
	stillgfx(246,absY,absX);		
	updateRequired = true;
        appearanceUpdateRequired = true;	//Animation
	AnimationReset = true;		//Animation
	setAnimation(3157);		//emote
	actionTimer = 5;			//Timer to reset animation
	teleportToX = absX;			// not to move
	teleportToY = absY;			//not to move xD
	attackPlayersPrayer(50, 2);
	sendMessage("You Thrash the Dragon 2H in the ground and create a Massive Quake Around you!");
	SpecialDelay -= 6;
	} else if(SpecialDelay <= 6) {
	sendMessage("You don't have enough power.");
}

public int SpecialDelay;
public int SpecDelay;

public void checkSpec() { 
		if (spec == 0)
		{
			specbar = "@red@~~specials~~";
		}
		if (spec == 1)
		{
			specbar = "@gre@[@red@@~~specials~~";
		}
		if (spec == 2)
		{
			specbar = "@gre@@red@@~~specials~~";
		}
		if (spec == 3)
		{
			specbar = "@gre@@red@@~~special~~";
		}
		if (spec == 4)
		{
			specbar = "@gre@~@red@@~specials~~";
		}
		if (spec == 5)
		{
			specbar = "@gre@~~@red@@specials~~";
		}
		if (spec == 6)
		{
			specbar = "@gre@~~s@red@pecials~~";
		}
		if (spec == 7)
		{
			specbar = "@gre@~~sp@red@ecials~~";
		}
		if (spec == 8)
		{
			specbar = "@gre@~~spe@red@cials~~";
		}
		if (spec == 9)
		{
			specbar = "@gre@~~spec@red@ials~~";
		}
		if (spec == 10)
		{
			specbar = "@gre@~~speci@red@als~~";
		}
		if (spec == 11)
		{
			specbar = "@gre@~~specia@red@ls~~";
		}
		if (spec == 12)
		{
			specbar = "@gre@~~special@red@s~~";
		}
		if (spec == 13)
		{
			specbar = "@gre@~~specials@red@~~";
		}
		if (spec == 14)
		{
			specbar = "@gre@~~specials~@red@~";
		}
		if (spec == 15)
		{
			specbar = "@gre@~~specials~~@red@";
		}


      }

STEP 2:

add this in you public boolean process()

Code:
        if(SpecialDelay <= 9)
            SpecDelay++;
        if(SpecDelay == 50)
        {
            SpecialDelay++;
            SpecDelay = 0;
        }
        CheckBar();

STEP 3:

find
Code:
case 168:

and replace it with

Code:
case 168:
Dragon2hSpecial();
break;

Your Done!

Now when ever you press the "Yes" emote button it will do the Dragon@h spec Only if it is in wilderness, or else it won't becuase it can only damage players. Again Please donot post this on any other forums. You can change the case button if you want. That would be all.
[/quote]
 
Runescape Gamblingrunescape gambling
Back
Top