Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long lastMage = 0;
- long rehit = 0;
- public boolean reHit = false;
- long rehit2 = 0;
- public boolean reHit2 = false;
- public int advertising = 0;
- long lastAdvertise = 0;
- public boolean hasWildySign = false;
- public int wildyLevel = 0;
- public boolean showWarning = true;
- long timeOfDeath = 0;
- long lastSave = 0;
- long lastSpecialUpdate =0;
- public boolean isAlive = true;
- public boolean isDead = false;
- long delayDeath = 0;
- long hpDelay = 0;
- long lastPoison = 0;
- public int timeIS = 0;
- public boolean leftDanger = false;
- public boolean logoutAttempt = false;
- public boolean warning = true;
- public boolean displayWarning = false;
- public long drop = 0;
- public boolean canDrop = false;
- public boolean lastUpdateSpec = false;
- public int countStack = 0;
- public long lastdeduct = 1000;
- public int searchForPoisonDamageAmount() {
- switch(playerEquipment[playerWeapon]) {
- case 5698:
- return 6;
- }
- return -1;
- }
- public long fishingEmoteReset;
- public boolean karilStairs;
- public boolean karilSpawned;
- public stream update;
- public boolean process() {
- getX();
- getY();
- if (!hasStoppedFishing()) {
- if (absX != getX && absY != getY) {
- isBusy = false;
- }
- }
- if (fightingWith == 0) {
- isInCombat = false;
- }
- if (owesMoney && System.currentTimeMillis() - lastCount >= oneMinute) {
- getFines();
- minsNotPaid = (minsNotPaid + 1);
- lastCount = System.currentTimeMillis();
- }
- if (karilStairs) {
- if (absX == 3546 && absY == 9684) {
- karilStairs = false;
- teleportToX = 3562 + misc.random(4);
- teleportToY = 3272 + misc.random(4);
- heightLevel = 0;
- }
- }
- if (mageRequest) {
- getTheCurrentSpellPVP();
- }
- if (newDrain != 0 && drainPray) {
- if (System.currentTimeMillis() - lastdeduct > 100) {
- server.PrayerHandler.drainPrayer(playerId);
- sendQuest(" Prayer: "+playerLevel[5]+"/"+getLevelForXP(playerXP[5])+"", 687);
- sendFrame126(""+playerLevel[5]+"", 4012);
- lastdeduct = System.currentTimeMillis();
- }
- }
- if (deathStage == 0 && currentHealth <= 0) {
- followThisPlayer = -1;
- deathStage = 1;
- }
- if (deathStage == 1) {
- WalkTo(0,0);
- deathStage = 2;
- delayDeath = System.currentTimeMillis();
- }
- if (deathStage == 2) {
- if (System.currentTimeMillis() - delayDeath > 1500) {
- updateRequired = true;
- appearanceUpdateRequired = true;
- startAnimation(2304);
- updateRequired = true;
- appearanceUpdateRequired = true;
- deathStage = 3;
- }
- }
- if (deathStage == 3) {
- if (System.currentTimeMillis() - delayDeath > 1000) {
- youdied();
- deathStage = 4;
- sendMessage("Oh dear, you've died!.");
- currentHealth = playerLevel[playerHitpoints];
- teleportToX = 3094;
- teleportToY = 3480;
- isFrozen = false;
- isPoisoned = false;
- refreshhps();
- specialAmount = 100;
- resetWalkingQueue();
- server.PrayerHandler.resetPrayer(playerId);
- }
- }
- if (deathStage == 4 && System.currentTimeMillis() - delayDeath > 4500) {
- stop();
- deathStage = 0;
- }
- sendAllSpecialBars();
- if (System.currentTimeMillis() - lastSpecialUpdate > 10000) {
- lastSpecialUpdate = System.currentTimeMillis();
- if (specialAmount < 100) {
- specialAmount = (specialAmount + 5);
- if (specialAmount > 95) {
- specialAmount = 100;
- }
- sendSpecialBarAmount();
- specAttack();
- }
- }
- if (System.currentTimeMillis() - lastSave > 12000) {
- if (inTrade) {
- savegame(false);
- lastSave = System.currentTimeMillis();
- } else if (!inTrade) {
- lastSave = System.currentTimeMillis();
- savegame(true);
- playerEnergy = 100;
- }
- }
- rightClickCheck();
- if (isFrozen) {
- WalkTo(0,0);
- }
- if (spamButton && (System.currentTimeMillis() - lastButton > 1100)) {
- lastButton = System.currentTimeMillis();
- if (currentButton >= 700) {
- currentButton = 1;
- currentStatus++;
- }
- if (currentStatus >= 255) {
- spamButton = false;
- }
- println("sending button " + currentButton + ", " + currentStatus);
- frame36(currentButton, currentStatus);
- currentButton++;
- }
- if ((animationReset > 0) && (System.currentTimeMillis() >= animationReset)) {
- animationReset = 0;
- resetAnimation();
- if (originalS > 0) {
- wear(originalS, playerShield);
- }
- }
- if (emoting && (System.currentTimeMillis() - lastAction > 300)) {
- lastAction = System.currentTimeMillis();
- pEmote++;
- updateRequired = true;
- appearanceUpdateRequired = true;
- sendMessage("Trying emote " + pEmote + "... ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement