summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-07 20:38:35 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-07 20:38:35 -0300
commitbce38030b811df1b0ac1396049280b8b76c40708 (patch)
treea5fdf542f6e509e57cbc7580003df97367f5c9d8 /npc
parentf69bebae3ff151d7766707dcb624a0240001e081 (diff)
downloadserverdata-bce38030b811df1b0ac1396049280b8b76c40708.tar.gz
serverdata-bce38030b811df1b0ac1396049280b8b76c40708.tar.bz2
serverdata-bce38030b811df1b0ac1396049280b8b76c40708.tar.xz
serverdata-bce38030b811df1b0ac1396049280b8b76c40708.zip
Update HUB to use compare()
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/hub.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index eb535d9f6..b26c3baaa 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -44,12 +44,12 @@ function script HUB_Logout {
setq HurnscaldQuest_BloodDonor, 0, gettimetick(2)+3600; // one hour penalty
}
// Logout/Death on Nard's ship hold
- if (.@mapa$ ~= "002-2" || .@mapa$ ~= "nard*") {
+ if (.@mapa$ ~= "002-2" || compare(.@mapa$,"nard")) {
setq2 ShipQuests_Peter, 0;
setq3 ShipQuests_Peter, -1;
}
// Logout on botcheck area
- if (.@mapa$ ~= "botcheck" && !.@dead) {
+ if (compare(.@mapa$,"botcheck") && !.@dead) {
if (!is_staff())
atcommand "@jail "+strcharinfo(0);
}
@@ -64,7 +64,7 @@ function script HUB_Logout {
callfunc("BSClearNest", @nestid);
}
// Died or logged out on Player Story 5 - Forgotten Throne Room
- if (.@mapa$ ~= "hmc*") {
+ if (compare(.@mapa$, "hmc")) {
.@n$=instance_npcname("#Core02331");
deltimer(.@n$+"::OnW01");
deltimer(.@n$+"::OnW02");
@@ -76,7 +76,7 @@ function script HUB_Logout {
deltimer(.@n$+"::OnE12");
}
// Died or logged out during Sagratha Fight
- if (.@mapa$ ~= "sgt2*") {
+ if (compare(.@mapa$, "sgt2")) {
setq1 HurnscaldQuest_Sagratha, 3;
setq3 HurnscaldQuest_Sagratha, 0;
}
@@ -90,9 +90,9 @@ function script HUB_Logout {
// Logged out? Correct your position to inside the ship
// Of course, this is messy... But still better than Save Point
if (!.@dead) {
- if (.@mapa$ ~= "016-*")
+ if (compare(.@mapa$, "016-"))
warp "016-1", 28, 27;
- else if (.@mapa$ ~= "002-*")
+ else if (compare(.@mapa$, "002-"))
warp "002-1", 55, 40;
else
warp "Save", 0, 0;