Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
D2H eemote
 
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-15-2007, 10:57 AM
pk3r kyle
 
Posts: n/a
Default D2H eemote

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]
 



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1