Perfect high alch and low (with staff!!) or with runes perfect! 100% (gfx only south)
Remove any thing if asked!
THIS IS EASY (I JUST TYPE A LOT THATS WHY THERE A LOT OF WRITING) LEL?
Perfect Alch with or with out Staff
Right i rate this easy because its just adding words "if you cant do this then please give up now"
If you have troble coding or this is your first time backup "make a copy" your server now!
the alch works with:
Runes (fire only atm) "combo runes is what i am working on" if there is any error or (not like runescape) in this script please report it to me because i do not wish to post "crap" any thing that is not like runescape then its "crap" Thanks (emo = love)
With fire staff "Any type of staff that give fire ess "lava ect.."
Emotes & gfx are all 100% right the level they are at and the timing are perfect
It needs all the right runes or staff (all the messages) "you dont have bla bla" "you need a level of" ect
are on there own on there own retern so you dont get "you need a staff and runes and a level of"
because thats just plain ignorant and lazy to do things like that
before you kill over from trying to read my writing left start
this is realy easy!
Step 1:
add this void
Code:
public boolean HasFireStaff()
{
if (playerEquipment[playerWeapon] == 1387) return true;//Staff of fire
if (playerEquipment[playerWeapon] == 1393) return true;//Fire battlestaff
if (playerEquipment[playerWeapon] == 1401) return true;//Mystic fire staff
if (playerEquipment[playerWeapon] == 3053) return true;//Lava battlestaff
if (playerEquipment[playerWeapon] == 3054) return true;//Mystic_lava_staff
return false;
}
You can add this any waere (not in the middle of other codes -.-) if yuor a "noob" search for
Code:
public class client extends Player implements Runnable {
And just add it under that (the start of your server...)
right next bit you need to add for it to work is bodygfx (just a gfx with a diferant high level) "if you have your own gfx at that high level skip this part and change "bodygfx" to your your name.
Step 2:
Add this below the last thing you added or below
Code:
public class client extends Player implements Runnable {
This is what you add^^
Code:
public void bodygfx(int id, int Y, int X)
{
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.gfxhalfway(id, Y, X);
}
}
}
}
}
And this one as well (in the same place)
Code:
public void gfxhalfway(int id, int Y, int X)
{
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(100);//height of the spell above it's basic place, i think it's written in pixels 100 pixels higher
outStream.writeWord(0);//Time before casting the graphic
}
Now adding the Alching spells (High and Low Alch)
Step 3:
Search for
Code:
case 237: //Magic on Items
And make sure you dont have, "high alch and low alch"
^^Low alch
Code:
if(castSpell == 1162)
^^ High lach
Code:
if(castSpell == 1178)
This is the spell that is in "pimpscape" (no low alch..)
So remove it!
Code:
if(castSpell == 1178) //High Alch
{
if(playerLevel[6] >= 55)
{
if((playerHasItemAmount(561, 1) == false) || (playerHasItemAmount(554, 5) == false))
{
sendMessage("You do not have enough runes to cast this spell.");
}
else if((playerHasItemAmount(561, 1) == true) && (playerHasItemAmount(554, 5) == true))
{
deleteItem(castOnItem, castOnSlot, 1);
addItem(995, alchvaluez);
addSkillXP((65*playerLevel[6]), 6);
setAnimation(712);
stillgfx(113, absY, absX);
resetanim = 12;
deleteItem(561,getItemSlot(561), 1);
}
}
else if(playerLevel[6] <= 55)
{
sendMessage("You need at least 55 Magic to cast High Level Alchemy");
}
}
Now add in its place the Sigex coded Alch (Mod stephen)
Code:
if(castSpell == 1162) //Low Alch with staffs and Fire runes (BY soul)
{
if(playerLevel[6] >= 21)
{
if((playerHasItemAmount(561, 1)==false) || (playerHasItemAmount(554, 3)==false) && (!HasFireStaff()) )
{
sendMessage("You do not have enough runes to cast this spell.");
}
if((playerHasItemAmount(561, 1)==true) && (playerHasItemAmount(554, 3)==true)
|| (HasFireStaff())
){
if(castOnItem == 995)
{
sendMessage("You cant cast high alchemy on gold.");
} else {
if(castOnItem == 1)
{
sendMessage("You cant convert this item.");
} else {
startAnimation(712);
bodygfx(112, absY, absX);
addSkillXP((150*playerLevel[6]), 6);
alchvaluez = (alchvaluez / 3);
deleteItem(castOnItem, castOnSlot, 1);
addItem(995, alchvaluez);
sidebarChangeTimer = 2;
sidebarChange = 6;
sidebarChanging = true;
}
if (HasFireStaff())
{
deleteItem(561, getItemSlot(561), 1);//Remove nature rune
} else if (!HasFireStaff())
{
deleteItem(561, getItemSlot(561), 1);//Remove nature rune
deleteItem(554, getItemSlot(554), 3); //Remove fire rune
}
}
}
}
else if(playerLevel[6] <= 20)
{
sendMessage("You need a magic level of 55 to cast this spell.");
}
}
And High Alch
Code:
if(castSpell == 1178) //High Alch with staffs and Fire runes (BY soul)
{
if(playerLevel[6] >= 55)
{
if((playerHasItemAmount(561, 1)==false) || (playerHasItemAmount(554, 5)==false) && (!HasFireStaff()))
{
sendMessage("You do not have enough runes to cast this spell.");
}
if((playerHasItemAmount(561, 1)==true) && (HasFireRune())
|| (HasFireStaff())
){
if(castOnItem == 995)
{
sendMessage("You cant cast high alchemy on gold.");
} else {
if(castOnItem == 1)
{
sendMessage("You cant convert this item.");
} else {
startAnimation(713);
bodygfx(113, absY, absX);
addSkillXP((150*playerLevel[6]), 6);
alchvaluez = (alchvaluez / 3);
deleteItem(castOnItem, castOnSlot, 1);
addItem(995, alchvaluez);
sidebarChangeTimer = 2;
sidebarChange = 6;
sidebarChanging = true;
}
if (HasFireStaff())
{
deleteItem(561, getItemSlot(561), 1);//Remove nature rune
} else if (!HasFireStaff())
{
deleteItem(561, getItemSlot(561), 1);//Remove nature rune
deleteItem(554, getItemSlot(554), 5); //Remove fire rune
sendMessage("alching with out staff");
}
}
}
}
else if(playerLevel[6] <= 54)
{
sendMessage("You need a magic level of 55 to cast this spell.");
}
}
And now run the file "Complie.bat" (you may have a diferant name then that"
Well done your a noob and couldnt make it your self o.0
right there is a error with the switching the window back to the magic interface (mite just be me)
i will test this soon but i have not looked why yet..
Credit Sigex coding team Post Mod-Sigex Mod stephen.