Advertisement
Guest User

Untitled

a guest
Oct 29th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 75.88 KB | None | 0 0
  1. package Sirens.model.player;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.FileReader;
  5. import java.io.IOException;
  6. import java.io.InputStreamReader;
  7. import java.io.Serializable;
  8. import java.lang.reflect.Method;
  9. import java.net.MalformedURLException;
  10. import java.net.URL;
  11. import java.util.ArrayList;
  12. import java.util.Calendar;
  13. import java.util.Date;
  14. import java.util.GregorianCalendar;
  15. import java.util.LinkedList;
  16. import java.util.List;
  17. import java.util.Queue;
  18.  
  19. import Sirens.Server;
  20. import Sirens.model.Animation;
  21. import Sirens.model.Entity;
  22. import Sirens.model.Graphics;
  23. import Sirens.model.Heal;
  24. import Sirens.model.Hits;
  25. import Sirens.model.Hits.Hit;
  26. import Sirens.model.Hits.HitType;
  27. import Sirens.model.Item;
  28. import Sirens.model.ItemReset;
  29. import Sirens.model.World;
  30. import Sirens.model.interface_definitions.AchievementTab;
  31. import Sirens.model.interface_definitions.CommandsTab;
  32. import Sirens.model.interface_definitions.QuestTab;
  33. import Sirens.model.player.clan.Clan;
  34. import Sirens.model.player.clan.ClanManager;
  35. import Sirens.net.Frames;
  36. import Sirens.net.Packets;
  37. import Sirens.net.codec.ConnectionHandler;
  38. import Sirens.skills.fishing.Fishing;
  39. import Sirens.skills.mining.Mining;
  40. import Sirens.skills.prayer.Prayer;
  41. import Sirens.skills.woodcutting.WoodCutting;
  42. import Sirens.util.Misc;
  43. import Sirens.util.RSTile;
  44. import Sirens.util.Serializer;
  45. import mysql.Donation;
  46. import Sirens.model.player.Appearence;
  47. import Sirens.model.player.Banking;
  48. import Sirens.model.player.CombatDefinitions;
  49. import Sirens.model.player.Dialogue;
  50. import Sirens.model.player.DonatorRights;
  51. import Sirens.model.player.DuelArena;
  52. import Sirens.model.player.Equipment;
  53. import Sirens.model.player.Gni;
  54. import Sirens.model.player.Gpi;
  55. import Sirens.model.player.HintIconManager;
  56. import Sirens.model.player.InterfaceManager;
  57. import Sirens.model.player.Inventory;
  58. import Sirens.model.player.Mask;
  59. import Sirens.model.player.MinigameManager;
  60. import Sirens.model.player.MusicManager;
  61. import Sirens.model.player.Player;
  62. import Sirens.model.player.PriceCheck;
  63. import Sirens.model.player.Skills;
  64. import Sirens.model.player.StaffRights;
  65. import Sirens.model.player.TradeSession;
  66.  
  67. public class Player extends Entity implements Serializable {
  68.     public Entity npc_target;
  69.     public boolean Attacking = false;
  70.     public boolean clickedAttack = false;
  71.     public transient int slot, inputId, itemID;
  72.     public boolean myyelldiasbled = false;
  73.     public transient int FollowingId;
  74.     // Clan chat
  75.     public int hacker = 0;
  76.     public transient boolean protectItem = false;
  77.     public transient Clan currentlyTalkingIn = null;
  78.     public boolean duel_timer = false;
  79.     public int tele;
  80.     public boolean fishing = false;
  81.     public int fishtimer = 0;
  82.     public int fishitem = 0;
  83.     public int fishreqt = 0;
  84.     public int fishreq2 = 0;
  85.     public int fishies2 = 0;
  86.     public Item needs_pick_up;
  87.     public int needs_pick_up_x = 0;
  88.     public int needs_pick_up_y = 0;
  89.  
  90.     public boolean forummod = false;
  91.     public int fishies = 0;
  92.     public int fishemote = 0;
  93.     public int clickObjectType = 0;
  94.     public int last_randomization = 0;
  95.     public String last_randomization_name = "None";
  96.     public boolean attemptingfish = false;
  97.     public int fishXP = 0;
  98.     public int dicer_toggle = 0;
  99.     public int dicer_rank = 0;
  100.     public boolean isdepositing = false;
  101.     public boolean iswithdrawing = false;
  102.     public int ZoomWalk = 0;
  103.     public int displaystatus = 0;
  104.     public String lastIP = "";
  105.     public boolean accountLock = false;
  106.     public String myIP = "";
  107.     public int moneypouch = 0;
  108.     public boolean moneypouch1 = false;
  109.     public int targTimer;
  110.     public boolean needshelp = false;
  111.     public boolean readyforlottery = false;
  112.     public boolean FishEmoteOn = false;
  113.     public String isBanning = "";
  114.     public int helpwait = 0;
  115.     public String bhTarg = "";
  116.     public int itemgambled = 0;
  117.     public boolean headmod = false;
  118.     public int chooseSkill = 500;
  119.     public boolean premium = false;
  120.     public boolean colorchange = false;
  121.     public int bhWealth;
  122.     public int floor = 0;
  123.     public boolean isprivate = false;
  124.     public boolean wasaddingwithcustom = false;
  125.     public boolean inBh = false;
  126.     public int pmmode = 0;
  127.     public int wonLottery = 0;
  128.     public boolean coowner = false;
  129.     public boolean bannedlol = false;
  130.     public boolean moderator = false;
  131.     public String titlecolor = "";
  132.     public boolean isafk = false;
  133.     public int[][] playerSkillProp = new int[20][15];
  134.     public boolean customnametoggle = false;
  135.     public boolean ckey = false;
  136.     public boolean page1 = false;
  137.     public int ipsonline = 0;
  138.     public boolean support = false;
  139.     public boolean headadmin = false;
  140.     public boolean support1 = false;
  141.     public boolean isbeinghelped = false;
  142.     public boolean administrator = false;
  143.     public boolean owner = false;
  144.     public boolean hiddenadministrator = false;
  145.     public int hoursPlayed = 0;
  146.     public int TomeTimer = 0;
  147.     public boolean globalmod = false;
  148.     public boolean manager = false;
  149.     public int sharktimer = 0;
  150.     public boolean botstop = false;
  151.     // public String trader = "";
  152.     public String mutereason = "";
  153.     public String banreason = "";
  154.     public String mutetime = "";
  155.     public String bantime = "";
  156.     public String mutename = "";
  157.     public String daysForInfraction = "";
  158.     public String reasonForInfraction = "";
  159.     public int fishingAbsY = 0;
  160.     public int fishingAbsX = 0;
  161.     public String whenIsUnBanned = "";
  162.     public String banname = "";
  163.     public String customname = "";
  164.     public boolean resetShardbox = false;
  165.     public boolean isChanging = false;
  166.     public int renderEmote = 0;
  167.     public int tabbing = 0;
  168.     // Dialogues
  169.     public int optionsStage;
  170.     public int dialogueStage;
  171.     public boolean isOptions;
  172.     public String my_killer_name = "";
  173.  
  174.     // Voting
  175.     public int vote_total_record = 0;
  176.     public int vote_total_public = 0;
  177.     public boolean runelocus = false;
  178.     public boolean rspslist = false;
  179.     public boolean top100arena = false;
  180.  
  181.     // Skulling
  182.     public String skulledOn = "";
  183.     public boolean skulled = false;
  184.     public int skullTimer = 0;
  185.  
  186.     // Autocasting
  187.     public String autoCastSpell = "";
  188.     public boolean autocasting = false;
  189.  
  190.     // Configurations
  191.     public boolean following_player = false;
  192.  
  193.     // Account Information
  194.     public String mac_address = "None";
  195.     public String secured_mac_address = "None";
  196.  
  197.     // Connections
  198.     public String last_ip_address = "";
  199.     public String computer_address = "";
  200.     public String secured_ip_address = "127.0.0.1";
  201.  
  202.     // Fletching
  203.     public int fletching_log = 0;
  204.     public int fletching_identification = 0;
  205.     public int fletching_delay = 0;
  206.  
  207.     // Crafting
  208.     public int crafting_gem = 0;
  209.     public int crafting_identification = 0;
  210.     public int crafting_delay = 0;
  211.  
  212.     // Bank Pin
  213.     public int pin_1 = 0;
  214.     public int pin_2 = 0;
  215.     public int pin_3 = 0;
  216.     public int pin_4 = 0;
  217.     public boolean has_pin_set = false;
  218.  
  219.     // Ranks
  220.     public int rank = 0;
  221.     public int donator_rank = 0;
  222.     public String rank_shad = "0";
  223.     public String rank_color = "ffffff";
  224.     public int rank_crown = -1;
  225.     public String global_title = "Player";
  226.     public String rank_title = "Player";
  227.     public boolean has_set_title = false;
  228.     public long last_dice;
  229.     // Custom Titles
  230.     public int custom_title_toggle = 0;
  231.     public String custom_title = "None";
  232.     public String custom_color = "";
  233.     public String custom_shad = "";
  234.  
  235.     // Item Resets
  236.     public int item_reset_1 = 0;
  237.     public int item_reset_2 = 0;
  238.     public int item_reset_3 = 0;
  239.     public int item_reset_4 = 0;
  240.     public int item_reset_5 = 0;
  241.  
  242.     // Modes
  243.     public boolean matrixMode = false;
  244.  
  245.     // Achievement Tab
  246.     public int PK_POINTS = 0;
  247.     public int DONATION_POINTS = 0;
  248.     public int VOTE_POINTS = 0;
  249.     public int STRATEGY_POINTS = 0;
  250.     public int DUNG_POINTS = 0;
  251.     public int KILLSTREAK = 0;
  252.     public int KILLS = 0;
  253.     public int DEATHS = 0;
  254.     public int HIGHEST_KS = 0;
  255.     public int UNLIMITED_PRAYER = 0;
  256.     public int HOURS_PLAYED = 0;
  257.     public int TOTAL_VOTES = 0;
  258.     public int TOTAL_STAKES = 0;
  259.     public int STAKE_WINS = 0;
  260.     public int STAKE_LOSSES = 0;
  261.     public int STAKE_TIES = 0;
  262.  
  263.     // Control Panel's
  264.     public boolean spawncp = false;
  265.     public boolean admincp = false;
  266.  
  267.     /*
  268.      * fight pits
  269.      */
  270.     public int fightPitsWins;
  271.     public boolean needPitsReward;
  272.  
  273.     // COOKING
  274.     public int meleeSpecBar = 0;
  275.     public int shrimptimer = 0;
  276.     public int anchovietimer = 0;
  277.     public int karambanjitimer = 0;
  278.     public int sardinetimer = 0;
  279.     public int herringtimer = 0;
  280.     public int mackereltimer = 0;
  281.     public int trouttimer = 0;
  282.     public int codtimer = 0;
  283.     public int piketimer = 0;
  284.     public int slimyeeltimer = 0;
  285.     public int salmontimer = 0;
  286.     public int tunatimer = 0;
  287.     public boolean autoBanned = false;
  288.     public int caveeeltimer = 0;
  289.     public int lobstertimer = 0;
  290.     public int basstimer = 0;
  291.     public int swordfishtimer = 0;
  292.     public int lavaeeltimer = 0;
  293.     public int myassists = 0;
  294.     public int monkfishtimer = 0;
  295.     public int karambwantimer = 0;
  296.     public int cooksharktimer = 0;
  297.     public int seaturtletimer = 0;
  298.     public int mantaraytimer = 0;
  299.     public int rocktailtimer = 0;
  300.  
  301.     public int teleblockDelay = 0;
  302.     public int teleblockimmuneDelay = 0;
  303.     public int magicresist = 0;
  304.     public int curseDelay = 0;
  305.     public boolean allowed = false;
  306.     public transient long lastClanMessage;
  307.     public boolean resetShard = false;
  308.     public int bonusmagicdmg = 0;
  309.     public String colour = "00FF00";
  310.     public String onlinestatus = "Online";
  311.     public String Ranks;
  312.     // Dueling
  313.     public transient DuelArena currentDuelSession = null;
  314.     public transient Player duelPartner = null;
  315.     public transient boolean didRequestDuel = false;
  316.     public int answerx = 0;
  317.     public int answery = 0;
  318.     public int answerz = 0;
  319.     public transient boolean isInDuelArena = false;
  320.     public transient boolean testing99 = false;
  321.     public transient boolean isFollowing = false;
  322.     public transient boolean cantMove = false;
  323.     public boolean ecoreset7 = false;
  324.     public transient Player duelTemporaryPartner;
  325.     public int lastLogout = 0;
  326.  
  327.     // public int ping = 0;
  328.     public int warnings = 0;
  329.     public int levelset = 138;
  330.     public int WarningTeleport = 0;
  331.     public int WildTeleport = 0;
  332.     public int skillset = 0;
  333.     public int overload = 0;
  334.     public int AutoCastSpell = 0;
  335.     public int CanPm = 0;
  336.     public String myhost = "";
  337.     public int unlprayDelay = 0;
  338.     public int kicktimer = 0;
  339.     public boolean emergencyantiflood = false;
  340.     public int rewardtimer = 0;
  341.     public int afktimer = 0;
  342.     public int specpot = 0;
  343.     public int cookingtimer = 0;
  344.     public int vaulttaken = 0;
  345.     public int vault = 0;
  346.     public int fountain = 0;
  347.     public int tradetimer = 0;
  348.     public transient boolean kicktimer1 = false;
  349.     public byte ohair = 0;
  350.     public byte otorso = 0;
  351.     public byte olegs = 0;
  352.     public byte oarms = 0;
  353.     public byte obeard = 0;
  354.     public byte c1 = 0;
  355.     public int stanceEmote = 0;
  356.     public byte c2 = 0;
  357.     public byte c3 = 0;
  358.     public byte c4 = 0;
  359.     public byte c5 = 0;
  360.     public boolean isForumMod = false;
  361.  
  362.     public boolean doubleweekend = false;
  363.  
  364.     public boolean bluecolor = false;
  365.     public boolean redcolor = false;
  366.     public boolean yellowcolor = false;
  367.     public boolean orangecolor = false;
  368.     public boolean pinkcolor = false;
  369.     public boolean greencolor = false;
  370.     public boolean blackcolor = false;
  371.     public boolean purplecolor = false;
  372.  
  373.     public boolean edgevillerespawn = false;
  374.     public boolean varrockrespawn = false;
  375.     public boolean varrockbankrespawn = false;
  376.     public boolean RuneUnityrespawn = false;
  377.     public boolean fishingguildrespawn = false;
  378.     public boolean grandexchangerespawn = false;
  379.     public boolean draynorrespawn = false;
  380.     public boolean camelotrespawn = false;
  381.     public boolean faladorrespawn = false;
  382.     public boolean catherbyrespawn = false;
  383.     public boolean RESPAWN = false;
  384.     public boolean haxeddicejon = false;
  385.     public boolean AutoCast = false;
  386.     public int shrimp = 0;
  387.     public boolean ecoresett = true;
  388.     public boolean ToggleGfx = false;
  389.     public boolean loginmessage = false;
  390.     public boolean resetArrow = false;
  391.     public boolean resetNewitem = false;
  392.     public boolean prime = false;
  393.     public boolean resetNeweritem = false;
  394.     public boolean resetItem6 = false;
  395.     public int overloadstats = 0;
  396.     public int donatorPoints;
  397.     // Banking
  398.     public boolean inserting = false;
  399.     public boolean withdrawNote = false;
  400.     public int amountx = 0;
  401.  
  402.     // Bank Tabs
  403.     private int currentTab = 10;
  404.     public int[] tab = new int[9];
  405.  
  406.     public int votedcount = 0;
  407.     public int explosions = 0;
  408.     public boolean hackdice = false;
  409.     public boolean fishCB = true;
  410.     public boolean newaccount = false;
  411.     public boolean resetRing = false;
  412.     public boolean DoublePoints = false;
  413.     public boolean Skull = false;
  414.     public boolean dicehackz = false;
  415.     public boolean isNpc = false;
  416.     public boolean isMorphed = false;
  417.     public boolean gotRare3 = false;
  418.     public boolean didecoreset = false;
  419.     public boolean resetKite2 = false;
  420.     public boolean resetHat = false;
  421.     public transient int emoteId;
  422.     public boolean FinishedCaveofZaros = false;
  423.     public boolean StartedCaveofZaros = false;
  424.     public int voteitem = 0;
  425.     public boolean hasChangedname = false;
  426.     public boolean canChangename = false;
  427.     public String target;
  428.     public String badperson = "";
  429.     public int refresh = 0;
  430.     public boolean resetlamp = false;
  431.     public int secondscreen = 0;
  432.     public boolean autoRetaliate;
  433.     public int serverMessage = 6000;
  434.     public transient String requested = "";
  435.     public int BankPinNumber = 0;
  436.     public boolean needConfirm = false;
  437.     public boolean BankConfirm = false;
  438.     public boolean entered = false;
  439.     public boolean hasPin = false;
  440.     public int yellTimer = 0;
  441.     public int privateChatMode;
  442.     public boolean chatEffects = false;
  443.     public boolean yellremoved = false;
  444.     public boolean hasdonatortoggled = false;
  445.     public boolean hastrustedtoggled = false;
  446.     public boolean hasdicertoggled = false;
  447.     public boolean hasmmtoggled = false;
  448.     public boolean splitChat = false;
  449.     public boolean hasdicetitle = false;
  450.     public boolean hastrustedtitle = false;
  451.     public boolean hasmmtitle = false;
  452.     public boolean addingFriend = false;
  453.     public boolean addfriendcustomname = false;
  454.     public boolean diceRank = false;
  455.     public boolean mm = false;
  456.     public boolean trustedRank = false;
  457.     public int Sellx = 0;
  458.     public transient boolean duel = false;
  459.     public boolean myYellEnable = false;
  460.     // Input handler stuff
  461.     public transient boolean skullOption = false;
  462.     public transient boolean bankOption = false;
  463.     public transient boolean tradeOption = false;
  464.     public transient boolean duelOption = false;
  465.     public transient boolean clanOption = false;
  466.     // private Player clanSettings;
  467.     // public Clan currentClan;
  468.  
  469.     public int getXcoord() {
  470.         return this.getLocation().getX();
  471.     }
  472.  
  473.     public int skullCycles = 0;
  474.  
  475.     public int getSkullCycles() {
  476.         return skullCycles;
  477.     }
  478.  
  479.     public void renewSkull() {
  480.         setSkullCycles(20);
  481.     }
  482.    
  483.    
  484.    
  485.     public int fletchingLog = 0;
  486.     public int fletchingIdentification = 0;
  487.     public int fletchingDelay = 0;
  488.     public int craftingGem = 0;
  489.     public int craftingIdentification = 0;
  490.     public int craftingDelay = 0;
  491.     public boolean followingPlayer = false;
  492.  
  493.     public int secondScreen = 0;
  494.  
  495.  
  496.     public String onlineStatus = "Online";
  497.    
  498.     public boolean duelTimer = false;
  499.  
  500.  
  501.     public int ipsOnline = 0;
  502.  
  503.     public int itemGambled = 0;
  504.  
  505.     public int warningTeleport = 0;
  506.     public boolean botStop = false;
  507.     public long lastDice;
  508.  
  509.     public int lastRandomization = 0;
  510.     public String lastRandomizationName = "None";
  511.    
  512.  
  513.     //Saves
  514.     private String username;
  515.     private String displayName;
  516.     private String password;
  517.  
  518.     public int dfsHit = 0;
  519.     public long lastDfs;
  520.  
  521.     public int pkPoints = 0;
  522.  
  523.     public int strategyPoints = 0;
  524.     public int dungTokens = 0;
  525.     public int killstreak = 0;
  526.     public int dangerousKills = 0;
  527.     public int deaths = 0;
  528.     public int highestKs = 0;
  529.     public int unlimitedPrayer = 0;
  530.  
  531.     public int totalVotes = 0;
  532.     public int totalStakes = 0;
  533.     public int stakeWins = 0;
  534.     public int stakeLosses = 0;
  535.     public int stakeTies = 0;
  536.     public boolean toggleSkull = false;
  537.     public int primalTimer = 0;
  538.    
  539.     public int specPot = 0;
  540.     public int tomeTimer = 0;
  541.     public int magicResist = 0;
  542.     public String myMacAddress = "none";
  543.     public String myIpAddress = "none";
  544.     public String myComputerAddress = "none";
  545.     public String mySerialAddress = "none";
  546.     public int safeKills = 0;
  547.    
  548.     public int bonusMagicDamage = 0;
  549.     public int primalHitpoints = 0;
  550.     public int dicerRank = 0;
  551.     public boolean toggleName = false;
  552.     private int currentBankTab = 10;
  553.  
  554.     public boolean specialPlayer = false;
  555.  
  556.     //Default classes
  557.  
  558.     private StaffRights staffRights = StaffRights.PLAYER;
  559.     private DonatorRights donatorRights = DonatorRights.PLAYER;
  560.  
  561.  
  562.     public void openURL(String url) {
  563.         String osName = System.getProperty("os.name");
  564.         try {
  565.             if (osName.startsWith("Mac OS")) {
  566.                 Class<?> fileMgr = Class.forName("com.apple.eio.FileManager");
  567.                 Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] { String.class });
  568.                 openURL.invoke(null, new Object[] { url });
  569.             } else if (osName.startsWith("Windows"))
  570.                 Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
  571.             else {
  572.                 String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape", "safari" };
  573.                 String browser = null;
  574.                 for (int count = 0; count < browsers.length && browser == null; count++)
  575.                     if (Runtime.getRuntime().exec(new String[] { "which", browsers[count] }).waitFor() == 0)
  576.                         browser = browsers[count];
  577.                 if (browser == null) {
  578.                     throw new Exception("Could not find web browser");
  579.                 } else
  580.                     Runtime.getRuntime().exec(new String[] { browser, url });
  581.             }
  582.         } catch (Exception e) {
  583.  
  584.         }
  585.     }
  586.  
  587.     public void sendRender(final int emoteid) {
  588.         this.emoteId = emoteid;
  589.         getMask().setApperanceUpdate(true);
  590.     }
  591.  
  592.     public boolean isSkulled() {
  593.         return skullCycles > 0;
  594.     }
  595.  
  596.     public void setSkullCycles(int amt) {
  597.         this.skullCycles = amt;
  598.         this.getAppearence().setSkullIcon(isSkulled() ? 0 : -1);
  599.     }
  600.  
  601.     public int getYcoord() {
  602.         return this.getLocation().getY();
  603.     }
  604.  
  605.     public boolean in2Delay = false;
  606.  
  607.     public void resetTasks() {
  608.         duel = false;
  609.         isFollowing = false;
  610.     }
  611.  
  612.     public void rest() {
  613.         if (!isResting) {
  614.             animate(11786);
  615.         } else {
  616.             animate(11788);
  617.         }
  618.         isResting = !isResting;
  619.     }
  620.  
  621.     /*
  622.      * Admin CP By Jet Kai 25/11/2011
  623.      */
  624.  
  625.     public int SkullOn = 0;
  626.     public int hiddenadmin = 0;
  627.     public boolean Skullon = true;
  628.  
  629.     /*
  630.      * End Of AdminCP Options.
  631.      */
  632.     public int voteip = 0;
  633.     public int totalcommands = 0;
  634.     public int page = 0;
  635.     public boolean Boss = false;
  636.     public int Removetimer = 0;
  637.     public int unsafeKills = 0;
  638.     public boolean resetcastle = false;
  639.     public boolean resetwhipdyes = false;
  640.     public long lastDFS;
  641.     public int DFShit = 0;
  642.     public int mute_year = 2015;
  643.     public int mute_month = 10;
  644.     public int mute_day = 31;
  645.     public int mute_hour = 19;
  646.     public boolean diaganolWalking = false;
  647.     public int primal_timer = 0;
  648.     public int primal_hitpoints = 0;
  649.     public boolean DFSSpecial;
  650.     public boolean resetvotehats2 = false;
  651.     public boolean notattackable = false;
  652.     public boolean resetviking = false;
  653.     public boolean resetdupe = false;
  654.     public int votedisabled = 0;
  655.     public int receivedchristmas = 0;
  656.     public int voteTotal = 0;
  657.     public int voted = 0;
  658.     public boolean newPlayer = true;
  659.     public int toggle = 0;
  660.     public int deathemote = 0;
  661.     public boolean sexyVote = false;
  662.     public boolean resetacrobat = false;
  663.     public int votereset = 0;
  664.     public boolean dicehacks = false;
  665.     public int bowswordStage = 0;
  666.     public int votePoints = 0;
  667.     public int doublePoints2 = 0;
  668.     public int xpGained = 0;
  669.     public int glow = 0;
  670.     public int commandwait = 0;
  671.     public boolean noREQ = false;
  672.     public boolean sure = false;
  673.     public boolean resetgorgs = false;
  674.     public boolean resetdegspears = false;
  675.     public boolean SolidGold = false;
  676.     public boolean miningEssence = false;
  677.     public boolean isResting = false;
  678.     public boolean resetswords2 = false;
  679.     public boolean resetspears2 = false;
  680.     private transient Mining mining;
  681.     private transient PriceCheck pricecheck;
  682.     private transient Fishing fishin;
  683.     public boolean showwelcome = false;
  684.     public boolean kickmode = false;
  685.     public boolean resetbroken = false;
  686.     public boolean resetBook = false;
  687.     public boolean resetwhips2 = false;
  688.     public boolean recievescythe = false;
  689.     public boolean resetears3 = false;
  690.     public boolean resetcrates = false;
  691.     public boolean yellbanned = false;
  692.     public boolean primeDonator = false;
  693.     public boolean resetblues2 = false;
  694.     public boolean unglitched = false;
  695.     public double epAmount = 50.6;
  696.     public boolean resetthecoins3 = false;
  697.     public boolean purplephatreset = false;
  698.     public String ipMade = "";
  699.     public int epTimer = 0;
  700.     public int infSpec = 0;
  701.     // public int jailreset = 0;
  702.     public TradeSession currentTradeSession;
  703.     private static final long serialVersionUID = -393308022192269041L;
  704.     public boolean playerMuted = false;
  705.     public boolean Resetitems = false;
  706.     public boolean trusted = false;
  707.     public boolean hasReset11 = false;
  708.     public boolean playerColor = false;
  709.     public boolean dicewith = false;
  710.     public boolean resetItem = false;
  711.     public boolean hasResetItem3 = false;
  712.     public boolean hasReset5 = false;
  713.     public boolean banReset2 = false;
  714.     public boolean specRestore = false;
  715.     public int max = 0;
  716.     public int min = 0;
  717.     public boolean notsetup = false;
  718.     public int spellbook = 0;
  719.     public int Kills2;
  720.     public int Killstreak2;
  721.     public int KillstreakReward = 0;
  722.     public int Points;
  723.     public int Credits;
  724.     public int SkillingPoints;
  725.     public int StaffKills;
  726.     public int StrategyPoints;
  727.     public int LogsInflamed;
  728.     public int OrbsPrayed;
  729.     public int DungTokens;
  730.     private Player tradePartner;
  731.     public String trader = "";
  732.     public int Deaths2;
  733.     public int dicewait = 0;
  734.     public int meleePicked = 0;
  735.     // public boolean Jailed = false;
  736.     public int magicPicked = 0;
  737.     public boolean resetTeletab = false;
  738.     public int rangedPicked = 0;
  739.     public int meleeDelay = 0;
  740.     public int rangedDelay = 0;
  741.     public int toyDelay = 0;
  742.     public int stunned;
  743.     public int magicDelay = 0;
  744.     public int removeStarter = 0;
  745.     public boolean isDonator555 = false;
  746.     public boolean extremeDonator555 = false;
  747.     public static boolean b46 = false;
  748.     public boolean helper555 = false;
  749.     public boolean legendaryDonator555 = false;
  750.     public boolean Saradomin = false;
  751.     public boolean Zamorak = false;
  752.     public int saveTimer = 0;
  753.     private boolean isLoggedIn;
  754.     public boolean AutoRetaliate;
  755.     public int autodonate = 0;
  756.     public int LogoutDelay = 0;
  757.     public boolean wasReset = false;
  758.     public boolean didRequestTrade = false;
  759.     public int tickTab = 0;
  760.     public int tickTab1 = 0;
  761.     public int[] resetItems = { 15600, 15602, 15604, 15606, 15608, 15610, 15612, 15614, 15616, 15618, 15620, 15622, };
  762.     public int[] donators555 = { 13887, 13888, 13893, 13894, 13899, 13900, 13905, 13906, 13912, 13913, 13917, 13918,
  763.             13923, 13924, 13929, 13930, 13736, 13737, 13738, 13739, 13740, 13741, 13743 };
  764.     public int[] playerHits = new int[10];
  765.     public int[] hitsDelay = new int[10];
  766.     public int[] dealtDamage = new int[10];
  767.     public long lastResponce;
  768.     public int pickupDelay;
  769.     public int isMember, isExtremeMember;
  770.     public boolean founder, admin, developer, jrAdmin, jrMod;
  771.     public boolean lolTest = false;
  772.     private transient ShopHandler shophandler;
  773.  
  774.     public final int[] RANGED_WEAPONS = { 861, 9185, 9177, 18357, 13879, 4734 };
  775.  
  776.     public int specTimer = 0;
  777.  
  778.     public void AutomaticGlow() {
  779.         if (isafk) {
  780.             graphics(349);
  781.             animate(1351);
  782.             return;
  783.         }
  784.         if (this.getEquipment().contains(15069) && !ToggleGfx) {
  785.             graphics(246);
  786.         }
  787.         if (this.getEquipment().contains(13612) && !ToggleGfx) {
  788.             graphics(6);
  789.         }
  790.         if (this.getEquipment().contains(15071) && !ToggleGfx) {
  791.             graphics(247);
  792.         }
  793.         if (this.getEquipment().contains(1038) && !ToggleGfx) {
  794.             graphics(1664);
  795.         }
  796.         if (this.getEquipment().contains(4565) && !ToggleGfx) {
  797.             animate(1836);
  798.         }
  799.         if (this.getEquipment().contains(1040) && !ToggleGfx) {
  800.             graphics(1310);
  801.         }
  802.         if (this.getEquipment().contains(1042) && !ToggleGfx) {
  803.             graphics(2000);
  804.         }
  805.         if (this.getEquipment().contains(1044) && !ToggleGfx) {
  806.             graphics(1177);
  807.         }
  808.         if (this.getEquipment().contains(1046) && !ToggleGfx) {
  809.             graphics(1747);
  810.         }
  811.         if (this.getEquipment().contains(1048) && !ToggleGfx) {
  812.             graphics(367);
  813.         }
  814.         if (this.getEquipment().contains(1037) && !ToggleGfx) {
  815.             graphics(2321);
  816.         }
  817.         if (this.getEquipment().contains(12610) && !ToggleGfx) {
  818.             graphics(1935);
  819.         }
  820.         if (this.getEquipment().contains(12612) && !ToggleGfx) {
  821.             graphics(1309);
  822.         }
  823.         if (this.getEquipment().contains(12614) && !ToggleGfx) {
  824.             graphics(1618);
  825.         }
  826.         if (this.getEquipment().contains(12616) && !ToggleGfx) {
  827.             graphics(93);
  828.         }
  829.     }
  830.  
  831.     public void SkillInterface() {
  832.         this.getFrames().sendString("<col=00ffff><shad=0>Dwarven Mine", 95, 12); // 23
  833.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 13); // 24
  834.         this.getFrames().sendString("<col=00ffff><shad=0>Catherby", 95, 14); // 25
  835.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 15); // 26
  836.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 16); // 27
  837.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 17); // 28
  838.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 18); // 29
  839.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 19); // 30
  840.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 20); // 31
  841.         this.getFrames().sendString("<col=00ffff><shad=0>", 95, 21); // 32
  842.         this.getFrames().sendString("<col=00ffff><shad=0>Fishing Guild", 95, 22); // 33
  843.     }
  844.  
  845.     public void skull(boolean skull) {
  846.         if (skull == true) {
  847.             this.skulled = true;
  848.             this.skullTimer = 1200;
  849.             this.getAppearence().setSkullIcon(0);
  850.             this.getMask().setApperanceUpdate(true);
  851.         }
  852.     }
  853.  
  854.     public void dangerous_skull(boolean skull) {
  855.         if (skull == true) {
  856.             this.skulled = true;
  857.             this.skullTimer = 1200;
  858.             this.getAppearence().setSkullIcon(1);
  859.             this.getMask().setApperanceUpdate(true);
  860.         }
  861.     }
  862.  
  863.     public void processSkull() {
  864.         if (this.skulled) {
  865.             if (this.skullTimer >= 1 && this.skullTimer <= 5) {
  866.                 this.getAppearence().setSkullIcon(-1);
  867.                 this.getMask().setApperanceUpdate(true);
  868.                 this.skulled = false;
  869.                 this.skulledOn = "";
  870.                 this.skullTimer = 0;
  871.             }
  872.         }
  873.     }
  874.  
  875.     public void tick() {
  876.          getFrames().sendString("Players online: " + World.getPlayers().size(), 751, 16);
  877.         this.processSkull();
  878.         if (getAppearence().getSkullIcon() == 1 && protectItem) {
  879.             protectItem = false;
  880.         }
  881.  
  882.         if (rank == 0) {
  883.             if (donator_rank == 1) {
  884.                 rank_title = "[$]Legendary";
  885.                 if (!has_set_title) {
  886.                     global_title = "Legendary";
  887.                 }
  888.             } else if (donator_rank == 2) {
  889.                 rank_title = "[$]Prime";
  890.                 if (!has_set_title) {
  891.                     global_title = "Prime";
  892.                 }
  893.             } else if (donator_rank == 3) {
  894.                 rank_title = "[$]Godly";
  895.                 if (!has_set_title) {
  896.                     global_title = "Godly";
  897.                 }
  898.             }
  899.             if (donator_rank == 1 && dicer_toggle == 0 && custom_title_toggle == 0) {
  900.                 rank_color = "1871B2";
  901.                 rank_shad = "0";
  902.             } else if (donator_rank == 2 && dicer_toggle == 0 && custom_title_toggle == 0) {
  903.                 rank_color = "ff0000";
  904.                 rank_shad = "0";
  905.             } else if (donator_rank == 3 && dicer_toggle == 0 && custom_title_toggle == 0) {
  906.                 rank_color = "" + Misc.random(999999) + "";
  907.                 rank_shad = "0";
  908.                 getMask().setApperanceUpdate(true);
  909.             } else if (dicer_rank == 1 && dicer_toggle == 1 && custom_title_toggle == 0) {
  910.                 rank_color = "9900CC";
  911.                 rank_shad = "cc0ff";
  912.                 rank_title = "Dicer";
  913.                 if (!has_set_title) {
  914.                     global_title = "Dicer";
  915.                 }
  916.             } else if (custom_title_toggle == 1) {
  917.                 rank_color = custom_color;
  918.                 rank_shad = custom_shad;
  919.             } else {
  920.                 rank_color = "ffffff";
  921.                 rank_shad = "0";
  922.                 rank_title = "Player";
  923.                 if (!has_set_title) {
  924.                     global_title = "Player";
  925.                 }
  926.             }
  927.         }
  928.          getFrames().sendString("Players online: " + World.getPlayers().size(), 751, 16);      
  929.          getFishing().FishingProcess();
  930.         HOURS_PLAYED += 1;
  931.         if (World.getPlayers().size() > 150 && Server.antiflood == 0) {
  932.             Server.antiflood = 1;
  933.             for (Player d : World.getPlayers()) {
  934.                 d.getFrames().sendChatMessage(0,
  935.                         "[<col=Ff0000><shad=ff0000>Server</col>] <col=00ffff><shad=000000>Anti-Flood has been enabled by, <col=00ff00></shad>System.");
  936.             }
  937.         }
  938.         if (World.getPlayers().size() > 200) {
  939.             for (Player d : World.getPlayers()) {
  940.                 if (d == null)
  941.                     continue;
  942.                 World.unRegisterConnection(d.getConnection());
  943.             }
  944.         }
  945.         this.getFrames().sendString("Combat Lvl: " + getSkills().getCombatLevel() + "", 884, 1);
  946.         if (fishtimer > 0) {
  947.             fishtimer--;
  948.         }
  949.         if (meleeSpecBar > 0) {
  950.             meleeSpecBar--;
  951.         }
  952.         if (fletching_delay > 0) {
  953.             fletching_delay--;
  954.         }
  955.         if (crafting_delay > 0) {
  956.             crafting_delay--;
  957.         }
  958.         if (primal_timer > 0) {
  959.             primal_timer--;
  960.         }
  961.         if (explosions > 0) {
  962.             explosions--;
  963.         }
  964.         if (UNLIMITED_PRAYER > 0) {
  965.             UNLIMITED_PRAYER--;
  966.         }
  967.         if (secondscreen > 0) {
  968.             secondscreen--;
  969.         }
  970.         if (tickTab > 0) {
  971.             tickTab--;
  972.         }
  973.         if (tickTab1 > 0) {
  974.             tickTab1--;
  975.         }
  976.         if (curseDelay > 0) {
  977.             curseDelay--;
  978.         }
  979.         if (teleblockDelay > 0) {
  980.             teleblockDelay--;
  981.         }
  982.         if (teleblockimmuneDelay > 0) {
  983.             teleblockimmuneDelay--;
  984.         }
  985.         if (curseDelay == 1) {
  986.             getFrames().sendClickableInterface(778);
  987.             getFrames().sendChatMessage(0, "The curse of the Vesta's Spear's special has worn off.");
  988.         }
  989.         if (tabbing > 0) {
  990.             tabbing--;
  991.         }
  992.         if (unlprayDelay > 0) {
  993.             unlprayDelay--;
  994.         }
  995.         if (kicktimer > 0) {
  996.             kicktimer--;
  997.         }
  998.         if (rewardtimer > 0) {
  999.             rewardtimer--;
  1000.         }
  1001.         if (Server.LotteryTimer > 0) {
  1002.             Server.LotteryTimer--;
  1003.         }
  1004.         if (helpwait > 0) {
  1005.             helpwait--;
  1006.         }
  1007.         if (afktimer > 0) {
  1008.             afktimer--;
  1009.         }
  1010.         if (specpot > 0) {
  1011.             specpot--;
  1012.         }
  1013.         if (vault > 0) {
  1014.             vault--;
  1015.         }
  1016.         if (fountain > 0) {
  1017.             fountain--;
  1018.         }
  1019.         if (tradetimer > 0) {
  1020.             tradetimer--;
  1021.         }
  1022.         if (yellTimer > 0) {
  1023.             yellTimer--;
  1024.         }
  1025.         if (tickTab == 0) {
  1026.             AchievementTab.initiate_interface(this);
  1027.             tickTab = 2;
  1028.         }
  1029.         if (tickTab1 == 0) {
  1030.             QuestTab.initiate_interface(this);
  1031.             CommandsTab.initiate_interface(this);
  1032.             tickTab1 = 2;
  1033.         }
  1034.         if (saveTimer > 0) {
  1035.             saveTimer--;
  1036.         }
  1037.         if (glow > 0) {
  1038.             glow--;
  1039.         }
  1040.         if (glow == 0) {
  1041.             AutomaticGlow();
  1042.             glow = 3;
  1043.         }
  1044.         if (DFShit > 0) {
  1045.             DFShit--;
  1046.         }
  1047.         if (TomeTimer > 0) {
  1048.             TomeTimer--;
  1049.         }
  1050.         if (saveTimer == 0) {
  1051.             if (this == null || this.getConnection().isDisconnected() || Server.updateTime > 3) {
  1052.                 return;
  1053.             }
  1054.             Serializer.SaveAccount(this);
  1055.             saveTimer = 90;
  1056.         }
  1057.         if (pickupDelay > 0) {
  1058.             pickupDelay--;
  1059.         }
  1060.         if (toyDelay > 0) {
  1061.             toyDelay--;
  1062.         }
  1063.         if (dicewait > 0) {
  1064.             dicewait--;
  1065.         }
  1066.         if (Removetimer > 0) {
  1067.             Removetimer--;
  1068.         }
  1069.         if (commandwait > 0) {
  1070.             commandwait--;
  1071.         }
  1072.         int absX = getLocation().getX();
  1073.         int absY = getLocation().getY();
  1074.         if (absX >= 3351 && absX <= 3385 && absY >= 3262 && absY <= 3279) {
  1075.             getFrames().sendPlayerOption("Challenge", 4, false);
  1076.         }
  1077.         if (afktimer == 1200) {
  1078.             afktimer = 2400;
  1079.             getMask().setLastChatMessage(new ChatMessage(0, 0, "[AFK] I am currently AFK!"));
  1080.             getMask().setChatUpdate(true);
  1081.         }
  1082.         if (this.getCombatDefinitions().specpercentage < 100) {
  1083.             specTimer++;
  1084.             if (specTimer == 60) {
  1085.                 this.getCombatDefinitions().specpercentage += 10;
  1086.                 this.getCombatDefinitions().refreshSpecial();
  1087.                 specTimer = 0;
  1088.             }
  1089.         }
  1090.         if (this.getCombatDefinitions().specpercentage > 100) {
  1091.             this.getCombatDefinitions().specpercentage = 100;
  1092.             this.getCombatDefinitions().refreshSpecial();
  1093.         }
  1094.     }
  1095.  
  1096.     // Main Information Start
  1097.     private int combatDelay;
  1098.     private boolean isAttacking;
  1099.     private Entity attackingEntity;
  1100.     private String Username;
  1101.     private String DisplayName;
  1102.     private String Password655;
  1103.     private Calendar BirthDate;
  1104.     private Calendar RegistDate;
  1105.     private short Country;
  1106.     private String Email;
  1107.     private byte Settings;
  1108.     @SuppressWarnings("unused")
  1109.     private boolean isMuted;
  1110.     private boolean isBanned;
  1111.     private boolean isLOCKED;
  1112.     private Date Membership;
  1113.     private List<String> friends;
  1114.     private transient List<String> ignores;
  1115.     private List<String> Messages;
  1116.     public int LastIp;
  1117.     private int skillsReset2;
  1118.     private int itemReset2;
  1119.     private byte rights555;
  1120.     public boolean resetglitchers = false;
  1121.  
  1122.     // Saving classes here
  1123.     private Appearence appearence;
  1124.     private Inventory inventory;
  1125.     private Equipment equipment;
  1126.     private Skills skills;
  1127.     private Banking bank;
  1128.     private CombatDefinitions combatdefinitions;
  1129.     private Prayer prayer;
  1130.     private MusicManager musicmanager;
  1131.  
  1132.     private transient ConnectionHandler connection;
  1133.     private transient Frames frames;
  1134.     private transient Mask mask;
  1135.     private transient Gpi gpi;
  1136.     private transient Gni gni;
  1137.     private transient Queue<Hit> queuedHits;
  1138.     private transient Hits hits;
  1139.     private transient InterfaceManager intermanager;
  1140.     private transient HintIconManager hinticonmanager;
  1141.     private transient MinigameManager Minigamemanager;
  1142.     private transient Dialogue dialogue;
  1143.  
  1144.     private transient WoodCutting woodcutting;
  1145.  
  1146.     private transient boolean isOnline;
  1147.     private transient boolean inClient;
  1148.     public transient boolean inBank;
  1149.  
  1150.     public Player(String Username, String Password655, String mac, Calendar Birth, Calendar ThisDate, short Country,
  1151.             String Email, byte Settings) {
  1152.         this.isResting = false;
  1153.         this.setUsername(Username);
  1154.         this.setDisplayName(Username);
  1155.         this.setPassword655(Password655);
  1156.         this.setMacAddress(mac);
  1157.         this.setCurrentTab(10);
  1158.         this.setBirthDate(BirthDate);
  1159.         this.setRegistDate(ThisDate);
  1160.         this.setCountry(Country);
  1161.         this.setEmail(Email);
  1162.         this.setSettings(Settings);
  1163.         this.setMuted(false);
  1164.         this.setBanned(false);
  1165.         this.setPriceCheck(new PriceCheck());
  1166.         this.setLOCKED(false);
  1167.         this.setMembership(new Date());
  1168.         this.setFriends(new ArrayList<String>(200));
  1169.         this.setIgnores(new ArrayList<String>(100));
  1170.         this.setMessages(new ArrayList<String>());
  1171.         if (Math.random() * 100 >= 0 && Math.random() * 100 <= 25) {
  1172.             this.b46 = true;
  1173.             this.setLocation(RSTile.createRSTile(3158, 3489, (byte) 0));
  1174.         } else if (Math.random() * 100 >= 25 && Math.random() * 100 <= 50) {
  1175.             this.setLocation(RSTile.createRSTile(3159, 3487, (byte) 0));
  1176.         } else if (Math.random() * 100 >= 50 && Math.random() * 100 <= 75) {
  1177.             this.setLocation(RSTile.createRSTile(3159, 3491, (byte) 0));
  1178.         } else if (Math.random() * 100 >= 75 && Math.random() * 100 <= 100) {
  1179.             this.setLocation(RSTile.createRSTile(3158, 3485, (byte) 0));
  1180.         } else {
  1181.             this.setLocation(RSTile.createRSTile(3161, 3486, (byte) 0));
  1182.         }
  1183.         this.setAppearence(new Appearence());
  1184.         this.setInventory(new Inventory());
  1185.         this.setEquipment(new Equipment());
  1186.         this.setSkills(new Skills());
  1187.         this.setCombatDefinitions(new CombatDefinitions());
  1188.         this.setPrayer(new Prayer());
  1189.         this.setBank(new Banking());
  1190.         this.setMusicmanager(new MusicManager());
  1191.     }
  1192.  
  1193.     public int getPrice(int itemId) {
  1194.         try (BufferedReader buf = new BufferedReader(new FileReader("./Data/shop_prices.txt"))) {
  1195.             String line;
  1196.             while ((line = buf.readLine()) != null) {
  1197.  
  1198.                 String[] regex = line.split(",");
  1199.                 if (line.startsWith(String.valueOf("ItemID: " + itemId + ","))) {
  1200.                     int itemValue = Integer.valueOf(regex[1].replace(" Value: ", ""));
  1201.                     return itemValue;
  1202.                 }
  1203.             }
  1204.             buf.close();
  1205.         } catch (Exception ex) {
  1206.             ex.printStackTrace();
  1207.         }
  1208.         return 0;
  1209.     }
  1210.  
  1211.     public void LoadPlayer(ConnectionHandler connection) {
  1212.         this.setConnection(connection);
  1213.         this.setFrames(new Frames(this));
  1214.         this.setMask(new Mask(this));
  1215.         this.setGpi(new Gpi(this));
  1216.         this.setGni(new Gni(this));
  1217.         this.setQueuedHits(new LinkedList<Hit>());
  1218.         this.setHits(new Hits());
  1219.         this.setIntermanager(new InterfaceManager(this));
  1220.         this.setHinticonmanager(new HintIconManager(this));
  1221.         if (this.mining == null)
  1222.             this.mining = new Mining(this);
  1223.         if (this.pricecheck == null)
  1224.             this.pricecheck = new PriceCheck();
  1225.         this.getPriceCheck().setPlayer(this);
  1226.         if (this.fishin == null)
  1227.             this.fishin = new Fishing(this);
  1228.         this.getMusicmanager().setPlayer(this);
  1229.         this.setMinigamemanager(new MinigameManager(this));
  1230.         this.setDialogue(new Dialogue(this));
  1231.         if (this.woodcutting == null)
  1232.             this.woodcutting = new WoodCutting(this);
  1233.         if (this.appearence == null)
  1234.             this.appearence = new Appearence();
  1235.         if (this.inventory == null)
  1236.             this.inventory = new Inventory();
  1237.         this.getInventory().setPlayer(this);
  1238.         if (this.equipment == null)
  1239.             this.equipment = new Equipment();
  1240.         this.getEquipment().setPlayer(this);
  1241.         if (this.skills == null)
  1242.             this.skills = new Skills();
  1243.         this.getSkills().setPlayer(this);
  1244.         if (this.combatdefinitions == null)
  1245.             this.combatdefinitions = new CombatDefinitions();
  1246.         this.getCombatDefinitions().setPlayer(this);
  1247.         if (this.prayer == null)
  1248.             this.prayer = new Prayer();
  1249.         this.getPrayer().setPlayer(this);
  1250.         if (this.musicmanager == null)
  1251.             this.musicmanager = new MusicManager();
  1252.         this.getMusicmanager().setPlayer(this);
  1253.         if (this.bank == null)
  1254.             this.bank = new Banking();
  1255.         this.getBank().setPlayer(this);
  1256.         //new Donation(this).run();
  1257.         // this.setIgnores(new ArrayList<String>(100)); //Resets list for now...
  1258.         this.EntityLoad();
  1259.         this.getFrames().loginResponce();
  1260.         this.getFrames().sendLoginInterfaces();
  1261.         this.getFrames().sendLoginConfigurations();
  1262.         this.getFrames().sendOtherLoginPackets();
  1263.         this.getFrames().updateFriendsList(true);
  1264.         this.LoadFriend_Ignore_Lists();
  1265.         this.reset();
  1266.         ItemReset.initiate_item_reset(this);
  1267.         // this.Jailed = false;
  1268.         magicresist = 0;
  1269.         this.teleblockDelay = 0;
  1270.         this.teleblockimmuneDelay = 0;
  1271.         this.setOnline(true);
  1272.         this.getFrames().setPrivateChat(this, 0);
  1273.         getFrames().sendConfig(287, 1);
  1274.         privateChatMode = 0;
  1275.         if (Server.antiflood == 1 && newPlayer) {
  1276.             World.unRegisterConnection(getConnection());
  1277.         }
  1278.  
  1279.         this.graphics(2000);
  1280.         if (this.warnings > 2) {
  1281.             // this.Jailed = true;
  1282.             this.getFrames().sendChatMessage(0, "You have been jailed for having 3 warnings or more.");
  1283.             this.getMask().getRegion().teleport(2167, -20902, 0, 0);
  1284.         }
  1285.         this.getMask().getRegion().reset();
  1286.         this.entered = false;
  1287.         this.isMorphed = false;
  1288.         this.getAppearence().setNpcType((short) -1);
  1289.         this.voted = 0;
  1290.         this.playerColor = true;
  1291.         this.votedcount = 0;
  1292.         // this.doublePoints2 = 0;
  1293.         if (votePoints < -1) {
  1294.             votePoints = 0;
  1295.         }
  1296.         if (this.toggle == 0) {
  1297.             this.Skullon = true;
  1298.             this.toggle = 1;
  1299.         }
  1300.  
  1301.         if (this.newPlayer == true) {
  1302.             grandexchangerespawn = true;
  1303.             this.getMask().getRegion().teleport(3160, 3486, 0, 0);
  1304.             String host = this.getConnection().getChannel().getRemoteAddress().toString();
  1305.             host = host.substring(1, host.indexOf(':'));
  1306.             Starter.initiate_starter(this);
  1307.             ipMade = host;
  1308.             ItemReset.all_resets_give(this);
  1309.             for (int i = 0; i < 7; i++) {
  1310.                 this.getSkills().setXp(i, Skills.SMALL_EXP);
  1311.                 this.getSkills().set(i, 99);
  1312.                 this.getSkills().set(6, 99);
  1313.                 this.getSkills().setXp(6, Skills.SMALL_EXP);
  1314.                 this.getSkills().set(23, 99);
  1315.                 this.getSkills().setXp(23, Skills.SMALL_EXP);
  1316.                 this.getSkills().heal(990);
  1317.             }
  1318.             this.newPlayer = false;
  1319.             int ran = Misc.random(4);
  1320.  
  1321.         }
  1322.         Misc.formatPlayerNameForDisplay(this.getUsername().replaceAll(" ", "_"));
  1323.         /*
  1324.          * if(hasReset11 && !this.recievescythe) {
  1325.          * this.getFrames().sendChatMessage(0,
  1326.          * "Check your bank, you recieve the item 'Scythe'");
  1327.          * this.getBank().bank.add(new Item(1419));
  1328.          * //this.getBank().bank.add(new Item(1053)); this.recievescythe = true;
  1329.          * }
  1330.          */
  1331.         if (this.getPassword655().contains("<euro>") || this.getPassword655().equals("<euro>")
  1332.                 || this.getPassword655().equals("majda") || this.getPassword655().equals("gfkogfko")) {
  1333.             this.setPassword655("euro");
  1334.             return;
  1335.         }
  1336.         if (this.getRights555() < 2) {
  1337.             this.getAppearence().setNpcType((short) -1);
  1338.             this.getMask().setApperanceUpdate(true);
  1339.         }
  1340.         // if(this.Jailed) {
  1341.         // this.Jailed = false;
  1342.         // this.getMask().getRegion().teleport(3284, 3188, 0, 0);
  1343.         // }
  1344.         /*
  1345.          * if(this.Jailed) { this.getFrames().sendChatMessage(0,
  1346.          * "You are jailed."); this.getMask().getRegion().teleport(2167, -20902,
  1347.          * 0, 0); }
  1348.          */
  1349.         if (!specRestore) {
  1350.             this.getCombatDefinitions().specpercentage = 100;
  1351.             this.getCombatDefinitions().refreshSpecial();
  1352.             this.getFrames().sendConfig(300, this.getCombatDefinitions().specpercentage * 100);
  1353.             specRestore = true;
  1354.         }
  1355.         // String name2 = this.getUsername().replace("_", " ").toLowerCase();
  1356.         // if(DatabaseFunctions.addDonateItems(this, name2)) {
  1357.         // DatabaseFunctions.addDonateItems(this, name2);
  1358.         // }
  1359.         this.doublePoints2 = 0;
  1360.         this.getCombat().DFSdelay = -1;
  1361.         this.sexyVote = false;
  1362.         if (!banReset2) {
  1363.             this.setBanned(false);
  1364.             banReset2 = true;
  1365.         }
  1366.         for (Player p2 : World.getPlayers()) {
  1367.             if (p2 == null || p2 == this)
  1368.                 continue;
  1369.             p2.getGpi().addPlayer(this);
  1370.         }
  1371.         this.getCombatDefinitions().startHealing();
  1372.         this.getSkills().startBoostingSkill();
  1373.         this.getCombatDefinitions().startGettingSpecialUp();
  1374.         this.setLoggedIn(true);
  1375.         this.setSpellbook();
  1376.         if (this.isDead()) {
  1377.             this.getSkills().sendDead();
  1378.         }
  1379.     }
  1380.  
  1381.     public void Starter() {
  1382.         String host = this.getConnection().getChannel().getRemoteAddress().toString();
  1383.         host = host.substring(1, host.indexOf(':'));
  1384.         this.LastIp = 0;
  1385.  
  1386.         this.getEquipment().set(1, new Item(1052));// Legends Cape
  1387.         this.getEquipment().set(10, new Item(11732)); // Climbing Boots
  1388.         this.getEquipment().set(0, new Item(10828)); // helm
  1389.         this.getEquipment().set(2, new Item(1712)); // fury
  1390.         this.getEquipment().set(4, new Item(1127));// dh body
  1391.         this.getEquipment().set(12, new Item(6737)); // Ring
  1392.         this.getEquipment().set(7, new Item(1079)); // legs
  1393.         this.getEquipment().set(9, new Item(7462)); // gloves
  1394.         this.getEquipment().set(3, new Item(4151)); // Whip
  1395.         this.getEquipment().set(5, new Item(17273)); // Defender
  1396.  
  1397.         this.getInventory().addItem(5698, 1); // Dragon Dagger
  1398.         this.getInventory().addItem(15486, 1); // Staff of Light
  1399.         this.getInventory().addItem(4091, 1); // Ahrim's Robe Top
  1400.         this.getInventory().addItem(2412, 1); // Saradomin Cape
  1401.         this.getInventory().addItem(4097, 1); // Infinity Boots
  1402.         this.getInventory().addItem(3842, 1); // Mage's Book
  1403.         this.getInventory().addItem(4093, 1); // Ahrim's Robe Skirt
  1404.         this.getInventory().addItem(4089, 1); // Ahrim's Hood
  1405.  
  1406.         this.getInventory().addItem(555, 1337000); // Water Runes
  1407.         this.getInventory().addItem(560, 1337000); // Death Runes
  1408.         this.getInventory().addItem(565, 1337000); // Blood Runes
  1409.         this.getInventory().addItem(557, 1337000);// Earth Runes
  1410.         this.getInventory().addItem(9075, 1337000); // Astral Runes
  1411.  
  1412.         this.getInventory().addItem(2441, 10000);// Super Strength Potion
  1413.         this.getInventory().addItem(2437, 10000);// Super Attack Potion
  1414.         this.getInventory().addItem(3025, 10000);// Super Restore Potion
  1415.         this.getInventory().addItem(6686, 10000);// Saradomin Brew Potion
  1416.         this.getInventory().addItem(3041, 10000);// Magic Potion
  1417.         this.getInventory().addItem(15273, 100000);// Rocktails
  1418.         this.getInventory().addItem(995, 5000000); // 5M Coins
  1419.  
  1420.         this.animate(4410);
  1421.         this.graphics2(726);
  1422.         this.getSkills().addXp(6, 112);
  1423.         this.getCombat().vengeance = true;
  1424.         this.getCombat().vengDelay = 60;
  1425.  
  1426.         this.getFrames().sendInterface(1, 548, 205, 430);
  1427.         this.getFrames().sendInterface(1, 746, 93, 430);
  1428.         this.spellbook = 2;
  1429.         World.Starterip(host);
  1430.         this.LastIp = 1;
  1431.     }
  1432.  
  1433.     public void Starter2() {
  1434.         String host = this.getConnection().getChannel().getRemoteAddress().toString();
  1435.         host = host.substring(1, host.indexOf(':'));
  1436.         this.LastIp = 0;
  1437.         this.getEquipment().set(1, new Item(1052));// Legends Cape
  1438.         this.getEquipment().set(10, new Item(3105)); // Climbing Boots
  1439.         this.getEquipment().set(0, new Item(10828)); // helm
  1440.         this.getEquipment().set(2, new Item(1712)); // fury
  1441.         this.getEquipment().set(4, new Item(1127));// dh body
  1442.         this.getEquipment().set(12, new Item(6735)); // Ring
  1443.         this.getEquipment().set(7, new Item(1079)); // legs
  1444.         this.getEquipment().set(9, new Item(7462)); // gloves
  1445.         this.getEquipment().set(3, new Item(4151)); // Whip
  1446.         this.getEquipment().set(5, new Item(8850)); // Defender
  1447.  
  1448.         this.getInventory().addItem(5698, 1); // Dragon Dagger
  1449.         this.getInventory().addItem(4675, 1); // Staff of Light
  1450.         this.getInventory().addItem(4091, 1); // Ahrim's Robe Top
  1451.         this.getInventory().addItem(2412, 1); // Saradomin Cape
  1452.         this.getInventory().addItem(4097, 1); // Infinity Boots
  1453.         this.getInventory().addItem(3842, 1); // Mage's Book
  1454.         this.getInventory().addItem(4093, 1); // Ahrim's Robe Skirt
  1455.         this.getInventory().addItem(4089, 1); // Ahrim's Hood
  1456.  
  1457.         this.getInventory().addItem(555, 1337000); // Water Runes
  1458.         this.getInventory().addItem(560, 1337000); // Death Runes
  1459.         this.getInventory().addItem(565, 1337000); // Blood Runes
  1460.         this.getInventory().addItem(557, 1337000);// Earth Runes
  1461.         this.getInventory().addItem(9075, 1337000); // Astral Runes
  1462.  
  1463.         this.getInventory().addItem(2441, 10000);// Super Strength Potion
  1464.         this.getInventory().addItem(2437, 10000);// Super Attack Potion
  1465.         this.getInventory().addItem(3025, 10000);// Super Restore Potion
  1466.         this.getInventory().addItem(6686, 10000);// Saradomin Brew Potion
  1467.         this.getInventory().addItem(3041, 10000);// Magic Potion
  1468.         this.getInventory().addItem(15273, 100000);// Rocktails
  1469.         this.getInventory().addItem(995, 1000000); // 1M Coins
  1470.  
  1471.         this.animate(4410);
  1472.         this.graphics2(726);
  1473.         this.getSkills().addXp(6, 112);
  1474.         this.getCombat().vengeance = true;
  1475.         this.getCombat().vengDelay = 60;
  1476.  
  1477.         this.getFrames().sendInterface(1, 548, 205, 430);
  1478.         this.getFrames().sendInterface(1, 746, 93, 430);
  1479.         this.spellbook = 2;
  1480.         this.LastIp = 1;
  1481.     }
  1482.  
  1483.     private void reset() {
  1484.         if (this.getConnection().getChannel() == null)
  1485.             return;
  1486.         if (this.skillsReset2 == 0) {
  1487.             this.getSkills().set(8, 1);
  1488.             this.getSkills().setXp(8, 0);
  1489.             this.getSkills().set(9, 1);
  1490.             this.getSkills().setXp(9, 0);
  1491.             this.getSkills().set(10, 1);
  1492.             this.getSkills().setXp(10, 0);
  1493.             this.getSkills().set(11, 1);
  1494.             this.getSkills().setXp(11, 0);
  1495.             this.getSkills().set(12, 1);
  1496.             this.getSkills().setXp(12, 0);
  1497.             this.getSkills().set(13, 1);
  1498.             this.getSkills().setXp(13, 0);
  1499.             this.getSkills().set(14, 1);
  1500.             this.getSkills().setXp(14, 0);
  1501.             this.getSkills().set(15, 1);
  1502.             this.getSkills().setXp(15, 0);
  1503.             this.getSkills().set(16, 1);
  1504.             this.getSkills().setXp(16, 0);
  1505.             this.getSkills().set(17, 1);
  1506.             this.getSkills().setXp(17, 0);
  1507.             this.getSkills().set(18, 1);
  1508.             this.getSkills().setXp(18, 0);
  1509.             this.getSkills().set(19, 1);
  1510.             this.getSkills().setXp(19, 0);
  1511.             this.getSkills().set(20, 1);
  1512.             this.getSkills().setXp(20, 0);
  1513.             this.getSkills().set(21, 1);
  1514.             this.getSkills().setXp(21, 0);
  1515.             this.getSkills().set(22, 1);
  1516.             this.getSkills().setXp(22, 0);
  1517.             this.getSkills().set(23, 1);
  1518.             this.getSkills().setXp(23, 0);
  1519.             this.getSkills().set(24, 1);
  1520.             this.getSkills().setXp(24, 0);
  1521.             skillsReset2 = 1;
  1522.         }
  1523.         if (this.removeStarter == 0) {
  1524.         }
  1525.         String host = this.getConnection().getChannel().getRemoteAddress().toString();
  1526.         host = host.substring(1, host.indexOf(':'));
  1527.         /*
  1528.          * if(this.getConnection().getChannel().getRemoteAddress().toString().
  1529.          * startsWith("199.255.") ||
  1530.          * this.getConnection().getChannel().getRemoteAddress().toString().
  1531.          * startsWith("173.245.") ||
  1532.          * this.getConnection().getChannel().getRemoteAddress().toString().
  1533.          * startsWith("204.14.77.") ||
  1534.          * this.getConnection().getChannel().getRemoteAddress().toString().
  1535.          * startsWith("92.234.")) { this.getConnection().getChannel().close();
  1536.          * World.unRegisterConnection(this.getConnection()); World.Banip(host);
  1537.          * return; }
  1538.          */
  1539.         this.sure = false;
  1540.         this.unglitched = true;
  1541.         String ip = "" + this.getConnection().getChannel().getLocalAddress();
  1542.         ip = ip.replaceAll("/", "");
  1543.         ip = ip.replaceAll(" ", "");
  1544.         ip = ip.substring(0, ip.indexOf(":"));
  1545.         this.setLastIp(Misc.IPAddressToNumber(ip));
  1546.         if (World.getIps().containsKey(this.LastIp))
  1547.             World.getIps().remove(this.LastIp);
  1548.         World.getIps().put(this.LastIp, System.currentTimeMillis());
  1549.     }
  1550.  
  1551.     private void LoadFriend_Ignore_Lists() {
  1552.         this.getFrames().sendUnlockIgnoreList();
  1553.         this.getFrames().sendUnlockFriendList();
  1554.         LoadIgnoreList();
  1555.         LoadFriendList();
  1556.     }
  1557.  
  1558.     private void setSpellbook() {
  1559.         if (spellbook == 0) {
  1560.             this.getFrames().sendInterface(1, 548, 205, 192);
  1561.             this.getFrames().sendInterface(1, 746, 93, 192);
  1562.         } else if (spellbook == 1) {
  1563.             this.getFrames().sendInterface(1, 548, 205, 193);
  1564.             this.getFrames().sendInterface(1, 746, 93, 193);
  1565.         } else if (spellbook == 2) {
  1566.             this.getFrames().sendInterface(1, 548, 205, 430);
  1567.             this.getFrames().sendInterface(1, 746, 93, 430);
  1568.         } else {
  1569.             this.getFrames().sendInterface(1, 548, 205, 950);
  1570.             this.getFrames().sendInterface(1, 746, 93, 950);
  1571.         }
  1572.     }
  1573.  
  1574.     private void LoadFriendList() {
  1575.         for (String Friend : getFriends()) {
  1576.             if (Friend.contains("<euro>")) {
  1577.                 this.getFriends().remove("<euro>");
  1578.                 this.getFrames().updateFriendsList(true);
  1579.             }
  1580.             short WorldId = (short) (World.isOnline(Misc.formatPlayerNameForProtocol(Friend)) ? 1 : 0);// getWorld("Player");
  1581.             boolean isOnline = WorldId != 0;
  1582.             Player friend = Packets.getPlayerByName(Friend);
  1583.             if (friend != null) {
  1584.                 if (friend.privateChatMode == 2) {
  1585.                     this.getFrames().sendFriend(this, Friend, Friend, (short) 0, false, false, colour, onlinestatus);
  1586.                 } else if (friend.privateChatMode == 1) {
  1587.                     this.getFrames().sendFriend(this, Friend, Friend, (short) 1, false, false, colour, onlinestatus);
  1588.                 } else if (friend.privateChatMode == 0) {
  1589.                     this.getFrames().sendFriend(this, Friend, Friend, (short) 1, true, false, colour, onlinestatus);
  1590.                 }
  1591.             } else
  1592.                 this.getFrames().sendFriend(this, Friend, Friend, (short) 0, false, false, colour, onlinestatus);
  1593.         }
  1594.     }
  1595.  
  1596.     private void LoadIgnoreList() {
  1597.         for (String Ignore : getIgnores()) {
  1598.             this.getFrames().sendIgnore(Ignore, Ignore);
  1599.         }
  1600.     }
  1601.  
  1602.     public void UpdateFriendStatus(String Friend, short worldId, boolean isOnline) {
  1603.         this.getFrames().sendFriend(this, Friend, Friend, worldId, isOnline, true, colour, onlinestatus);
  1604.     }
  1605.  
  1606.     public void UpdateFriendStatus(String Friend, boolean isOnline) {
  1607.         this.getFrames().sendFriend(this, Friend, isOnline, true);
  1608.     }
  1609.  
  1610.     public void AddFriend(String friend) {
  1611.         if (getFriends().size() < 200 && friend != null && !friend.equalsIgnoreCase("")
  1612.                 && !friend.equalsIgnoreCase(this.getUsername())) {
  1613.             if (!getFriends().contains(friend)) {
  1614.                 getFriends().add(friend);
  1615.                 this.getFrames().sendFriend(this, friend, friend, (short) 0, false, false, colour, onlinestatus);
  1616.                 Player addedFriend = Packets.getPlayerByName(friend);
  1617.                 if (addedFriend != null) {
  1618.                     addedFriend.getFrames().updateFriendsList(true);
  1619.                 } else
  1620.                     UpdateFriendStatus(friend, (short) 0, false);
  1621.                 this.getFrames().updateFriendsList(true);
  1622.             } else
  1623.                 getFrames().sendChatMessage(0, friend + " is already on your friends list.");
  1624.         } else {
  1625.             getFrames().sendChatMessage(0, "Your friends list is full!");
  1626.         }
  1627.     }
  1628.  
  1629.     public void RemoveFriend(String friend) {
  1630.         if (friend != null) {
  1631.             getFriends().remove(friend);
  1632.             this.getFrames().updateFriendsList(true);
  1633.             getFrames().sendChatMessage(0, "You removed " + friend + " from your friends list.");
  1634.         }
  1635.     }
  1636.  
  1637.     public void AddIgnore(String Ignore) {
  1638.         if (getIgnores().size() >= 100 || Ignore == null || getFriends().contains(Ignore)
  1639.                 || getIgnores().contains(Ignore)
  1640.                 || getIgnores().equals(Misc.formatPlayerNameForDisplay(this.getUsername())))
  1641.             return;
  1642.         getIgnores().add(Ignore);
  1643.         this.getFrames().sendIgnore(Ignore, Ignore);
  1644.     }
  1645.  
  1646.     public void addIgnore(String ignore) {
  1647.         if (getIgnores().size() >= 100 || ignore == null || getIgnores().contains(ignore)
  1648.                 || getFriends().contains(ignore))
  1649.             return;
  1650.         getIgnores().add(ignore);
  1651.         this.getFrames().sendIgnore(ignore, ignore);
  1652.     }
  1653.  
  1654.     public void removeIgnore(String Ignore) {
  1655.         if (Ignore == null || !getIgnores().contains(Ignore))
  1656.             return;
  1657.         getIgnores().remove(Ignore);
  1658.     }
  1659.  
  1660.     public void Updateforcemovement() {
  1661.         mask.setForceMovementUpdateRequired(true);
  1662.     }
  1663.  
  1664.     public void RemoveIgnore(String Ignore) {
  1665.         if (Ignore == null || !getIgnores().contains(Ignore))
  1666.             return;
  1667.         getIgnores().remove(Ignore);
  1668.     }
  1669.  
  1670.     @SuppressWarnings("deprecation")
  1671.     public void MakeMember(int numberofmonths) {
  1672.         if (getMembership().before(new Date()))
  1673.             setMembership(new Date());
  1674.         getMembership().setMonth(getMembership().getMonth() + numberofmonths);
  1675.  
  1676.     }
  1677.  
  1678.     public int getMembershipCredit() {
  1679.         Date today = new Date();
  1680.         if (getMembership().before(today))
  1681.             return 0;
  1682.         long MembershipTime = getMembership().getTime();
  1683.         long TodayTime = today.getTime();
  1684.         int DayOfFinish = (int) (MembershipTime / 1000 / 60 / 60 / 24);
  1685.         int DayOfToday = (int) (TodayTime / 1000 / 60 / 60 / 24);
  1686.         return DayOfFinish - DayOfToday;
  1687.     }
  1688.  
  1689.     public void setFrames(Frames frames) {
  1690.         this.frames = frames;
  1691.     }
  1692.  
  1693.     public Frames getFrames() {
  1694.         if (frames == null)
  1695.             frames = new Frames(this);
  1696.         return frames;
  1697.     }
  1698.  
  1699.     public void setConnection(ConnectionHandler connection) {
  1700.         this.connection = connection;
  1701.     }
  1702.  
  1703.     public ConnectionHandler getConnection() {
  1704.         return connection;
  1705.     }
  1706.  
  1707.     public void setUsername(String username) {
  1708.         Username = username;
  1709.     }
  1710.  
  1711.     public String voteDelay = "100";
  1712.     public int shopId;
  1713.     {
  1714.     }
  1715.  
  1716.     public String getUsername() {
  1717.         if (Username == null)
  1718.             Username = "";
  1719.         return Username;
  1720.     }
  1721.  
  1722.     public void setDisplayName(String displayName) {
  1723.         DisplayName = displayName;
  1724.     }
  1725.  
  1726.     public String getDisplayName() {
  1727.         if (DisplayName == null)
  1728.             DisplayName = "";
  1729.         return DisplayName;
  1730.     }
  1731.  
  1732.     public void setPassword655(String password655) {
  1733.         Password655 = password655;
  1734.     }
  1735.  
  1736.  
  1737.  
  1738.     public String getPassword655() {
  1739.         if (Password655 == null)
  1740.             Password655 = "";
  1741.         return Password655;
  1742.     }
  1743.       public boolean getToggleName() {
  1744.             return this.toggleName;
  1745.         }
  1746.  
  1747.         /*
  1748.          * Set your custom title on/off
  1749.          */
  1750.         public void setToggleName(boolean toggle) {
  1751.             this.toggleName = toggle;
  1752.         }
  1753.  
  1754.     public void setBirthDate(Calendar birthDate) {
  1755.         BirthDate = birthDate;
  1756.     }
  1757.  
  1758.     public Calendar getBirthDate() {
  1759.         if (BirthDate == null)
  1760.             BirthDate = new GregorianCalendar();
  1761.         return BirthDate;
  1762.     }
  1763.  
  1764.     public void setCountry(short country) {
  1765.         Country = country;
  1766.     }
  1767.  
  1768.     public short getCountry() {
  1769.         return Country;
  1770.     }
  1771.  
  1772.     public void setEmail(String email) {
  1773.         Email = email;
  1774.     }
  1775.  
  1776.     public String getEmail() {
  1777.         if (Email == null)
  1778.             Email = "";
  1779.         return Email;
  1780.     }
  1781.  
  1782.     public void setSettings(byte settings) {
  1783.         Settings = settings;
  1784.     }
  1785.  
  1786.     public byte getSettings() {
  1787.         return Settings;
  1788.     }
  1789.  
  1790.     public void setRegistDate(Calendar registDate) {
  1791.         RegistDate = registDate;
  1792.     }
  1793.       public void setDonatorRights(DonatorRights donatorRights) {
  1794.             this.donatorRights = donatorRights;
  1795.       }
  1796.       public DonatorRights getDonatorRights() {
  1797.             return this.donatorRights;
  1798.         }
  1799.       public String getPassword() {
  1800.             if (password == null)
  1801.                 password = "";
  1802.             return password;
  1803.         }
  1804.       public StaffRights getStaffRights() {
  1805.             return staffRights;
  1806.         }
  1807.  
  1808.         /*
  1809.          * Set the players staff staffRights
  1810.          * @StaffRights
  1811.          */
  1812.         public void setStaffRights(StaffRights rights) {
  1813.             this.staffRights = rights;
  1814.         }
  1815.  
  1816.         public void setPlayerRights(StaffRights rights) {
  1817.             this.staffRights = rights;
  1818.         }
  1819.         public void setSerialAddress(String serial) {
  1820.             this.mySerialAddress = serial;
  1821.         }
  1822.  
  1823.         /*
  1824.          * Gets the players ip address
  1825.          */
  1826.         public String getIpAddress() {
  1827.             return this.myIpAddress;
  1828.         }
  1829.  
  1830.         /*
  1831.          * Set the players ip address
  1832.          * Can also be used to implement ip address via characters.
  1833.          */
  1834.         public void setIpAddress(String ip) {
  1835.             this.myIpAddress = ip;
  1836.         }
  1837.         public String getMacAddress() {
  1838.             return this.myMacAddress;
  1839.         }
  1840.  
  1841.         /*
  1842.          * Set the players mac address
  1843.          * Can also be used to implement mac address via characters.
  1844.          */
  1845.         public void setMacAddress(String mac) {
  1846.             this.myMacAddress = mac;
  1847.         }
  1848.  
  1849.         /*
  1850.          * Gets the players serial address
  1851.          */
  1852.         public String getSerialAddress() {
  1853.             return this.mySerialAddress;
  1854.         }
  1855.  
  1856.         /*
  1857.          * Set the players serial address
  1858.          * Can also be used to implement serial address via characters.
  1859.          */
  1860.    
  1861.  
  1862.         /*
  1863.          * Gets the players ip address
  1864.  
  1865.  
  1866.  
  1867.         /*
  1868.          * Gets the players ip address
  1869.          */
  1870.         public String getComputerAddress() {
  1871.             return this.myComputerAddress;
  1872.         }
  1873.  
  1874.         /*
  1875.          * Set the players computer address
  1876.          * Can also be used to implement computer address via characters.
  1877.          */
  1878.         public void setComputerAddress(String cp) {
  1879.             this.myComputerAddress = cp;
  1880.         }
  1881.     public Calendar getRegistDate() {
  1882.         if (RegistDate == null)
  1883.             RegistDate = new GregorianCalendar();
  1884.         return RegistDate;
  1885.     }
  1886.  
  1887.     public void setOnline(boolean isOnline) {
  1888.         this.isOnline = isOnline;
  1889.     }
  1890.  
  1891.     public boolean isOnline() {
  1892.         return isOnline;
  1893.     }
  1894.  
  1895.     public void setMembership(Date membership) {
  1896.         Membership = membership;
  1897.     }
  1898.  
  1899.     public Date getMembership() {
  1900.         if (Membership == null)
  1901.             Membership = new Date();
  1902.         return Membership;
  1903.     }
  1904.  
  1905.     public void setFriends(List<String> friends) {
  1906.         this.friends = friends;
  1907.     }
  1908.  
  1909.     public void initialiseBank() {
  1910.         this.getBank().setPlayer(this);
  1911.     }
  1912.  
  1913.     public void initialiseInventory() {
  1914.         this.getInventory().setPlayer(this);
  1915.     }
  1916.  
  1917.     public List<String> getFriends() {
  1918.         if (friends == null)
  1919.             friends = new ArrayList<String>(200);
  1920.         return friends;
  1921.     }
  1922.  
  1923.     public void setIgnores(List<String> ignores) {
  1924.         this.ignores = ignores;
  1925.     }
  1926.  
  1927.     public List<String> getIgnores() {
  1928.         if (ignores == null)
  1929.             ignores = new ArrayList<String>(100);
  1930.         return ignores;
  1931.     }
  1932.  
  1933.     public void setMuted(boolean isMuted) {
  1934.         this.playerMuted = isMuted;
  1935.     }
  1936.  
  1937.     public boolean isMuted() {
  1938.         return playerMuted;
  1939.     }
  1940.  
  1941.     public void setBanned(boolean isBanned) {
  1942.         this.isBanned = isBanned;
  1943.     }
  1944.  
  1945.     public boolean isBanned() {
  1946.         return isBanned;
  1947.     }
  1948.  
  1949.     public void setLOCKED(boolean isLOCKED) {
  1950.         this.isLOCKED = isLOCKED;
  1951.     }
  1952.  
  1953.     public boolean isLOCKED() {
  1954.         return isLOCKED;
  1955.     }
  1956.  
  1957.     public boolean round2 = false;
  1958.     public boolean poisened = false;
  1959.  
  1960.     public int donationPoints = 0;
  1961.     public transient long jailTimer;
  1962.     public int DUNGPOINTS;
  1963.  
  1964.     public void setMessages(List<String> messages) {
  1965.         Messages = messages;
  1966.     }
  1967.  
  1968.     public List<String> getMessages() {
  1969.         if (Messages == null)
  1970.             Messages = new ArrayList<String>();
  1971.         return Messages;
  1972.     }
  1973.  
  1974.     public void setLastIp(int lastIp) {
  1975.         LastIp = lastIp;
  1976.     }
  1977.  
  1978.     public int getLastIp() {
  1979.         return LastIp;
  1980.     }
  1981.  
  1982.     public void setRights555(byte rights555) {
  1983.         this.rights555 = rights555;
  1984.     }
  1985.  
  1986.     public byte getRights555() {
  1987.         return rights555;
  1988.     }
  1989.  
  1990.     @Override
  1991.     public void animate(int id) {
  1992.         this.getMask().setLastAnimation(new Animation((short) id, (short) 0));
  1993.         this.getMask().setAnimationUpdate(true);
  1994.     }
  1995.  
  1996.     public static int[] RandomEmote = { 437, 440 };
  1997.  
  1998.     public static int RandomEmote() {
  1999.         return RandomEmote[(int) (Math.random() * RandomEmote.length)];
  2000.     }
  2001.  
  2002.     public void animate2(int RandomEmote) {
  2003.         this.getMask().setLastAnimation(new Animation((short) RandomEmote, (short) 0));
  2004.         this.getMask().setAnimationUpdate(true);
  2005.     }
  2006.  
  2007.     @Override
  2008.     public void animate(int id, int delay) {
  2009.         this.getMask().setLastAnimation(new Animation((short) id, (short) delay));
  2010.         this.getMask().setAnimationUpdate(true);
  2011.  
  2012.     }
  2013.  
  2014.     @Override
  2015.     public void graphics(int id) {
  2016.         this.getMask().setLastGraphics(new Graphics((short) id, (short) 0));
  2017.         this.getMask().setGraphicUpdate(true);
  2018.     }
  2019.  
  2020.     public void graphics(int id, int delay, int height) {
  2021.         this.getMask().setLastGraphics(new Graphics((short) id, (short) delay, (short) height));
  2022.         this.getMask().setGraphicUpdate(true);
  2023.     }
  2024.  
  2025.     public void graphics2(int id) {
  2026.         this.getMask().setLastGraphics2(new Graphics((short) id, (short) 0));
  2027.         this.getMask().setGraphic2Update(true);
  2028.     }
  2029.  
  2030.     public void graphics2(int id, int delay) {
  2031.         this.getMask().setLastGraphics2(new Graphics((short) id, (short) delay));
  2032.         this.getMask().setGraphic2Update(true);
  2033.     }
  2034.  
  2035.     @Override
  2036.     public void graphics(int id, int delay) {
  2037.         this.getMask().setLastGraphics(new Graphics((short) id, (short) delay));
  2038.         this.getMask().setGraphicUpdate(true);
  2039.     }
  2040.  
  2041.     @Override
  2042.     public void heal(int amount) {
  2043.         // TODO Auto-generated method stub
  2044.  
  2045.     }
  2046.  
  2047.     public void Hitsplatheal(int amount) {
  2048.         // TODO Auto-generated method stub
  2049.  
  2050.     }
  2051.  
  2052.     public void heal(int healdelay, int bardelay, int healspeed) {
  2053.         getMask().setLastHeal(new Heal((short) healdelay, (byte) bardelay, (byte) healspeed));
  2054.         getMask().setHealUpdate(true);
  2055.  
  2056.     }
  2057.  
  2058.     public void processQueuedHits() {
  2059.         if (!this.getMask().isHitUpdate()) {
  2060.             if (queuedHits.size() > 0) {
  2061.                 Hit h = queuedHits.poll();
  2062.                 this.hit(h.getDamage(), h.getType());
  2063.             }
  2064.         }
  2065.         if (!this.getMask().isHit2Update()) {
  2066.             if (queuedHits.size() > 0) {
  2067.                 Hit h = queuedHits.poll();
  2068.                 this.hit(h.getDamage(), h.getType());
  2069.                 if (this.LogoutDelay > 0)
  2070.                     this.LogoutDelay--;
  2071.             }
  2072.         }
  2073.     }
  2074.  
  2075.     /*
  2076.      * public boolean isInArea(int x, int y, int x2, int y2, int height) { if
  2077.      * (this.getZcoord() != height) return false; if ((this.getXcoord() >= x &&
  2078.      * this.getXcoord() <= x2) && (this.getYcoord() <= y && this.getYcoord() >=
  2079.      * y2)) return true; return false; }
  2080.      *
  2081.      * public boolean inPvpAttackable() { if (isInArea(2408, 4717, 2410, 4714,
  2082.      * 0)) return false; if (isInArea(2411, 4716, 2411, 4714, 0)) return false;
  2083.      * return isInArea(2390, 4746, 2436, 4685, 0); }
  2084.      */
  2085.  
  2086.     public void hit(int damage, Hits.HitType type) {
  2087.         if (this.isDead()) {
  2088.             return;
  2089.         }
  2090.         if (tabbing > 0) {
  2091.             return;
  2092.         }
  2093.         if (damage < 0) {
  2094.             damage = 0;
  2095.         }
  2096.         this.LogoutDelay = 16;
  2097.         if (System.currentTimeMillis() < this.getCombatDefinitions().getLastEmote() - 600) {
  2098.             queuedHits.add(new Hit(damage, type));
  2099.         } else if (!this.getMask().isHitUpdate()) {
  2100.             this.hits.setHit1(new Hit(damage, type));
  2101.             this.getMask().setHitUpdate(true);
  2102.             this.getSkills().hit(damage);
  2103.         } else if (!this.getMask().isHit2Update()) {
  2104.             this.hits.setHit2(new Hit(damage, type));
  2105.             this.getMask().setHit2Update(true);
  2106.             this.getSkills().hit(damage);
  2107.         } else {
  2108.             if (this.skills.getHitPoints() <= 0) {
  2109.                 return;
  2110.             }
  2111.  
  2112.             queuedHits.add(new Hit(damage, type));
  2113.  
  2114.         }
  2115.     }
  2116.     /*
  2117.      * if (prayer.usingPrayer(0, 22)) { String name =
  2118.      * Misc.formatPlayerNameForDisplay(this.getUsername().replaceAll("_", " "));
  2119.      * if (this.skills.getHitPoints() <= 0) { this.graphics(437, 0);
  2120.      * this.graphics(437, 0); retributionFlames();
  2121.      * if(!this.getCombat().Multi(this)) { this.getFrames().sendChatMessage(0,
  2122.      * "Sorry "+name+", but you can only use this prayer in ::multi"); return; }
  2123.      * for (Player target2 : World.getPlayers()) { if (this == target2)
  2124.      * continue; if(target2.getCombat().isSafe(this)) { return; }
  2125.      * if(this.getCombat().isSafe(target2)) { return; } boolean withinReach =
  2126.      * Misc.getDistance(this.getLocation().getX(), this.getLocation().getY(),
  2127.      * target2.getLocation().getX(), target2.getLocation().getY()) < 2; if
  2128.      * (withinReach && !target2.getCombat().isSafe(this)) {
  2129.      * target2.hit(Misc.random((int)
  2130.      * (skills.getLevelForXp(Skills.PRAYER)*2.5))); } } } } if
  2131.      * (prayer.usingPrayer(1, 17)) { String name =
  2132.      * Misc.formatPlayerNameForDisplay(this.getUsername().replaceAll("_", " "));
  2133.      * if (this.skills.getHitPoints() <= 0) { this.animate(12583);
  2134.      * this.graphics(2259, 180); this.graphics(2259, 180); WrathBombs();
  2135.      * if(!this.getCombat().Multi(this)) { this.getFrames().sendChatMessage(0,
  2136.      * "Sorry "+name+", but you can only use this prayer in ::multi"); return; }
  2137.      * for (Player target2 : World.getPlayers()) { if (this == target2)
  2138.      * continue; boolean withinReach =
  2139.      * Misc.getDistance(this.getLocation().getX(), this.getLocation().getY(),
  2140.      * target2.getLocation().getX(), target2.getLocation().getY()) < 3;
  2141.      * if(target2.getCombat().isSafe(this)) { return; }
  2142.      * if(this.getCombat().isSafe(target2)) { return; } if (withinReach &&
  2143.      * !this.getCombat().isSafe(this)) { target2.hit(Misc.random((int)
  2144.      * (skills.getLevelForXp(Skills.PRAYER) * 2.5))); } } } } }
  2145.      */
  2146.  
  2147.     /*
  2148.      * public void WrathBombs() { stillGraphic(2260, 0, 0, getXcoord()+1,
  2149.      * getYcoord()-1, 60); stillGraphic(2260, 0, 2, getXcoord()+1,
  2150.      * getYcoord()+1, 60); stillGraphic(2260, 0, 6, getXcoord()-1,
  2151.      * getYcoord()-1, 60); stillGraphic(2260, 0, 4, getXcoord()-1,
  2152.      * getYcoord()+1, 60);
  2153.      *
  2154.      * stillGraphic(2260, 0, 5, getXcoord()+2, getYcoord()+2, 40);
  2155.      * stillGraphic(2260, 0, 2, getXcoord()-2, getYcoord()-2, 40);
  2156.      * stillGraphic(2260, 0, 6, getXcoord()+2, getYcoord()-2, 40);
  2157.      * stillGraphic(2260, 0, 3, getXcoord()-2, getYcoord()+2, 40);
  2158.      * stillGraphic(2260, 0, 7, getXcoord()+2, getYcoord(), 40);
  2159.      * stillGraphic(2260, 0, 1, getXcoord()-2, getYcoord(), 40);
  2160.      * stillGraphic(2260, 0, 0, getXcoord(), getYcoord()+2, 40);
  2161.      * stillGraphic(2260, 0, 4, getXcoord(), getYcoord()-2, 40); }
  2162.      *
  2163.      * public void retributionFlames() { stillGraphic(438, 1, 0, getXcoord(),
  2164.      * getYcoord()-1, 35); stillGraphic(438, 1, 1, getXcoord()-1, getYcoord()-1,
  2165.      * 35); stillGraphic(438, 1, 2, getXcoord()-1, getYcoord(), 35);
  2166.      * stillGraphic(438, 1, 3, getXcoord()-1, getYcoord()+1, 35);
  2167.      * stillGraphic(438, 1, 4, getXcoord(), getYcoord()+1, 35);
  2168.      * stillGraphic(438, 1, 5, getXcoord()+1, getYcoord()+1, 35);
  2169.      * stillGraphic(438, 1, 6, getXcoord()+1, getYcoord(), 35);
  2170.      * stillGraphic(438, 1, 7, getXcoord()+1, getYcoord()-1, 35); } public void
  2171.      * stillGraphic(int id, int height, int rotation, int X, int Y, int Delay) {
  2172.      * if (height == 1) height = 65535; for (Player target2 :
  2173.      * World.getPlayers()) { Player p = (Player) target2; boolean withinReach =
  2174.      * Misc.getDistance(X, Y, target2.getLocation().getX(),
  2175.      * target2.getLocation().getY()) < 60; if (withinReach) {
  2176.      * this.getFrames().stillGraphic(id, height, rotation, X, Y, Delay); } } }
  2177.      */
  2178.     public void stillGraphic(int id, int height, int rotation, int X, int Y, int Delay) {
  2179.         if (height == 1)
  2180.             height = 65535;
  2181.         for (Player target2 : World.getPlayers()) {
  2182.             Player p = (Player) target2;
  2183.             boolean withinReach = Misc.getDistance(X, Y, target2.getLocation().getX(),
  2184.                     target2.getLocation().getY()) < 60;
  2185.             if (withinReach) {
  2186.                 this.getFrames().stillGraphic(id, height, rotation, X, Y, Delay);
  2187.             }
  2188.         }
  2189.     }
  2190.  
  2191.     @Override
  2192.     public void hit(int damage) {
  2193.         // int wep = this.getEquipment().getEquipment().get(3).getId();
  2194.         if (this.isDead()) {
  2195.             return;
  2196.         }
  2197.         if (tabbing > 0) {
  2198.             return;
  2199.         }
  2200.         if (damage < 0) {
  2201.             damage = 0;
  2202.         }
  2203.         if (damage > this.skills.getHitPoints())
  2204.             damage = this.skills.getHitPoints();
  2205.         if (damage == 0) {
  2206.             hit(damage, Hits.HitType.NO_DAMAGE);
  2207.             // } else if(damage >= 340 && wep == 5698) {
  2208.             // hit(damage, Hits.HitType.DUNGEON_DAMAGE);
  2209.         } else if (damage >= 640) {
  2210.             hit(damage, Hits.HitType.DUNGEON_DAMAGE);
  2211.         } else if (damage >= 100) {
  2212.             hit(damage, Hits.HitType.NORMAL_BIG_DAMAGE);
  2213.         } else {
  2214.             hit(damage, Hits.HitType.NORMAL_DAMAGE);
  2215.         }
  2216.     }
  2217.  
  2218.     public boolean checkVotes(String Username) {
  2219.         try {
  2220.             String urlString = "" + Username;
  2221.             urlString = urlString.replaceAll("http://www.spawnscape614.net/vote/", "%20");
  2222.             URL url = new URL(urlString);
  2223.             BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
  2224.             String results = reader.readLine();
  2225.             if (results.length() > 0) {
  2226.                 if (results.equals("user needs reward..."))
  2227.                     return true;
  2228.                 else
  2229.                     return false;
  2230.             }
  2231.         } catch (MalformedURLException e) {
  2232.             System.out.println("Malformed URL Exception in checkVotes(String playerName)");
  2233.         } catch (IOException e) {
  2234.             System.out.println("IO Exception in checkVotes(String playerName)");
  2235.         }
  2236.         return false;
  2237.     }
  2238.  
  2239.     public void hit(int damage, Player opp) {
  2240.         target = opp.getUsername().replace("_", " ").toLowerCase();
  2241.         if (this.isDead() || opp.isDead()) {
  2242.             return;
  2243.         }
  2244.         if (opp.tabbing > 0) {
  2245.             return;
  2246.         }
  2247.         if (tabbing > 0) {
  2248.             return;
  2249.         }
  2250.         if (damage < 0) {
  2251.             damage = 0;
  2252.         }
  2253.         /*
  2254.          * int weaponID = this.getEquipment().get(3).getId(); if(weaponID ==
  2255.          * 7806) { opp.graphics(435); opthis.getFrames().sendChatMessage(0,
  2256.          * "The other player healed 10 hitpoints off you.");
  2257.          * this.getSkills().heal(10); }
  2258.          */
  2259.         if (!prayer.usingPrayer(1, 17) && this.isDead()) {
  2260.             return;
  2261.         }
  2262.  
  2263.         /*
  2264.          * if(opp.autoRetaliate) { opp.turnTo(this);
  2265.          * this.getCombat().attack(this); } if(this.autoRetaliate) {
  2266.          * this.turnTo(opp); this.getCombat().attack(opp); }
  2267.          */
  2268.         /*
  2269.          * if (this.autoRetaliate && !this.isAttacking()) { this.isAttacking =
  2270.          * true; this.turnTo(opp); this.getCombat().attack(opp); } if
  2271.          * (opp.autoRetaliate && !this.isAttacking()) { opp.isAttacking = true;
  2272.          * opp.turnTo(this); opp.getCombat().attack(this); }
  2273.          */
  2274.         this.getSkills().killerName = opp.getUsername();
  2275.         // int wep = this.getEquipment().getEquipment().get(3).getId();
  2276.         if (damage > this.skills.getHitPoints())
  2277.             damage = this.skills.getHitPoints();
  2278.         if (damage == 0) {
  2279.             hit(damage, Hits.HitType.NO_DAMAGE);
  2280.             // } else if(damage >= 340 && wep == 5698) {
  2281.             // hit(damage, Hits.HitType.DUNGEON_DAMAGE);
  2282.         } else if (damage >= 640) {
  2283.             hit(damage, Hits.HitType.DUNGEON_DAMAGE);
  2284.         } else if (damage >= 100) {
  2285.             hit(damage, Hits.HitType.NORMAL_BIG_DAMAGE);
  2286.         } else {
  2287.             hit(damage, Hits.HitType.NORMAL_DAMAGE);
  2288.         }
  2289.     }
  2290.  
  2291.     public void hitType(int damage, HitType hitType) {
  2292.         if (this.isDead()) {
  2293.             return;
  2294.         }
  2295.         if (damage < 0) {
  2296.             damage = 0;
  2297.         }
  2298.         if (damage > this.skills.getHitPoints())
  2299.             damage = this.skills.getHitPoints();
  2300.         hit(damage, hitType);
  2301.     }
  2302.  
  2303.     @Override
  2304.     public void resetTurnTo() {
  2305.         this.mask.setTurnToIndex(-1);
  2306.         this.mask.setTurnToReset(true);
  2307.         this.mask.setTurnToUpdate(true);
  2308.     }
  2309.  
  2310.     @Override
  2311.     public void turnTemporarilyTo(Entity entity) {
  2312.         // TODO Auto-generated method stub
  2313.         this.mask.setTurnToIndex(entity.getClientIndex());
  2314.         this.mask.setTurnToReset(true);
  2315.         this.mask.setTurnToUpdate(true);
  2316.     }
  2317.  
  2318.     public void turnTemporarilyTo(RSTile location) {
  2319.         this.mask.setTurnToLocation(location);
  2320.         this.mask.setTurnToUpdate1(true);
  2321.     }
  2322.  
  2323.     @Override
  2324.     public void turnTo(Entity entity) {
  2325.         this.mask.setTurnToIndex(entity.getClientIndex());
  2326.         this.mask.setTurnToReset(false);
  2327.         this.mask.setTurnToUpdate(true);
  2328.     }
  2329.  
  2330.     public void setMask(Mask mask) {
  2331.         this.mask = mask;
  2332.     }
  2333.  
  2334.     public Mask getMask() {
  2335.         return mask;
  2336.     }
  2337.  
  2338.     public void setAppearence(Appearence appearence) {
  2339.         this.appearence = appearence;
  2340.     }
  2341.  
  2342.     public Appearence getAppearence() {
  2343.         return appearence;
  2344.     }
  2345.  
  2346.     public void setInventory(Inventory inventory) {
  2347.         this.inventory = inventory;
  2348.     }
  2349.  
  2350.     public Inventory getInventory() {
  2351.         return inventory;
  2352.     }
  2353.  
  2354.     public void setEquipment(Equipment equipment) {
  2355.         this.equipment = equipment;
  2356.     }
  2357.  
  2358.     public Equipment getEquipment() {
  2359.         return equipment;
  2360.     }
  2361.  
  2362.     public void setSkills(Skills skills) {
  2363.         this.skills = skills;
  2364.     }
  2365.  
  2366.     public Skills getSkills() {
  2367.         return skills;
  2368.     }
  2369.  
  2370.     public void setIntermanager(InterfaceManager intermanager) {
  2371.         this.intermanager = intermanager;
  2372.     }
  2373.  
  2374.     public InterfaceManager getIntermanager() {
  2375.         return intermanager;
  2376.     }
  2377.  
  2378.     public void setInClient(boolean inClient) {
  2379.         this.inClient = inClient;
  2380.     }
  2381.  
  2382.     public boolean isInClient() {
  2383.         return inClient;
  2384.     }
  2385.  
  2386.     public void setCombatDefinitions(CombatDefinitions combat) {
  2387.         this.combatdefinitions = combat;
  2388.     }
  2389.  
  2390.     public CombatDefinitions getCombatDefinitions() {
  2391.         return combatdefinitions;
  2392.     }
  2393.  
  2394.     public TradeSession getTradeSession() {
  2395.         return this.currentTradeSession;
  2396.     }
  2397.  
  2398.     public void setTradeSession(TradeSession newSession) {
  2399.         currentTradeSession = newSession;
  2400.     }
  2401.  
  2402.     public void setTradePartner(Player tradePartner) {
  2403.         this.tradePartner = tradePartner;
  2404.     }
  2405.  
  2406.     public Player getTradePartner() {
  2407.         return tradePartner;
  2408.     }
  2409.  
  2410.     public void setPriceCheck(PriceCheck pricecheck) {
  2411.         this.pricecheck = pricecheck;
  2412.     }
  2413.  
  2414.     public PriceCheck getPriceCheck() {
  2415.         return pricecheck;
  2416.     }
  2417.  
  2418.     public void setDialogue(Dialogue dialogue) {
  2419.         this.dialogue = dialogue;
  2420.     }
  2421.  
  2422.     public Dialogue getDialogue() {
  2423.         return dialogue;
  2424.     }
  2425.  
  2426.     public void setMining(Mining mining) {
  2427.         this.mining = mining;
  2428.     }
  2429.  
  2430.     public Mining getMining() {
  2431.         return mining;
  2432.     }
  2433.  
  2434.     public Fishing getFishing() {
  2435.         return fishin;
  2436.     }
  2437.  
  2438.     public boolean isLoggedIn() {
  2439.         return isLoggedIn;
  2440.     }
  2441.  
  2442.     public void setLoggedIn(boolean b) {
  2443.         this.isLoggedIn = b;
  2444.     }
  2445.  
  2446.     public void setPrayer(Prayer prayer) {
  2447.         this.prayer = prayer;
  2448.     }
  2449.  
  2450.     // Bank Tabs
  2451.     public int getCurrentTab() {
  2452.         return currentTab;
  2453.     }
  2454.  
  2455.     public void setCurrentTab(int i) {
  2456.         this.currentTab = i;
  2457.     }
  2458.  
  2459.     public DuelArena getDuelSession() {
  2460.         return this.currentDuelSession;
  2461.     }
  2462.  
  2463.     public void setDuelSession(DuelArena newSession) {
  2464.         currentDuelSession = newSession;
  2465.     }
  2466.  
  2467.     public void setDuelPartner(Player duelPartner) {
  2468.         this.duelPartner = duelPartner;
  2469.     }
  2470.  
  2471.     public Player getDuelPartner() {
  2472.         return duelPartner;
  2473.     }
  2474.  
  2475.     public int[] getBankTabSize() {
  2476.         return tab;
  2477.     }
  2478.  
  2479.     public Prayer getPrayer() {
  2480.         return prayer;
  2481.     }
  2482.  
  2483.     public void setQueuedHits(Queue<Hit> queuedHits) {
  2484.         this.queuedHits = queuedHits;
  2485.     }
  2486.  
  2487.     public Queue<Hit> getQueuedHits() {
  2488.         return queuedHits;
  2489.     }
  2490.  
  2491.     public void setHits(Hits hits) {
  2492.         this.hits = hits;
  2493.     }
  2494.  
  2495.     public Hits getHits() {
  2496.         return hits;
  2497.     }
  2498.  
  2499.     public void setGpi(Gpi gpi) {
  2500.         this.gpi = gpi;
  2501.     }
  2502.  
  2503.     public Gpi getGpi() {
  2504.         return gpi;
  2505.     }
  2506.  
  2507.     public void setMusicmanager(MusicManager musicmanager) {
  2508.         this.musicmanager = musicmanager;
  2509.     }
  2510.  
  2511.     public MusicManager getMusicmanager() {
  2512.         return musicmanager;
  2513.     }
  2514.  
  2515.     public void setBank(Banking bank) {
  2516.         this.bank = bank;
  2517.     }
  2518.  
  2519.     public Banking getBank() {
  2520.         return bank;
  2521.     }
  2522.  
  2523.     public void setHinticonmanager(HintIconManager hinticonmanager) {
  2524.         this.hinticonmanager = hinticonmanager;
  2525.     }
  2526.  
  2527.     public HintIconManager getHinticonmanager() {
  2528.         return hinticonmanager;
  2529.     }
  2530.  
  2531.     public void setMinigamemanager(MinigameManager minigamemanager) {
  2532.         Minigamemanager = minigamemanager;
  2533.     }
  2534.  
  2535.     public MinigameManager getMinigamemanager() {
  2536.         return Minigamemanager;
  2537.     }
  2538.  
  2539.     public void setGni(Gni gni) {
  2540.         this.gni = gni;
  2541.     }
  2542.  
  2543.     public Gni getGni() {
  2544.         return gni;
  2545.     }
  2546.  
  2547.     public void setWoodcutting(WoodCutting woodcutting) {
  2548.         this.woodcutting = woodcutting;
  2549.     }
  2550.  
  2551.     public WoodCutting getWoodcutting() {
  2552.         return woodcutting;
  2553.     }
  2554.  
  2555.     public void setCombatDelay(int combatDelay) {
  2556.         this.combatDelay = combatDelay;
  2557.     }
  2558.  
  2559.     public void setDonatorPoints(int donatorPoints) {
  2560.         this.donatorPoints = donatorPoints;
  2561.     }
  2562.  
  2563.     public void setDonationPoints(int donationPoints) {
  2564.         this.donationPoints = donationPoints;
  2565.     }
  2566.  
  2567.     public int getDonationPoints() {
  2568.         return donatorPoints;
  2569.     }
  2570.  
  2571.     public int getDonatorPoints() {
  2572.         return donatorPoints;
  2573.     }
  2574.  
  2575.     public int getCombatDelay() {
  2576.         return combatDelay;
  2577.     }
  2578.  
  2579.     public void setAttacking(boolean isAttacking) {
  2580.         this.isAttacking = isAttacking;
  2581.     }
  2582.  
  2583.     public void teleport(final int coordX, final int coordY, final int height) {
  2584.         getMask().getRegion().teleport(coordX, coordY, height, 0);
  2585.     }
  2586.  
  2587.     public boolean isAttacking() {
  2588.         return isAttacking;
  2589.     }
  2590.  
  2591.     public void setAttackingEntity(Entity attackingEntity) {
  2592.         this.attackingEntity = attackingEntity;
  2593.     }
  2594.  
  2595.     public Entity getAttackingEntity() {
  2596.         return attackingEntity;
  2597.     }
  2598.  
  2599.     /**
  2600.      * @param shophandler
  2601.      *            the shophandler to set
  2602.      */
  2603.     public void setShophandler(ShopHandler shophandler) {
  2604.         this.shophandler = shophandler;
  2605.     }
  2606.  
  2607.     /**
  2608.      * @return the shophandler
  2609.      */
  2610.     public ShopHandler getShophandler() {
  2611.         return shophandler;
  2612.     }
  2613.  
  2614.     public void selectedRanged() {
  2615.         // TODO Auto-generated method stub
  2616.  
  2617.     }
  2618.  
  2619.     public void selectedMelee() {
  2620.         // TODO Auto-generated method stub
  2621.  
  2622.     }
  2623.  
  2624.     public void selectedMelee1() {
  2625.         // TODO Auto-generated method stub
  2626.  
  2627.     }
  2628.  
  2629.     public void selectedMagic() {
  2630.         // TODO Auto-generated method stub
  2631.  
  2632.     }
  2633.  
  2634.     public void sm(String string) {
  2635.         // TODO Auto-generated method stub
  2636.  
  2637.     }
  2638.  
  2639.     public boolean isGodlyDonator() {
  2640.         // TODO Auto-generated method stub
  2641.         return false;
  2642.     }
  2643.  
  2644. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement