summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-13 20:48:41 +0000
committerJesusaves <cpntb1@ymail.com>2019-04-13 20:48:41 +0000
commit65449ffbf0bf377312f74a3e2c03dc2847730363 (patch)
tree0f17bcacfa80e8be731f0a296820762270802355
parent65d7d45d9b4d0bcaec8cc56c95fb468e4bec4f35 (diff)
downloadserverdata-65449ffbf0bf377312f74a3e2c03dc2847730363.tar.gz
serverdata-65449ffbf0bf377312f74a3e2c03dc2847730363.tar.bz2
serverdata-65449ffbf0bf377312f74a3e2c03dc2847730363.tar.xz
serverdata-65449ffbf0bf377312f74a3e2c03dc2847730363.zip
Reimplement INN system and add Rusty Pick Inn
-rw-r--r--db/constants.conf2
-rw-r--r--npc/000-2-1/_savepoints.txt24
-rw-r--r--npc/001-2-1/_savepoints.txt8
-rw-r--r--npc/001-2-10/_savepoints.txt8
-rw-r--r--npc/001-2-11/_savepoints.txt8
-rw-r--r--npc/001-2-13/_savepoints.txt8
-rw-r--r--npc/001-2-15/_savepoints.txt8
-rw-r--r--npc/001-2-22/_savepoints.txt40
-rw-r--r--npc/001-2-29/_import.txt2
-rw-r--r--npc/001-2-29/_savepoints.txt54
-rw-r--r--npc/001-2-29/savepoint.txt53
-rw-r--r--npc/001-2-3/_savepoints.txt8
-rw-r--r--npc/001-2-37/_savepoints.txt32
-rw-r--r--npc/001-2-38/_savepoints.txt32
-rw-r--r--npc/008-2-0/_savepoints.txt8
-rw-r--r--npc/008-2-1/_savepoints.txt8
-rw-r--r--npc/008-2-11/_savepoints.txt16
-rw-r--r--npc/008-2-13/_savepoints.txt32
-rw-r--r--npc/008-2-14/_savepoints.txt8
-rw-r--r--npc/008-2-2/melania.txt93
-rw-r--r--npc/008-2-22/_savepoints.txt8
-rw-r--r--npc/008-2-3/_savepoints.txt64
-rw-r--r--npc/008-2-4/_savepoints.txt8
-rw-r--r--npc/008-2-7/_savepoints.txt8
-rw-r--r--npc/008-2-9/_savepoints.txt8
-rw-r--r--npc/functions/beds.txt14
-rw-r--r--npc/functions/savepoint.txt15
27 files changed, 421 insertions, 156 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 5f6bd8ab..0451b262 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4195,7 +4195,7 @@ constants_db: {
comment__: "INN enum"
NO_INN: 0
REDPLUSH_INN: 1
- CURRENT_INN: 2
+ RUSTYPICK_INN: 2
comment__: "CRAFT enum"
CRAFT_SANDWICH: 4
diff --git a/npc/000-2-1/_savepoints.txt b/npc/000-2-1/_savepoints.txt
index 14b79c7e..da074f25 100644
--- a/npc/000-2-1/_savepoints.txt
+++ b/npc/000-2-1/_savepoints.txt
@@ -1,6 +1,6 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 000-2-1: Second Deck saves
-000-2-1,40,37,0 script #save_000-2-1_40_37 NPC_SAVE_POINT,{
+000-2-1,40,37,0 script #save_000-2-1_40_37 NPC_SAVE_POINT,0,0,{
savepointparticle .map$, .x, .y, NO_INN;
close;
@@ -8,8 +8,12 @@ OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-000-2-1,46,37,0 script #save_000-2-1_46_37 NPC_SAVE_POINT,{
+000-2-1,46,37,0 script #save_000-2-1_46_37 NPC_SAVE_POINT,0,0,{
savepointparticle .map$, .x, .y, NO_INN;
close;
@@ -17,8 +21,12 @@ OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-000-2-1,50,38,0 script #save_000-2-1_50_38 NPC_SAVE_POINT,{
+000-2-1,50,38,0 script #save_000-2-1_50_38 NPC_SAVE_POINT,0,0,{
savepointparticle .map$, .x, .y, NO_INN;
close;
@@ -26,8 +34,12 @@ OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-000-2-1,55,40,0 script #save_000-2-1_55_40 NPC_SAVE_POINT,{
+000-2-1,55,40,0 script #save_000-2-1_55_40 NPC_SAVE_POINT,0,0,{
savepointparticle .map$, .x, .y, NO_INN;
close;
@@ -35,4 +47,8 @@ OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-1/_savepoints.txt b/npc/001-2-1/_savepoints.txt
index 4b3f1497..fa9c1ecc 100644
--- a/npc/001-2-1/_savepoints.txt
+++ b/npc/001-2-1/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-1: Noble House saves
-001-2-1,27,30,0 script #save_001-2-1_27_30 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-1,27,30,0 script #save_001-2-1_27_30 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-10/_savepoints.txt b/npc/001-2-10/_savepoints.txt
index c98aa450..91b14f37 100644
--- a/npc/001-2-10/_savepoints.txt
+++ b/npc/001-2-10/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-10: Noble House saves
-001-2-10,26,30,0 script #save_001-2-10_26_30 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-10,26,30,0 script #save_001-2-10_26_30 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-11/_savepoints.txt b/npc/001-2-11/_savepoints.txt
index fc0b47fb..00b8c05c 100644
--- a/npc/001-2-11/_savepoints.txt
+++ b/npc/001-2-11/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-11: Noble House saves
-001-2-11,26,31,0 script #save_001-2-11_26_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-11,26,31,0 script #save_001-2-11_26_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-13/_savepoints.txt b/npc/001-2-13/_savepoints.txt
index dd210526..fd073ac6 100644
--- a/npc/001-2-13/_savepoints.txt
+++ b/npc/001-2-13/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-13: First Floor saves
-001-2-13,41,31,0 script #save_001-2-13_41_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-13,41,31,0 script #save_001-2-13_41_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-15/_savepoints.txt b/npc/001-2-15/_savepoints.txt
index c8b82561..cd164505 100644
--- a/npc/001-2-15/_savepoints.txt
+++ b/npc/001-2-15/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-15: Noble House saves
-001-2-15,27,41,0 script #save_001-2-15_27_41 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-15,27,41,0 script #save_001-2-15_27_41 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-22/_savepoints.txt b/npc/001-2-22/_savepoints.txt
index a0bd9f89..b4a5c1ba 100644
--- a/npc/001-2-22/_savepoints.txt
+++ b/npc/001-2-22/_savepoints.txt
@@ -1,47 +1,67 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-22: Second Deck saves
-001-2-22,40,37,0 script #save_001-2-22_40_37 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-22,40,37,0 script #save_001-2-22_40_37 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-22,46,37,0 script #save_001-2-22_46_37 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-22,46,37,0 script #save_001-2-22_46_37 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-22,55,40,0 script #save_001-2-22_55_40 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-22,55,40,0 script #save_001-2-22_55_40 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-22,50,38,0 script #save_001-2-22_50_38 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-22,50,38,0 script #save_001-2-22_50_38 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-22,53,38,0 script #save_001-2-22_53_38 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-22,53,38,0 script #save_001-2-22_53_38 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-29/_import.txt b/npc/001-2-29/_import.txt
index 39bb3601..ebcab6d1 100644
--- a/npc/001-2-29/_import.txt
+++ b/npc/001-2-29/_import.txt
@@ -1,5 +1,5 @@
// Map 001-2-29: First Floor
// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/001-2-29/_savepoints.txt",
"npc/001-2-29/_warps.txt",
"npc/001-2-29/mapflags.txt",
-"npc/001-2-29/savepoint.txt",
diff --git a/npc/001-2-29/_savepoints.txt b/npc/001-2-29/_savepoints.txt
new file mode 100644
index 00000000..c2176e4c
--- /dev/null
+++ b/npc/001-2-29/_savepoints.txt
@@ -0,0 +1,54 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-2-29: First Floor saves
+001-2-29,29,28,0 script #save_001-2-29_29_28 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, REDPLUSH_INN;
+ close;
+
+OnInit:
+ .distance = 2;
+ .sex = G_OTHER;
+ end;
+
+OnTouch:
+ bedTouch();
+ end;
+}
+001-2-29,29,35,0 script #save_001-2-29_29_35 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, REDPLUSH_INN;
+ close;
+
+OnInit:
+ .distance = 2;
+ .sex = G_OTHER;
+ end;
+
+OnTouch:
+ bedTouch();
+ end;
+}
+001-2-29,29,42,0 script #save_001-2-29_29_42 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, REDPLUSH_INN;
+ close;
+
+OnInit:
+ .distance = 2;
+ .sex = G_OTHER;
+ end;
+
+OnTouch:
+ bedTouch();
+ end;
+}
+001-2-29,29,49,0 script #save_001-2-29_29_49 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, REDPLUSH_INN;
+ close;
+
+OnInit:
+ .distance = 2;
+ .sex = G_OTHER;
+ end;
+
+OnTouch:
+ bedTouch();
+ end;
+}
diff --git a/npc/001-2-29/savepoint.txt b/npc/001-2-29/savepoint.txt
deleted file mode 100644
index 4694e31e..00000000
--- a/npc/001-2-29/savepoint.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-// Evol scripts.
-// Author:
-// Reid
-// Description:
-// Saves locations in 001-2-29 map.
-
-001-2-29,29,28,0 script #001-2-29-1 NPC_SAVE_POINT,0,0,{
- bedClic("001-2-29", 29, 28, REDPLUSH_INN);
-
-OnInit:
- .distance = 2;
- end;
-
-OnTouch:
- bedTouch;
-
-OnPCDieEvent:
- PC_IS_DEAD = 1;
- close;
-}
-
-001-2-29,29,35,0 script #001-2-29-2 NPC_SAVE_POINT,0,0,{
- bedClic("001-2-29", 29, 35, REDPLUSH_INN);
-
-OnInit:
- .distance = 2;
- end;
-
-OnTouch:
- bedTouch;
-}
-
-001-2-29,29,42,0 script #001-2-29-3 NPC_SAVE_POINT,0,0,{
- bedClic("001-2-29", 29, 42, REDPLUSH_INN);
-
-OnInit:
- .distance = 2;
- end;
-
-OnTouch:
- bedTouch;
-}
-
-001-2-29,29,49,0 script #001-2-29-4 NPC_SAVE_POINT,0,0,{
- bedClic("001-2-29", 29, 49, REDPLUSH_INN);
-
-OnInit:
- .distance = 2;
- end;
-
-OnTouch:
- bedTouch;
-}
diff --git a/npc/001-2-3/_savepoints.txt b/npc/001-2-3/_savepoints.txt
index a3e08055..e835aaa1 100644
--- a/npc/001-2-3/_savepoints.txt
+++ b/npc/001-2-3/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-3: First Floor saves
-001-2-3,42,32,0 script #save_001-2-3_42_32 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-3,42,32,0 script #save_001-2-3_42_32 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-37/_savepoints.txt b/npc/001-2-37/_savepoints.txt
index 2568b51b..cd68fab2 100644
--- a/npc/001-2-37/_savepoints.txt
+++ b/npc/001-2-37/_savepoints.txt
@@ -1,38 +1,54 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-37: unnamed saves
-001-2-37,25,41,0 script #save_001-2-37_25_41 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-37,25,41,0 script #save_001-2-37_25_41 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-37,35,41,0 script #save_001-2-37_35_41 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-37,35,41,0 script #save_001-2-37_35_41 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-37,35,46,0 script #save_001-2-37_35_46 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-37,35,46,0 script #save_001-2-37_35_46 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-37,25,46,0 script #save_001-2-37_25_46 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-37,25,46,0 script #save_001-2-37_25_46 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/001-2-38/_savepoints.txt b/npc/001-2-38/_savepoints.txt
index 8b89b8e5..d4e4db2c 100644
--- a/npc/001-2-38/_savepoints.txt
+++ b/npc/001-2-38/_savepoints.txt
@@ -1,38 +1,54 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 001-2-38: unnamed saves
-001-2-38,25,41,0 script #save_001-2-38_25_41 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-38,25,41,0 script #save_001-2-38_25_41 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-38,35,41,0 script #save_001-2-38_35_41 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-38,35,41,0 script #save_001-2-38_35_41 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-38,35,46,0 script #save_001-2-38_35_46 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-38,35,46,0 script #save_001-2-38_35_46 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-001-2-38,25,46,0 script #save_001-2-38_25_46 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+001-2-38,25,46,0 script #save_001-2-38_25_46 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-0/_savepoints.txt b/npc/008-2-0/_savepoints.txt
index 6da9c7b3..2c108fa8 100644
--- a/npc/008-2-0/_savepoints.txt
+++ b/npc/008-2-0/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-0: Chez Celestia saves
-008-2-0,38,27,0 script #save_008-2-0_38_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-0,38,27,0 script #save_008-2-0_38_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-1/_savepoints.txt b/npc/008-2-1/_savepoints.txt
index 66730940..19f0f307 100644
--- a/npc/008-2-1/_savepoints.txt
+++ b/npc/008-2-1/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-1: Merchant Guild saves
-008-2-1,42,27,0 script #save_008-2-1_42_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-1,42,27,0 script #save_008-2-1_42_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-11/_savepoints.txt b/npc/008-2-11/_savepoints.txt
index cccf4138..db593899 100644
--- a/npc/008-2-11/_savepoints.txt
+++ b/npc/008-2-11/_savepoints.txt
@@ -1,20 +1,28 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-11: Hurnscald City Hall saves
-008-2-11,26,27,0 script #save_008-2-11_26_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-11,26,27,0 script #save_008-2-11_26_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-11,45,27,0 script #save_008-2-11_45_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-11,45,27,0 script #save_008-2-11_45_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-13/_savepoints.txt b/npc/008-2-13/_savepoints.txt
index 5c8fc22d..b82ce152 100644
--- a/npc/008-2-13/_savepoints.txt
+++ b/npc/008-2-13/_savepoints.txt
@@ -1,38 +1,54 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-13: Hurnscald Clinic saves
-008-2-13,29,27,0 script #save_008-2-13_29_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-13,29,27,0 script #save_008-2-13_29_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-13,32,27,0 script #save_008-2-13_32_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-13,32,27,0 script #save_008-2-13_32_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-13,29,31,0 script #save_008-2-13_29_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-13,29,31,0 script #save_008-2-13_29_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-13,32,31,0 script #save_008-2-13_32_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-13,32,31,0 script #save_008-2-13_32_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-14/_savepoints.txt b/npc/008-2-14/_savepoints.txt
index cbb6fd12..9eb50488 100644
--- a/npc/008-2-14/_savepoints.txt
+++ b/npc/008-2-14/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-14: Hurnscald Clinic saves
-008-2-14,31,27,0 script #save_008-2-14_31_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-14,31,27,0 script #save_008-2-14_31_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-2/melania.txt b/npc/008-2-2/melania.txt
index 9d9473f2..bfd1e8be 100644
--- a/npc/008-2-2/melania.txt
+++ b/npc/008-2-2/melania.txt
@@ -3,19 +3,106 @@
// Micksha
// Description:
// Receptionist of Rusty Pick.
-// THIS IS A PLACEHOLDER!
008-2-2,28,27,0 script Melania NPC_AIRLIA,{
+ function accepted_room;
+ function register_room;
+ function lodge_check;
+
speech
lg("Hello Sir.","Hello Miss."),
- l("Welcome to the Rusty Pick. Sorry, we have no room left today."),
+ l("Welcome to the Rusty Pick."),
l("One advice: Don't take the things those drinkers say too serious. They are sitting here and drinking all day."),
- l("I wish you a beautiful day.");
+ l("How can we serve you today?");
+
+ do
+ {
+ select
+ l("Could I lodge here for a while?"),
+ l("Nothing.");
+ mes "";
+
+ if (@menu == 1)
+ lodge_check();
+ } while (@menu != 2);
+ mesn;
+ l("I wish you a beautiful day.");
close;
+ // Check if you are booked here or somewhere else
+ function lodge_check {
+ if (INN_REGISTER == NO_INN)
+ {
+ register_room();
+ }
+ else if (INN_REGISTER == .inn)
+ {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ lg("You are already registered here."),
+ l("Go on the upper level if you want to change your room or to use it.");
+ }
+ else
+ {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ lg("If you are registered somewhere else you will loose that reservation."),
+ l("Do you still want to lodge here?");
+
+ if (askyesno() == ASK_YES)
+ {
+ register_room();
+ }
+ }
+ return;
+ }
+
+ // Find out prices
+ function register_room {
+ .@price = lognbaselvl(100, 10);
+ .@price = .@price*12/10; // Make the price 20% higher by WildX request
+
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("That will be @@ E to set your respawn point", .@price),
+ l("This will remain your respawn point until set elsewhere."),
+ l("Is that okay?");
+
+ if (askyesno() == ASK_YES)
+ {
+ accepted_room(.@price);
+ }
+ else
+ {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Come back later if you changed your mind!");
+ }
+
+ return;
+ }
+
+ // Book a room
+ function accepted_room {
+ .@price = getarg(0);
+ if (Zeny < .@price)
+ {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("You don't have enough money, bring @@ E.", .@price);
+ }
+ else
+ {
+ emotion E_HAPPY;
+ Zeny = Zeny - .@price;
+ INN_REGISTER = .inn;
+ PC_IS_DEAD = false;
+
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ lg("I registered you on a random bed on the upper level."),
+ l("You can go upstairs and choose a different room if you want.");
+ savepoint "008-2-3", any(49, 53, 57), any(31, 35);
+ }
+ }
+
OnInit:
.sex = G_FEMALE;
.distance = 2;
+ .inn=RUSTYPICK_INN;
end;
}
diff --git a/npc/008-2-22/_savepoints.txt b/npc/008-2-22/_savepoints.txt
index 999032f6..1cc5c220 100644
--- a/npc/008-2-22/_savepoints.txt
+++ b/npc/008-2-22/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-22: Mages Hut saves
-008-2-22,26,31,0 script #save_008-2-22_26_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-22,26,31,0 script #save_008-2-22_26_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-3/_savepoints.txt b/npc/008-2-3/_savepoints.txt
index ab7e555d..4e70dc2e 100644
--- a/npc/008-2-3/_savepoints.txt
+++ b/npc/008-2-3/_savepoints.txt
@@ -1,74 +1,106 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-3: The Rusty Pick saves
-008-2-3,61,31,0 script #save_008-2-3_61_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,61,31,0 script #save_008-2-3_61_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,60,35,0 script #save_008-2-3_60_35 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,60,35,0 script #save_008-2-3_60_35 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,57,31,0 script #save_008-2-3_57_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,57,31,0 script #save_008-2-3_57_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,57,35,0 script #save_008-2-3_57_35 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,57,35,0 script #save_008-2-3_57_35 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,53,35,0 script #save_008-2-3_53_35 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,53,35,0 script #save_008-2-3_53_35 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,53,31,0 script #save_008-2-3_53_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,53,31,0 script #save_008-2-3_53_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,49,31,0 script #save_008-2-3_49_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,49,31,0 script #save_008-2-3_49_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
-008-2-3,49,35,0 script #save_008-2-3_49_35 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-3,49,35,0 script #save_008-2-3_49_35 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, RUSTYPICK_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-4/_savepoints.txt b/npc/008-2-4/_savepoints.txt
index 103787d1..0129971e 100644
--- a/npc/008-2-4/_savepoints.txt
+++ b/npc/008-2-4/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-4: The Rusty Pick saves
-008-2-4,25,27,0 script #save_008-2-4_25_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-4,25,27,0 script #save_008-2-4_25_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-7/_savepoints.txt b/npc/008-2-7/_savepoints.txt
index f3faa80f..ab8ddbb4 100644
--- a/npc/008-2-7/_savepoints.txt
+++ b/npc/008-2-7/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-7: Hurnscald Apothecary saves
-008-2-7,25,27,0 script #save_008-2-7_25_27 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-7,25,27,0 script #save_008-2-7_25_27 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/008-2-9/_savepoints.txt b/npc/008-2-9/_savepoints.txt
index e2aae529..b606d73c 100644
--- a/npc/008-2-9/_savepoints.txt
+++ b/npc/008-2-9/_savepoints.txt
@@ -1,11 +1,15 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 008-2-9: Jack's Abode saves
-008-2-9,26,31,0 script #save_008-2-9_26_31 NPC_SAVE_POINT,{
- savepointparticle .map$, .x, .y, CURRENT_INN;
+008-2-9,26,31,0 script #save_008-2-9_26_31 NPC_SAVE_POINT,0,0,{
+ savepointparticle .map$, .x, .y, NO_INN;
close;
OnInit:
.distance = 2;
.sex = G_OTHER;
end;
+
+OnTouch:
+ bedTouch();
+ end;
}
diff --git a/npc/functions/beds.txt b/npc/functions/beds.txt
index 9c871a44..a4301891 100644
--- a/npc/functions/beds.txt
+++ b/npc/functions/beds.txt
@@ -2,14 +2,16 @@
// Authors:
// 4144
// Reid
+// Jesusalva
// Description:
// Beds utility functions
+// bedTouch({inn})
function script bedTouch {
if (PC_IS_DEAD)
{
PC_IS_DEAD = 0;
- if (INN_REGISTER == REDPLUSH_INN)
+ if (INN_REGISTER != NO_INN)
{
INN_REGISTER = NO_INN;
percentheal 100,100;
@@ -18,13 +20,3 @@ function script bedTouch {
close;
}
-function script bedClic {
- narrator S_LAST_NEXT, l("Do you want to use this place as save point?");
-
- if (askyesno() == ASK_YES)
- {
- savepointparticle getarg(0, ""), getarg(1, -1), getarg(2, -1), getarg(3, NO_INN);
- }
- closeclientdialog;
- close;
-}
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
index 0e0b6f90..46ef73e8 100644
--- a/npc/functions/savepoint.txt
+++ b/npc/functions/savepoint.txt
@@ -34,12 +34,21 @@ function script savepointparticle {
.@i = 0;
}
- message strcharinfo(0), l("Your position has been saved.");
-
- if (getarg(.@i, NO_INN) == NO_INN)
+ // If this will override your current inn, a confirmation is required.
+ // Unless you already don't have a booked place, then, confirmation is never shown.
+ if (getarg(.@i, NO_INN) != INN_REGISTER && INN_REGISTER != NO_INN)
{
+ mesc l("Do you want to use this place as save point?");
+ mesc b(l("Warning: ")) + l("Previous Inn reservation will be lost!");
+
+ if (askyesno() != ASK_YES)
+ close;
+
INN_REGISTER = NO_INN;
}
+
+ message strcharinfo(0), l("Your position has been saved.");
+
savepoint .@mapname$, .@mapx, .@mapy;
specialeffect(4, SELF, getcharid(3));
@lastSave = gettimetick(2);