Implemented Tears of Guthix Quest
Implemented Tears of Guthix Minigame
This commit is contained in:
@@ -523,6 +523,9 @@ public class NPC extends Entity {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getNextWalk() {
|
||||
return nextWalk;
|
||||
}
|
||||
/**
|
||||
* Sets the next walk.
|
||||
*/
|
||||
|
||||
@@ -56,11 +56,23 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
|
||||
if (args.size < 2) {
|
||||
reject(player, "Syntax error: ::ranim <Render Animation ID>")
|
||||
}
|
||||
try {
|
||||
player.appearance.setAnimations(Animation.create(args[1].toInt()))
|
||||
player.appearance.sync()
|
||||
} catch (e: NumberFormatException) {
|
||||
reject(player, "Syntax error: ::ranim <Render Animation ID>")
|
||||
if (args.size > 2) {
|
||||
GameWorld.Pulser.submit(object : Pulse(3, player) {
|
||||
var id = args[1].toInt()
|
||||
override fun pulse(): Boolean {
|
||||
player.appearance.setAnimations(Animation.create(id))
|
||||
player.appearance.sync()
|
||||
player.sendChat("Current: $id")
|
||||
return ++id >= args[2].toInt()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
player.appearance.setAnimations(Animation.create(args[1].toInt()))
|
||||
player.appearance.sync()
|
||||
} catch (e: NumberFormatException) {
|
||||
reject(player, "Syntax error: ::ranim <Render Animation ID>")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ public final class DarkZone extends MapZone implements EventHook<UseWithEvent>{
|
||||
public void configure() {
|
||||
register(new ZoneBorders(1728, 5120, 1791, 5247));
|
||||
registerRegion(12693);
|
||||
registerRegion(12948);
|
||||
registerRegion(12949);
|
||||
register(new ZoneBorders(3306,9661,3222,9600));
|
||||
register(new ZoneBorders(3717,9473,3841,9346));
|
||||
|
||||
Reference in New Issue
Block a user