HT spawn sequence + Banner length
Improved the Horntail spawn sequence to better fit the end of the animation with the HT parts assembly. Thanks to Arnah and Zenns. Improved the usage of visual space by the "hint banners" throughout the source.
This commit is contained in:
@@ -1496,7 +1496,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
int nxGain = mapitem.getItemId() == 4031865 ? 100 : 250;
|
||||
this.getCashShop().gainCash(1, nxGain);
|
||||
|
||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)");
|
||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||
|
||||
this.getMap().pickItemDrop(pickupPacket, mapitem);
|
||||
} else if (MapleInventoryManipulator.addFromDrop(client, mapitem.getItem(), true)) {
|
||||
@@ -1573,7 +1573,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
int nxGain = mapitem.getItemId() == 4031865 ? 100 : 250;
|
||||
this.getCashShop().gainCash(1, nxGain);
|
||||
|
||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)");
|
||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||
} else if (useItem(client, mapitem.getItem().getItemId())) {
|
||||
if (mapitem.getItem().getItemId() / 10000 == 238) {
|
||||
this.getMonsterBook().addCard(client, mapitem.getItem().getItemId());
|
||||
@@ -4939,7 +4939,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
if(this.isPartyLeader()) party.assignNewLeader(client);
|
||||
PartyOperationHandler.leaveParty(party, mpc, client);
|
||||
|
||||
client.announceHint("You have reached #blevel 10#k, therefore you must leave your #rstarter party#k.");
|
||||
showHint("You have reached #blevel 10#k, therefore you must leave your #rstarter party#k.");
|
||||
}
|
||||
|
||||
if (this.guildid > 0) {
|
||||
@@ -7238,7 +7238,11 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
}
|
||||
|
||||
public void showHint(String msg) {
|
||||
client.announceHint(msg);
|
||||
showHint(msg, 500);
|
||||
}
|
||||
|
||||
public void showHint(String msg, int length) {
|
||||
client.announceHint(msg, length);
|
||||
}
|
||||
|
||||
public void showNote() {
|
||||
@@ -7993,7 +7997,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
}
|
||||
|
||||
if(!showMsg.isEmpty()) {
|
||||
this.showHint("#ePLAYER EQUIPMENTS:#n\r\n\r\n" + showMsg);
|
||||
this.showHint("#ePLAYER EQUIPMENTS:#n\r\n\r\n" + showMsg, 400);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1258,8 +1258,8 @@ public class MapleClient {
|
||||
session.write(packet);
|
||||
}
|
||||
|
||||
public void announceHint(String msg) {
|
||||
announce(MaplePacketCreator.sendHint(msg, 500, 10));
|
||||
public void announceHint(String msg, int length) {
|
||||
announce(MaplePacketCreator.sendHint(msg, length, 10));
|
||||
announce(MaplePacketCreator.enableActions());
|
||||
}
|
||||
|
||||
|
||||
@@ -355,9 +355,9 @@ public class Commands {
|
||||
case "droplimit":
|
||||
int dropCount = c.getPlayer().getMap().getDroppedItemCount();
|
||||
if(((float) dropCount) / ServerConstants.ITEM_LIMIT_ON_MAP < 0.75f) {
|
||||
c.getPlayer().showHint("Current drop count: #b" + dropCount + "#k / #e" + ServerConstants.ITEM_LIMIT_ON_MAP + "#n");
|
||||
c.getPlayer().showHint("Current drop count: #b" + dropCount + "#k / #e" + ServerConstants.ITEM_LIMIT_ON_MAP + "#n", 300);
|
||||
} else {
|
||||
c.getPlayer().showHint("Current drop count: #r" + dropCount + "#k / #e" + ServerConstants.ITEM_LIMIT_ON_MAP + "#n");
|
||||
c.getPlayer().showHint("Current drop count: #r" + dropCount + "#k / #e" + ServerConstants.ITEM_LIMIT_ON_MAP + "#n", 300);
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -523,7 +523,7 @@ public class Commands {
|
||||
showMsg += "Server QUEST Rate: #e#b" + c.getWorldServer().getQuestRate() + "x#k#n" + "\r\n";
|
||||
}
|
||||
|
||||
player.showHint(showMsg);
|
||||
player.showHint(showMsg, 300);
|
||||
break;
|
||||
|
||||
case "rates":
|
||||
@@ -533,7 +533,7 @@ public class Commands {
|
||||
showMsg_ += "DROP Rate: #e#b" + player.getDropRate() + "x#k#n" + "\r\n";
|
||||
if(ServerConstants.USE_QUEST_RATE) showMsg_ += "QUEST Rate: #e#b" + c.getWorldServer().getQuestRate() + "x#k#n" + "\r\n";
|
||||
|
||||
player.showHint(showMsg_);
|
||||
player.showHint(showMsg_, 300);
|
||||
break;
|
||||
|
||||
case "online":
|
||||
@@ -1970,8 +1970,9 @@ public class Commands {
|
||||
player.dropMessage(6, s.substring(0, s.length() - 2));
|
||||
}
|
||||
}
|
||||
player.dropMessage(6, "There are a total of " + total + " players online.");
|
||||
player.showHint("Players online: #e#r" + total + "#k#n.");
|
||||
|
||||
//player.dropMessage(6, "There are a total of " + total + " players online.");
|
||||
player.showHint("Players online: #e#r" + total + "#k#n.", 300);
|
||||
break;
|
||||
|
||||
case "warpsnowball":
|
||||
|
||||
@@ -553,7 +553,7 @@ public class Equip extends Item {
|
||||
}
|
||||
|
||||
public final void showLevelupMessage(String msg, MapleClient c) {
|
||||
c.getPlayer().showHint(msg);
|
||||
c.getPlayer().showHint(msg, 300);
|
||||
}
|
||||
|
||||
public void setItemExp(int exp) {
|
||||
|
||||
Reference in New Issue
Block a user