Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ceb2866aa1 | ||
|
|
11c1e4655e | ||
|
|
08b089d9be | ||
|
|
8b254a294e | ||
|
|
7004de6e71 |
@@ -23,7 +23,12 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!cm.isEventLeader()) {
|
if (!cm.isEventLeader()) {
|
||||||
cm.sendYesNo("I wish for your leader to talk to me. Alternatively, you may be wanting to quit. Are you going to abandon this campaign?");
|
// Player chose "No" or "End Chat"
|
||||||
|
if (mode <= 0) {
|
||||||
|
cm.dispose();
|
||||||
|
} else {
|
||||||
|
cm.sendYesNo("I wish for your leader to talk to me. Alternatively, you may be wanting to quit. Are you going to abandon this campaign?");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var eim = cm.getEventInstance();
|
var eim = cm.getEventInstance();
|
||||||
if (eim == null) {
|
if (eim == null) {
|
||||||
|
|||||||
@@ -228,10 +228,10 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
short flag = eq.getFlag();
|
short flag = eq.getFlag();
|
||||||
flag |= ItemConstants.LOCK;
|
if (eq.getExpiration() > -1 && (eq.getFlag() & ItemConstants.LOCK) != ItemConstants.LOCK) {
|
||||||
if (eq.getExpiration() > -1) {
|
|
||||||
return; //No perma items pls
|
return; //No perma items pls
|
||||||
}
|
}
|
||||||
|
flag |= ItemConstants.LOCK;
|
||||||
eq.setFlag(flag);
|
eq.setFlag(flag);
|
||||||
|
|
||||||
long period = 0;
|
long period = 0;
|
||||||
@@ -246,7 +246,8 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (period > 0) {
|
if (period > 0) {
|
||||||
eq.setExpiration(currentServerTime() + DAYS.toMillis(period));
|
long expiration = eq.getExpiration() > -1 ? eq.getExpiration() : currentServerTime();
|
||||||
|
eq.setExpiration(expiration + DAYS.toMillis(period));
|
||||||
}
|
}
|
||||||
|
|
||||||
// double-remove found thanks to BHB
|
// double-remove found thanks to BHB
|
||||||
|
|||||||
Reference in New Issue
Block a user