vengence emote id and skull for client side
Quote:
Well since Brandon and my client seems to have an unkown error causing crashes on login, I will release this for those of you who would like to add the vengeance gfx to your client.
First you need to have done Kevin's Model Adding Tut
Second, you need the model 16828,
( [Only registered and activated users can see links. Click Here To Register...] )
Third, you need to compress it into a gzip format
Fourth, rename it to 5802.gz
Fith, add it into client's Models folder
Sixth, Login on your client, and type
Finally, Logout, restart your client, and login.
To Display the Skull:
you display the skull using the stillgfxz method...
Usage:
Code:
stillgfxz(342, absY, absX, 100, 0);
If you need the stillgfxz method:
Code:
public void stillgfxz(int id, int Y, int X, int height, int time)
{
for (Player p : server.playerHandler.players)
{
if(p != null)
{
client person = (client)p;
if((person.playerName != null || person.playerName != "null"))
{
if(person.distanceToPoint(X, Y) <= 60)
{
person.stillgfxz2(id, Y, X, height, time);
}
}
}
}
}
public void stillgfxz2(int id, int Y, int X, int height, int time)
{
outStream.createFrame(85);
outStream.writeByteC(Y - (mapRegionY * 8));
outStream.writeByteC(X - (mapRegionX * 8));
outStream.createFrame(4);
outStream.writeByte(0);//Tiles away (X >> 4 + Y & 7)
outStream.writeWord(id);//Graphic id
outStream.writeByte(height);//height of the spell above it's basic place, i think it's written in pixels 100 pixels higher
outStream.writeWord(time);//Time before casting the graphic
}
thats teh skull.
add this @ server side.
Code:
public void veng(){
stillgfxz(342, absY, absX, 90, 0);
txt4 = "Taste Vengeance!";
setAnimation(1914);
string4UpdateRequired = true;
}
ok opstsion:
fine
and replace that with
Code:
case 51039:
veng();
break;
there we are that will replace you're ghoorck tele with vengence
opsiton:
add this with you're spirts
[Only registered and activated users can see links. Click Here To Register...]
and this
[Only registered and activated users can see links. Click Here To Register...]
name em:
vengon.PNG
&
vengoff.PNG
ok now then add this
Step 3: Now open Class30_Sub2_Sub1_Sub1 and paste under
Code:
if (s.startsWith("back"))
This code:
Code:
else if (s.equalsIgnoreCase("MAGICON2") && i == 29)
{
try
{
Image image = Toolkit.getDefaultToolkit().getImage("./sprites/vengon.png");
anInt1440 = 33;
anInt1441 = 37;
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
}
catch (Exception exception)
{
System.out.println(((Object) (exception)));
}
}
else if (s.equalsIgnoreCase("magicoff2") && i == 29)
{
try
{
Image image = Toolkit.getDefaultToolkit().getImage("./sprites/vengoff.png");
anInt1440 = 33;
anInt1441 = 37;
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
}
catch (Exception exception)
{
System.out.println(((Object) (exception)));
}
}
This will replace your Teleport to Ghorrock Sprite to the Vengeance Skull Sprite
thanx to:
jukk,mage owner,i jonas i and me.
:woot::d:s:);)