Reformat and clean up quest scripts

This commit is contained in:
P0nk
2021-09-09 23:36:54 +02:00
parent a78ca88a02
commit 3f43fe82d0
249 changed files with 4361 additions and 4247 deletions

View File

@@ -17,6 +17,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Steal queen's silk
*/
@@ -31,18 +32,19 @@ function start(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 0) {
if(!isTigunMorphed(qm.getPlayer())) {
if (!isTigunMorphed(qm.getPlayer())) {
qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights.");
status = 1;
return;
@@ -50,7 +52,7 @@ function start(mode, type, selection) {
qm.sendNext("Tigun, what are you doing here?");
} else if (status == 1) {
if(!isTigunMorphed(qm.getPlayer())) {
if (!isTigunMorphed(qm.getPlayer())) {
qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights.");
return;
}
@@ -67,26 +69,27 @@ function end(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
if (mode == 1) {
status++;
else
} else {
status--;
}
if (status == 0) {
if(!isTigunMorphed(qm.getPlayer())) {
if (!isTigunMorphed(qm.getPlayer())) {
qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights.");
qm.dispose();
return;
}
if(qm.canHold(4031571, 1)) {
if (qm.canHold(4031571, 1)) {
qm.gainItem(4031571);
qm.sendNext("There you go. Please deliver to the queen as soon as possible, Tigun, she gets really mad if things get delayed.");
qm.forceCompleteQuest();
} else {