Jump to content

Search the Community

Showing results for tags 'dying'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 4 results

  1. Okay so i added a kill streak system and when you die their killstreak doesn't get reset :( Here are my codes: KillStreak.java: [CODE]package com.exile.game.players.content; import com.exile.game.players.Player; import com.exile.GameEngine; import com.exile.game.players.PlayerHandler; /** * Killing Streak System * * [MENTION=52317]auth[/MENTION]or Dakota Chest */ public class KillingStreak { Player c; public KillingStreak(Player c) { this.c = c; } /** * Sends the message throughout the GameEngine */ public void yell(String msg) { for (int j = 0; j < GameEngine.playerHandler.players.length; j++) { if (GameEngine.playerHandler.players[j] != null) { Player c2 = (Player)GameEngine.playerHandler.players[j]; c2.sendMessage(msg); } } } /** * Add rewards to the player who died * with the kill streak * */ public void Rewards() { Player o = (Player) PlayerHandler.players[c.killerId]; if (o.killStreak == 2) { c.pcPoints += 2; } else if (o.killStreak == 3) { c.pcPoints += 3; } else if (o.killStreak == 4) { c.pcPoints += 5; } else if (o.killStreak == 5) { c.pcPoints += 6; } else if (o.killStreak == 6) { c.pcPoints += 8; } else if (c.killStreak == 2) { c.pcPoints += 2; } else if (c.killStreak == 3) { c.pcPoints += 3; } else if (c.killStreak == 4) { c.pcPoints += 5; } else if (c.killStreak == 5) { c.pcPoints += 6; } else if (c.killStreak == 6) { c.pcPoints += 8; } } /** * Checks the player if they have * a killstreak of 2 or more * can add on * */ public void checkKillStreak() { switch (c.killStreak){ case 2: yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" is on a killing streak of 2!"); yell("@[email protected][@[email protected] System:@[email protected]] If you kill him, you will recieve 2 Project Exile Points!"); break; case 3: yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" is on a killing streak of 3!"); yell("@[email protected][@[email protected] System:@[email protected]] If you kill him, you will recieve 3 Project Exile Points!"); break; case 4: yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" is on a killing streak of 4!"); yell("@[email protected][@[email protected] System:@[email protected]] If you kill him, you will recieve 5 Project Exile Points!"); break; case 5: yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" is on a killing streak of 5!"); yell("@[email protected][@[email protected] System:@[email protected]] If you kill him, you will recieve 6 Project Exile Points!"); break; case 6: yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" is on a killing streak of 6!"); yell("@[email protected][@[email protected] System:@[email protected]] If you kill him, you will recieve 8 Project Exile Points!"); break; } } /** * Checks if the player with the killstreak * died add items to the killer * */ public void killedPlayer() { Player o = (Player) PlayerHandler.players[c.killerId]; if (o.killStreak >= 2 || c.killerId != o.playerId) { yell("@[email protected][@[email protected] System:@[email protected]]@[email protected] "+c.playerName+" has ended "+o.playerName+" killing streak of "+o.killStreak+", and was rewarded."); Rewards(); } } }[/CODE] My applydead method, playerassistant.java: [CODE] public void applyDead() { c.getVariables().maxConstitution = c.getVariables().calculateMaxLifePoints(c); if (c.getSummoning().summonedFamiliar != null && c.getVariables().summoned != null) { c.getVariables().summoned.npcTeleport(0, 0, 0); c.getSummoning().dismissFamiliar(); } sendString(":quicks:off", -1); c.getVariables().respawnTimer = 15; c.isDead = false; if (!c.getVariables().killedPlayer) { c.getVariables().killerId = findKiller(); Player o = (Player) PlayerHandler.players[c.getVariables().killerId]; if (o != null) { if (c.getVariables().killerId != c.playerId) { o.sendMessage(deathMsgs()); o.getVariables().killedDuelOpponent = true; c.getVariables().killedDuelOpponent = false; if (!DuelPlayer.contains(c)) { if (!c.connectedFrom.equals(o.getVariables().lastKilled)) { o.getVariables().pkp+= 1+c.getVariables().isDonator; c.getVariables().DC++; o.getVariables().KC++; o.sendMessage("@[email protected] recieve "+(1+c.getVariables().isDonator)+" Pk point for your kill, you now have " + o.getVariables().pkp + " Pk points."); [COLOR="#FF0000"] o.killStreak += 1; o.getStreak().checkKillStreak(); o.getStreak().killedPlayer(); [/COLOR] } } else { o.getPA().createPlayerHints(10, -1); o.faceUpdate(-1); o.getVariables().freezeTimer = 0; CombatPrayer.resetPrayers(o); o.getVariables().constitution = o.getVariables().calculateMaxLifePoints(o); for (int i = 0; i < 23; i++) { o.getVariables().playerLevel[i] = getLevelForXP(o.getVariables().playerXP[i]); o.getPA().refreshSkill(i); } o.getCombat().resetPlayerAttack(); o.getVariables().isSkulled = false; o.getVariables().specAmount = 10; o.getPA().frame1(); o.getPA().resetTb(); o.getPA().resetAnimation(); o.startAnimation(65535); o.getVariables().attackedPlayers.clear(); o.getVariables().headIconPk = -1; o.getVariables().skullTimer = -1; o.getVariables().damageTaken = new int[Constants.MAX_PLAYERS]; o.getVariables().isFullHelm = ItemLoader .isFullHelm(o.getVariables().playerEquipment[c.getVariables().playerHat]); o.getVariables().isFullMask = ItemLoader .isFullMask(o.getVariables().playerEquipment[c.getVariables().playerHat]); o.getVariables().isFullBody = ItemLoader .isFullBody(o.getVariables().playerEquipment[c.getVariables().playerChest]); o.getPA().requestUpdates(); o.Dueling.duelVictory(o); resetDamageDone(); c.getVariables().specAmount = 10; c.getItems().addSpecialBar(c.getVariables().playerEquipment[c.getVariables().playerWeapon]); c.getVariables().lastVeng = 0; c.getVariables().vengOn = false; resetFollowers(); c.getVariables().attackTimer = 10; o.getPA().resetDamageDone(); o.getItems().addSpecialBar(c.getVariables().playerEquipment[c.getVariables().playerWeapon]); o.getVariables().lastVeng = 0; o.getVariables().vengOn = false; o.getPA().resetFollowers(); o.getVariables().attackTimer = 10; c.sendMessage("You have lost the duel!"); PlayerSave.saveGame(c.opponent); PlayerSave.saveGame(c); return; } o.getVariables().lastKilled = c.connectedFrom; } c.getVariables().playerKilled = c.playerId; if (!o.getVariables().killedPlayer) { o.getVariables().killedPlayer = true; } } } c.faceUpdate(0); GameEngine.getScheduler().schedule(new Task(5) { public void execute() { c.getVariables().npcIndex = 0; c.getVariables().playerIndex = 0; this.stop(); } }); c.stopMovement(); if (!DuelPlayer.contains(c)) { c.getVariables().stakedItems.clear(); c.sendMessage("Oh dear you are dead!"); }[/CODE] I've tried putting [CODE]c.killStreak = 0;[/CODE] or [CODE]o.killStreak = 0;[/CODE] in the death method but it still doesn't reset to zero when you die. timesVoted = 0 Amount-Donated = 0 pc-points = 0 [COLOR="#FF0000"]killStreak = 2[/COLOR] SlayerPoints = 0 DonatorPoints = 0 splitChat = false
  2. Everytime you die to jad it gets like an applydead error and dcs the server. I can upload a pic later not atm tho, any help?
  3. So getting into duel arena is all fine, but once someone dies, the person that dies is ok, but the person who wins stay in the duel arena? I have no clue where to start tbh anyhelp?
  4. Epsilon

    RSPS Dying

    I have recently noticed the decrease in activity in RSPS in general. Not just RuneLocus, but MoparScape, and possibly Rune-Server as well. MoparScape has been dying for years now and I am just now noticing the slight decrease in activity with RL too. The debate here is, what do you people think is leeching rsps activity? The actual RuneScape game is linked with RSPS, and they are both very fragile;one minor thing in the RS community can affect the RSPS community as a whole, possibly something going on within RS?
×