Skip to content

Instantly share code, notes, and snippets.

View Cakemix1337's full-sized avatar

Cake Cakemix1337

  • CAKEISSOFUKKINAWESOMEIJUSTWANTTOHUGITALLDAYLONG.com
View GitHub Profile
@Cakemix1337
Cakemix1337 / gist:4240147
Created December 8, 2012 12:54
ShitDung
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
@Cakemix1337
Cakemix1337 / gist:3162520
Created July 23, 2012 08:13
NPC Dump 722
This file has been truncated, but you can view the full file.
//Dumped by cakemix to readable.
"Hans" [id = 0, visible on map = true, combat level = 0, attackable = false, member = false, actions = [Talk-to]],
"Man" [id = 1, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
"Man" [id = 2, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
"Man" [id = 3, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
"Woman" [id = 4, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
"Woman" [id = 5, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
"Woman" [id = 6, visible on map = true, combat level = 2, attackable = true, member = false, actions = [Talk-to, Attack, Pickpocket]],
0:Dwarf remains:317
1:Tool kit:317
2:Cannonball:317
3:Nulodion's notes:317
4:Ammo mould:317
5:Instruction manual:317
6:Cannon base:317
7:Cannon base:317
8:Cannon stand:317
9:Cannon stand:317
@Cakemix1337
Cakemix1337 / gist:3155330
Created July 21, 2012 10:01
itemdb json dump
This file has been truncated, but you can view the full file.
Super strength (4)
Super attack (4)
Super defence (4)
Saradomin brew (4)
Super restore (4)
Saradomin brew (1)
Saradomin brew (2)
[NAME||TAGS||MEMBERS||QUEST - 2012/06/23 12:50:51]
Abyssal vine whip||Weapon||false||false
Abyssal whip||Weapon||false||false
Adamant 2h sword||Melee,Weapon||false||false
Adamant battleaxe||Melee,Weapon||false||false
Adamant cane||Weapon||false||false
Adamant ceremonial sword i||Melee,Weapon||false||false
Adamant ceremonial sword ii||Melee,Weapon||false||false
Adamant ceremonial sword iii||Melee,Weapon||false||false
Adamant ceremonial sword iv||Melee,Weapon||false||false
@Cakemix1337
Cakemix1337 / Quests.java
Created June 18, 2012 20:19
Quests api
import java.util.ArrayList;
import org.powerbot.game.api.methods.Widgets;
import org.powerbot.game.api.wrappers.widget.WidgetChild;
/**
* Quest related methods
*
* @author Cakemix
@Cakemix1337
Cakemix1337 / Colors.java
Created June 1, 2012 16:39
Java Colors
import java.awt.Color;
public class Colors {
/* Parse with PHP by Cakemix */
/* Parsed from http://en.wikipedia.org/wiki/List_of_colors */
public static Color AirForceblueRAF = new Color(0x5D8AA8);
public static Color AirForceblueUSAF = new Color(0x00308F);
public static Color Airsuperiorityblue = new Color(0x72A0C1);
@Cakemix1337
Cakemix1337 / getImage.java
Created April 26, 2012 14:11
getImage method
public Image getImage(String URL, String location) {
Image image = null;
try {
if(!location.endsWith("/") && !location.endsWith("\\") && !location.trim().empty())
location.concat("/");
URL url = new URL(URL);
File file = new File(location + url.getFile());
@Cakemix1337
Cakemix1337 / appdatafinder.java
Created April 20, 2012 09:28
%appdata% finder
private File appFileFinder(String folder, String file) {
String OS = System.getProperty("os.name").toUpperCase();
if (OS.contains("WIN")) {
if (new File(System.getenv("APPDATA")).exists()) {
if (!new File(System.getenv("APPDATA") + "/"+folder).exists()) {
new File(System.getenv("APPDATA") + "/"+folder).mkdirs();
}
return new File(System.getenv("APPDATA") + "/"+folder+"/" );