mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 17:10:21 -07:00
Fixed disappearing treasure trails caskets
Re-enabled and fixed treasure trails wizard spawning
This commit is contained in:
parent
21d334a989
commit
50e0fe9400
3 changed files with 6 additions and 8 deletions
|
|
@ -78,7 +78,7 @@ public abstract class ClueScrollPlugin extends MapZone implements Plugin<Object>
|
||||||
/**
|
/**
|
||||||
* Rewards the player with a casket.
|
* Rewards the player with a casket.
|
||||||
* @param player the player.
|
* @param player the player.
|
||||||
* @param casket if we give a ckaset.
|
* @param casket if we give a casket.
|
||||||
*/
|
*/
|
||||||
public void reward(Player player, boolean casket) {
|
public void reward(Player player, boolean casket) {
|
||||||
Item clue = player.getInventory().getItem(new Item(getClueId()));
|
Item clue = player.getInventory().getItem(new Item(getClueId()));
|
||||||
|
|
|
||||||
|
|
@ -61,17 +61,17 @@ public abstract class CoordinateClueScroll extends MapClueScroll {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dig(Player player) {
|
public void dig(Player player) {
|
||||||
/*int killed = player.getAttribute("killed-wizard", -1);
|
int killedWizardClueId = player.getAttribute("killed-wizard", -1);
|
||||||
if (getLevel() == ClueLevel.HARD && killed == -1) {
|
if (getLevel() == ClueLevel.HARD && (killedWizardClueId == -1 || killedWizardClueId != getClueId())) {
|
||||||
NPC wizard = player.getAttribute("t-wizard", null);
|
NPC wizard = player.getAttribute("t-wizard", null);
|
||||||
if (wizard != null && wizard.isActive()) {
|
if (wizard != null && wizard.isActive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
spawnWizard(player);
|
spawnWizard(player);
|
||||||
return;
|
return;
|
||||||
}*/
|
}
|
||||||
super.dig(player);
|
super.dig(player);
|
||||||
//player.removeAttribute("killed-wizard");
|
player.removeAttribute("killed-wizard");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -98,5 +98,4 @@ public abstract class CoordinateClueScroll extends MapClueScroll {
|
||||||
public String getClue() {
|
public String getClue() {
|
||||||
return clue;
|
return clue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,7 @@ public abstract class MapClueScroll extends ClueScrollPlugin {
|
||||||
p.sendMessage("Nothing interesting happens.");
|
p.sendMessage("Nothing interesting happens.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
reward(p, false);
|
reward(p);
|
||||||
level.open(p, null);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue