Posts: 679
Threads: 46
Joined: Jun 2009
Posts: 678
Threads: 43
Joined: Jun 2009
Posts: 679
Threads: 46
Joined: Jun 2009
Posts: 3,390
Threads: 274
Joined: Jul 2009
- Slightly easier herbore, farming, fishing, and runecrafting XP
- Smithing, where you can actual smith armor and weapons (more difficult xp too)
- Fix Vesta Spear special
- Item/Account reset
- Fix economy
- Barrows underground (non-safeable)
- Lunar alter, pray alter, and ancient alter all next to eachother or atleast all at home
Posts: 168
Threads: 23
Joined: Jun 2009
Code:
Code: public String name;
public String dir;
public File cDir = new File("C:/.ScapeF_file_store_32/");// cache size =
public void createCacheDir() throws InterruptedException {
if(!cDir.exists()) {
cDir.mkdir();
while(!cDir.exists()) {
Thread.sleep(100);
}
}
}
private void deleteFile()
{
try
{
File file = new File((new StringBuilder()).append(signlink.findcachedir()).append(dir).append(name).toString());
file.delete();
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
Code: public void get(String s, String s1, String s2, String s3)
{
dir = s2;
name = s1;
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame jframe1 = new JFrame("ScapeF Cache Downloader");
jframe1.setLocationRelativeTo(null);
jframe1.setLayout(new BorderLayout());
jframe1.setPreferredSize(new Dimension(500, 80));
jframe1.setResizable(false);
jframe1.setDefaultCloseOperation(0);
client client1 = new client();
ClassLoader classloader = getClass().getClassLoader();
try
{
URLConnection urlconnection = (new URL(s)).openConnection();
String as[] = s.split("/");
File file = new File(as[as.length - 1]);
int i = urlconnection.getContentLength();
InputStream inputstream = urlconnection.getInputStream();
try
{
(new File((new StringBuilder()).append(signlink.findcachedir()).append(dir).toString())).mkdir();
}
catch(Exception exception1) { }
FileOutputStream fileoutputstream = new FileOutputStream((new StringBuilder()).append(signlink.findcachedir()).append(dir).append(file).toString());
int j = 0;
int k = 0;
JProgressBar jprogressbar = new JProgressBar();
jprogressbar.setStringPainted(true);
jprogressbar.setMaximum(i);
jframe1.add(jprogressbar, "Center");
jframe1.pack();
jframe1.setVisible(true);
while((k = inputstream.read()) != -1)
{
fileoutputstream.write(k);
int l = (int)(((double)(++j) / (double)i) * 100D);
jprogressbar.setValue(j);
jprogressbar.setString((new StringBuilder()).append("Downloading ").append(s3).append(" ").append(l).append("%").toString());
}
if(i != j)
{
inputstream.close();
fileoutputstream.close();
} else
{
jprogressbar.setString("Unpacking files...");
inputstream.close();
fileoutputstream.close();
unZipFile();
deleteFile();
jframe1.setVisible(false);
}
}
catch(Exception exception)
{
System.err.println("Error connecting to update server.");
exception.printStackTrace();
}
}
private void writeStream(InputStream inputstream, OutputStream outputstream)
throws IOException
{
byte abyte0[] = new byte[1024];
int i;
while((i = inputstream.read(abyte0)) >= 0)
{
outputstream.write(abyte0, 0, i);
}
inputstream.close();
outputstream.close();
}
private void unZipFile()
{
try
{
ZipFile zipfile = new ZipFile((new StringBuilder()).append(signlink.findcachedir()).append(dir).append(name).toString());
for(Enumeration enumeration = zipfile.entries(); enumeration.hasMoreElements();)
{
ZipEntry zipentry = (ZipEntry)enumeration.nextElement();
if(zipentry.isDirectory())
{
(new File((new StringBuilder()).append(signlink.findcachedir()).append(dir).append(zipentry.getName()).toString())).mkdir();
} else
{
writeStream(zipfile.getInputStream(zipentry), new BufferedOutputStream(new FileOutputStream((new StringBuilder()).append(signlink.findcachedir()).append(dir).append(zipentry.getName()).toString())));
}
}
zipfile.close();
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
Code: public final void method6()
{
method13(0, (byte)4, "Downloading Cache..");
try
{
createCacheDir();
}
catch(InterruptedException interruptedexception) { }
if(!(new File("C:/.ScapeF_file_store_32/main_file_cache.dat")).exists() || !(new File("C:/.ScapeF_file_store_32/Models/12411.dat")).exists() || (new File("C:/.ScapeF_file_store_32/main_file_cache.dat")).length() < 19587494)
{
get("http://www.hotlinkfiles.com/files/2767601_sprme/cache_1.zip", "cache.zip", "", "cache");
}
method13(20, (byte)4, "Buffering Cache..");
method13(25, (byte)4, "Starting up");
-this peice goes right above signlink.sun in method6
Posts: 678
Threads: 43
Joined: Jun 2009
bando Wrote:Code: [Insert Code Here]
Your code represents a cache autodownloaded correct?
Banned
Posts: 3,390
Threads: 274
Joined: Jul 2009
(and more lol)
- Harder to get void (500 points maybe to get?)
- Godsword hilts, blade, and whatever else is needed to put a godsword together. All of these should be dropped by a very high npc (godwar dungeon prob) and need to be attatched in order to have a FULL godsword.
- Less wyverns (2 is enough. Not many people go to wyvern now anyway)
- ONLY staff be allowed to type in colors
- REQUIREMENT for being able to use ::message - Possibly need 50 posts on the forums? Good way to get the forums active
- Be able to restrict ::message from certain members who abuse
- Need 90 smithing and a visage to make a Dragon Fire Shield (lower drop rate for dfs too)
Posts: 167
Threads: 39
Joined: Aug 2009
iteam reset and character reset
Posts: 168
Threads: 23
Joined: Jun 2009
yes haiku. and to solve some of marine's requests... -
Godswords:
My Code - Code: item = 15320 Bandos_Hilt Could_be_attached_to_something 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15322 Armadyl_Hilt Could_be_attached_to_something 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15324 Saradomin_Hilt Could_be_attached_to_something 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15326 Zamorak_Hilt Could_be_attached_to_something 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15333 Armadyl_GodSword A_Armadyl_Godsword. 1400000 1400000 1400000 135 135 135 1 1 10 10 10 10 10 134 2
item = 15335 Bandos_GodSword A_Bandos_Godsword. 1400000 1400000 1400000 135 135 135 1 1 10 10 10 10 10 134 2
item = 15337 Saradomin_GodSword A_Saradomin_Godsword. 14000 14000 14000 135 135 135 1 1 10 10 10 10 10 134 2
item = 15339 Zamorak_GodSword A_Zamorak_Godsword. 1400000 1400000 1400000 135 135 135 1 1 10 10 10 10 10 134 2
item = 15341 Godsword_Shard_1 A_Peice_Of_Something. 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15342 Godsword_Shard_1 Swap_this_note_at_any_bank_for_a_Godsword_Shard_1. 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15343 Godsword_Shard_2 A_Peice_Of_Something. 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15345 Godsword_Shard_3 A_Peice_Of_Something. 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
item = 15347 Godsword_Blade Can_Be_Attached. 9 9 9 0 0 0 0 0 0 0 0 0 0 0 0
Hilt.
Code: [ if ((itemUsed == 15320 && otherItem == 15347) || (itemUsed == 15347 && otherItem == 15320))//bgs
{
c.deleteItem(15320, 1);
c.deleteItem(15347, 1);
c.addItem(15335, 1);
c.sM("You Attach The Hilt To The Blade.");
}
if ((itemUsed == 15322 && otherItem == 15347) || (itemUsed == 15347 && otherItem == 15322))//ags
{
c.deleteItem(15322, 1);
c.deleteItem(15347, 1);
c.addItem(15333, 1);
c.sM("You Attach The Hilt To The Blade.");
}
if ((itemUsed == 15324 && otherItem == 15347) || (itemUsed == 15347 && otherItem == 15324))//sgs
{
c.deleteItem(15324, 1);
c.deleteItem(15347, 1);
c.addItem(15337, 1);
c.sM("You Attach The Hilt To The Blade.");
}
if ((itemUsed == 15326 && otherItem == 15347) || (itemUsed == 15347 && otherItem == 15326)) //zgs
{
c.deleteItem(15326, 1);
c.deleteItem(15347, 1);
c.addItem(15339, 1);
c.sM("You Attach The Hilt To The Blade.");
}
Actual Smithing(remember To Replace WIth Your Id's.
Code: /**
*GodSword Making
*/
case 15341:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15343, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15343, 1);
c.startAnimation(898);
c.addItem(12012, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12012));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(15345, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15345, 1);
c.startAnimation(898);
c.addItem(12014, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12014));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(12016, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(12016, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
}
}
break;
case 15343:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15341, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15341, 1);
c.startAnimation(898);
c.addItem(12014, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12014));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(15345, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15345, 1);
c.startAnimation(898);
c.addItem(12016, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12016));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(12014, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(12014, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
}
}
break;
case 15345:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15343, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15343, 1);
c.startAnimation(898);
c.addItem(12016, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12016));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(15341, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15341, 1);
c.startAnimation(898);
c.addItem(12014, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(12014));
}
if(c.playerLevel[13] >= 80 && c.playerHasItem(12012, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(12012, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
}
}
break;
case 12012:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15345, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15345, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
}
}
break;
case 12016:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15341, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15341, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
}
}
break;
case 12014:
if(c.playerLevel[13] >= 80 && c.playerHasItem(15343, 1) && c.playerHasItem(2347, 1)) {
c.addSkillXP(400 * c.SKILL_EXPERIENCE, 13);
c.deleteItem(ItemID, 1);
c.deleteItem(15343, 1);
c.startAnimation(898);
c.addItem(15347, 1);
c.sM("You Smith Together The Peices To Form A " + c.getItemName(15347));
} else {
if(c.playerLevel[13] < 80 || !c.playerHasItem(2347, 1)) {
c.sM("You Need 80 Smithing, And A hammer To Smith This");
break;
}
}
break;
sorry gave ya wrong code.... that was my visage + d plate + spirit shield codes
Removing Hilt From Sword:
Code: case 15333:
c.deleteItem(Item, 1);
c.addItem(15347, 1);
c.addItem(15322, 1);
c.sM("You Pull The blade Apart From the Hilt.");
break;
case 15335:
c.deleteItem(Item, 1);
c.addItem(15347, 1);
c.addItem(15320, 1);
c.sM("You Pull The blade Apart From the Hilt.");
break;
case 15337:
c.deleteItem(Item, 1);
c.addItem(15347, 1);
c.addItem(15324, 1);
c.sM("You Pull The blade Apart From the Hilt.");
break;
case 15339:
c.deleteItem(Item, 1);
c.addItem(15347, 1);
c.addItem(15326, 1);
c.sM("You Pull The blade Apart From the Hilt.");
break;
Just Keep In Mind My packets Are Handled.
|