Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -15934,25 +15934,13 @@
|
|||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "1069",
|
"id": "1365",
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "25.0",
|
|
||||||
"id": "1197",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "5.0",
|
|
||||||
"id": "1161",
|
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "1365",
|
"id": "1069",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -15967,6 +15955,24 @@
|
|||||||
"id": "1243",
|
"id": "1243",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "1197",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "5.0",
|
||||||
|
"id": "1145",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "1161",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
@@ -15977,7 +15983,7 @@
|
|||||||
"minAmount": "75",
|
"minAmount": "75",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "555",
|
"id": "555",
|
||||||
"maxAmount": "150"
|
"maxAmount": "75"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "37",
|
"minAmount": "37",
|
||||||
@@ -15987,52 +15993,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "15",
|
"minAmount": "15",
|
||||||
"weight": "50.0",
|
"weight": "25.0",
|
||||||
"id": "561",
|
"id": "561",
|
||||||
"maxAmount": "15"
|
"maxAmount": "15"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "30",
|
"minAmount": "30",
|
||||||
"weight": "50.0",
|
"weight": "25.0",
|
||||||
"id": "561",
|
"id": "561",
|
||||||
"maxAmount": "30"
|
"maxAmount": "30"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "75",
|
||||||
|
"weight": "5.0",
|
||||||
|
"id": "561",
|
||||||
|
"maxAmount": "75"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "3",
|
"minAmount": "3",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "563",
|
"id": "563",
|
||||||
"maxAmount": "3"
|
"maxAmount": "3"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "50.0",
|
|
||||||
"id": "209",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "50.0",
|
|
||||||
"id": "205",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "199",
|
"id": "199",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "25.0",
|
|
||||||
"id": "211",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "25.0",
|
|
||||||
"id": "215",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
@@ -16045,18 +16033,42 @@
|
|||||||
"id": "203",
|
"id": "203",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "205",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "207",
|
"id": "207",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "209",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "211",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "213",
|
"id": "213",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "215",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
@@ -16095,13 +16107,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "5.0",
|
"weight": "15.5",
|
||||||
"id": "31",
|
"id": "31",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "100.0",
|
"weight": "150.0",
|
||||||
"id": "0",
|
"id": "0",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
}
|
}
|
||||||
@@ -33764,50 +33776,38 @@
|
|||||||
"main": [
|
"main": [
|
||||||
{
|
{
|
||||||
"minAmount": "9",
|
"minAmount": "9",
|
||||||
"weight": "1.0",
|
"weight": "0.665",
|
||||||
"id": "6522",
|
"id": "6522",
|
||||||
"maxAmount": "9"
|
"maxAmount": "19"
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "11",
|
|
||||||
"weight": "1.0",
|
|
||||||
"id": "6522",
|
|
||||||
"maxAmount": "11"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "1.0",
|
"weight": "0.665",
|
||||||
"id": "6523",
|
"id": "6523",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "1.0",
|
"weight": "0.665",
|
||||||
"id": "6525",
|
"id": "6525",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "1.0",
|
"weight": "0.665",
|
||||||
"id": "6524",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "1.0",
|
|
||||||
"id": "6568",
|
"id": "6568",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "161",
|
"id": "149",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "149",
|
"id": "161",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -33820,13 +33820,25 @@
|
|||||||
"minAmount": "100",
|
"minAmount": "100",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "6529",
|
"id": "6529",
|
||||||
"maxAmount": "1500"
|
"maxAmount": "2000"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "2",
|
"minAmount": "15000",
|
||||||
|
"weight": "0.665",
|
||||||
|
"id": "6529",
|
||||||
|
"maxAmount": "15000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "12168",
|
"id": "12168",
|
||||||
"maxAmount": "2"
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "50.0",
|
||||||
|
"id": "7054",
|
||||||
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
@@ -33845,6 +33857,12 @@
|
|||||||
"weight": "5.0",
|
"weight": "5.0",
|
||||||
"id": "31",
|
"id": "31",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "50.0",
|
||||||
|
"id": "0",
|
||||||
|
"maxAmount": "1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -33856,10 +33874,22 @@
|
|||||||
"main": [
|
"main": [
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "5.0",
|
"weight": "0.685",
|
||||||
"id": "6528",
|
"id": "6528",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "0.685",
|
||||||
|
"id": "6524",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "0.685",
|
||||||
|
"id": "6568",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "5.0",
|
"weight": "5.0",
|
||||||
@@ -33867,21 +33897,15 @@
|
|||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "12",
|
||||||
"weight": "1.0",
|
"weight": "5.0",
|
||||||
"id": "6524",
|
"id": "562",
|
||||||
"maxAmount": "1"
|
"maxAmount": "12"
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "1.0",
|
|
||||||
"id": "6568",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "167",
|
"id": "149",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -33890,17 +33914,29 @@
|
|||||||
"id": "161",
|
"id": "161",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "25.0",
|
||||||
|
"id": "167",
|
||||||
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "100",
|
"minAmount": "100",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "6529",
|
"id": "6529",
|
||||||
"maxAmount": "1900"
|
"maxAmount": "2000"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "50.0",
|
"weight": "50.0",
|
||||||
"id": "12168",
|
"id": "12168",
|
||||||
"maxAmount": "2"
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "50.0",
|
||||||
|
"id": "7054",
|
||||||
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
@@ -33908,35 +33944,23 @@
|
|||||||
"id": "379",
|
"id": "379",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"minAmount": "1",
|
|
||||||
"weight": "25.0",
|
|
||||||
"id": "7054",
|
|
||||||
"maxAmount": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "2",
|
|
||||||
"weight": "25.0",
|
|
||||||
"id": "7054",
|
|
||||||
"maxAmount": "2"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "25.0",
|
"weight": "25.0",
|
||||||
"id": "9194",
|
"id": "9194",
|
||||||
"maxAmount": "4"
|
"maxAmount": "3"
|
||||||
},
|
|
||||||
{
|
|
||||||
"minAmount": "5",
|
|
||||||
"weight": "5.0",
|
|
||||||
"id": "7936",
|
|
||||||
"maxAmount": "5"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"minAmount": "1",
|
"minAmount": "1",
|
||||||
"weight": "5.0",
|
"weight": "5.0",
|
||||||
"id": "31",
|
"id": "31",
|
||||||
"maxAmount": "1"
|
"maxAmount": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minAmount": "1",
|
||||||
|
"weight": "50.0",
|
||||||
|
"id": "0",
|
||||||
|
"maxAmount": "1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package core.game.node.entity.skill.agility;
|
package core.game.node.entity.skill.agility;
|
||||||
|
|
||||||
|
import api.ContentAPI;
|
||||||
|
import core.game.node.entity.player.link.TeleportManager;
|
||||||
import core.game.node.entity.skill.Skills;
|
import core.game.node.entity.skill.Skills;
|
||||||
import core.game.interaction.MovementPulse;
|
import core.game.interaction.MovementPulse;
|
||||||
import core.game.node.entity.combat.ImpactHandler.HitsplatType;
|
import core.game.node.entity.combat.ImpactHandler.HitsplatType;
|
||||||
@@ -100,21 +102,26 @@ public final class AgilityHandler {
|
|||||||
*/
|
*/
|
||||||
public static void fail(final Player player, int delay, final Location dest, Animation anim, final int hit, final String message) {
|
public static void fail(final Player player, int delay, final Location dest, Animation anim, final int hit, final String message) {
|
||||||
if (anim != null) {
|
if (anim != null) {
|
||||||
player.animate(anim);
|
ContentAPI.animate(player, anim, true);
|
||||||
}
|
}
|
||||||
GameWorld.getPulser().submit(new Pulse(anim.getDefinition().getDurationTicks(), player) {
|
ContentAPI.submitWorldPulse(new Pulse(ContentAPI.animationDuration(anim), player) {
|
||||||
|
boolean dmg = false;
|
||||||
@Override
|
@Override
|
||||||
public boolean pulse() {
|
public boolean pulse() {
|
||||||
player.getProperties().setTeleportLocation(dest);
|
ContentAPI.teleport(player, dest, TeleportManager.TeleportType.INSTANT);
|
||||||
player.animate(Animation.RESET);
|
ContentAPI.animate(player, Animation.RESET, true);
|
||||||
if (hit > 0) {
|
if(!dmg) {
|
||||||
player.getImpactHandler().setDisabledTicks(0);
|
if (hit > 0) {
|
||||||
player.getImpactHandler().manualHit(player, hit, HitsplatType.NORMAL);
|
player.getImpactHandler().setDisabledTicks(0);
|
||||||
|
ContentAPI.impact(player, hit, HitsplatType.NORMAL);
|
||||||
|
}
|
||||||
|
if (message != null) {
|
||||||
|
ContentAPI.sendMessage(player, message);
|
||||||
|
}
|
||||||
|
dmg = true;
|
||||||
}
|
}
|
||||||
if (message != null) {
|
setDelay(0);
|
||||||
player.getPacketDispatch().sendMessage(message);
|
return player.getLocation().equals(dest);
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package core.game.node.entity.skill.slayer.dungeon;
|
package core.game.node.entity.skill.slayer.dungeon;
|
||||||
|
|
||||||
|
import api.ContentAPI;
|
||||||
import core.cache.def.impl.ObjectDefinition;
|
import core.cache.def.impl.ObjectDefinition;
|
||||||
import core.game.component.CloseEvent;
|
import core.game.component.CloseEvent;
|
||||||
import core.game.component.Component;
|
import core.game.component.Component;
|
||||||
@@ -67,6 +68,7 @@ public final class AncientCavern extends MapZone implements Plugin<Object> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(final Player player, Node node, String option) {
|
public boolean handle(final Player player, Node node, String option) {
|
||||||
|
ContentAPI.lock(player, 30);
|
||||||
AgilityHandler.forceWalk(player, -1, player.getLocation(), player.getLocation().transform(0, -6, 0), Animation.create(6723), 10, 0.0, null);
|
AgilityHandler.forceWalk(player, -1, player.getLocation(), player.getLocation().transform(0, -6, 0), Animation.create(6723), 10, 0.0, null);
|
||||||
GameWorld.getPulser().submit(new Pulse(1, player) {
|
GameWorld.getPulser().submit(new Pulse(1, player) {
|
||||||
int count;
|
int count;
|
||||||
@@ -83,6 +85,9 @@ public final class AncientCavern extends MapZone implements Plugin<Object> {
|
|||||||
player.getInterfaceManager().closeOverlay();
|
player.getInterfaceManager().closeOverlay();
|
||||||
player.getProperties().setTeleportLocation(Location.create(1763, 5365, 1));
|
player.getProperties().setTeleportLocation(Location.create(1763, 5365, 1));
|
||||||
player.getPacketDispatch().sendMessages("You dive into the swirling maelstorm of the whirlpool.", "You are swirled beneath the water, the darkness and pressure are overwhelming.", "Mystical forces guide you into a cavern below the whirlpool.");
|
player.getPacketDispatch().sendMessages("You dive into the swirling maelstorm of the whirlpool.", "You are swirled beneath the water, the darkness and pressure are overwhelming.", "Mystical forces guide you into a cavern below the whirlpool.");
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
ContentAPI.unlock(player);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -767,7 +767,8 @@ object ContentAPI {
|
|||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun teleport(entity: Entity, loc: Location, type: TeleportManager.TeleportType = TeleportManager.TeleportType.INSTANT){
|
fun teleport(entity: Entity, loc: Location, type: TeleportManager.TeleportType = TeleportManager.TeleportType.INSTANT){
|
||||||
entity.teleporter.send(loc,type)
|
if(type == TeleportManager.TeleportType.INSTANT) entity.properties.teleportLocation = loc
|
||||||
|
else entity.teleporter.send(loc,type)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package rs09.game.node.entity.skill.agility
|
package rs09.game.node.entity.skill.agility
|
||||||
|
|
||||||
|
import api.ContentAPI
|
||||||
import core.cache.def.impl.ObjectDefinition
|
import core.cache.def.impl.ObjectDefinition
|
||||||
import core.game.content.global.action.DoorActionHandler
|
import core.game.content.global.action.DoorActionHandler
|
||||||
import core.game.node.Node
|
import core.game.node.Node
|
||||||
@@ -176,26 +177,26 @@ class WildernessCourse
|
|||||||
* @param object the object.
|
* @param object the object.
|
||||||
*/
|
*/
|
||||||
private fun handleSteppingStones(player: Player, `object`: Scenery) {
|
private fun handleSteppingStones(player: Player, `object`: Scenery) {
|
||||||
player.locks.lock()
|
ContentAPI.lock(player, 50)
|
||||||
val fail = AgilityHandler.hasFailed(player, 1, 0.3)
|
val fail = AgilityHandler.hasFailed(player, 1, 0.3)
|
||||||
player.addExtension(LogoutTask::class.java, LocationLogoutTask(12, player.location))
|
val origLoc = player.location
|
||||||
GameWorld.Pulser.submit(object : Pulse(2, player) {
|
ContentAPI.registerLogoutListener(player, "steppingstone"){p ->
|
||||||
|
ContentAPI.teleport(p, origLoc)
|
||||||
|
}
|
||||||
|
ContentAPI.submitWorldPulse(object : Pulse(2, player){
|
||||||
var counter = 0
|
var counter = 0
|
||||||
override fun pulse(): Boolean {
|
override fun pulse(): Boolean {
|
||||||
if (counter == 3 && fail) {
|
if (counter == 3 && fail) {
|
||||||
AgilityHandler.fail(player, -1, Location.create(3001, 3963, 0), Animation.create(771), (player.skills.lifepoints * 0.26).toInt(), "...You lose your footing and fall into the lava.")
|
AgilityHandler.fail(player, -1, Location.create(3001, 3963, 0), Animation.create(771), (player.skills.lifepoints * 0.26).toInt(), "...You lose your footing and fall into the lava.")
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
AgilityHandler.forceWalk(player, if (counter == 5) 2 else -1, player.location, player.location.transform(-1, 0, 0), Animation.create(741), 10, if (counter == 5) 20.0 else 0.toDouble(), if (counter != 0) null else "You carefully start crossing the stepping stones...")
|
AgilityHandler.forceWalk(player, if (counter == 5) 2 else -1, player.location, player.location.transform(-1, 0, 0), Animation.create(741), 10, if (counter == 5) 20.0 else 0.0, if (counter != 0) null else "You carefully start crossing the stepping stones...")
|
||||||
if(++counter == 6){
|
if(++counter == 6){
|
||||||
player.unlock()
|
ContentAPI.unlock(player)
|
||||||
|
ContentAPI.clearLogoutListener(player, "steppingstone")
|
||||||
}
|
}
|
||||||
return counter == 6
|
return counter == 6
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun stop() {
|
|
||||||
super.stop()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user