summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-20 00:09:00 -0300
committerJesusaves <cpntb1@ymail.com>2019-02-20 00:09:00 -0300
commit5db8ae776c7dac76d49887609e14af9677de04a4 (patch)
treef6d6cf66864f78c334b8adf146742c71512adb70 /npc/functions/clientversion.txt
parent23c8af7d99617137301b2d8666dc4448d044f6c5 (diff)
downloadserverdata-5db8ae776c7dac76d49887609e14af9677de04a4.tar.gz
serverdata-5db8ae776c7dac76d49887609e14af9677de04a4.tar.bz2
serverdata-5db8ae776c7dac76d49887609e14af9677de04a4.tar.xz
serverdata-5db8ae776c7dac76d49887609e14af9677de04a4.zip
Ok, now I'm sure SQL didn't worked.
Let's get rid of this bug once and for all.
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r--npc/functions/clientversion.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 6c91f2898..c97577201 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -156,7 +156,8 @@ function script checkclientversion {
showavatar NPC_LOF_RICH;
mesn ("TMW2 Staff");
mesc l("Hello, @@! We just looked up and found out that you were affected by BotCheck Logout rules!", strcharinfo(0)), 3;
- mesc l("Due this bug, when you logged off on the BotCheck Area, the server jailed you. We wanted to deliver you a token of apology!"), 3;
+ mesc l("First of, you didn't logged in. Without you online, WE CANNOT UNJAIL YOU! We tried with SQL but it didn't budge."), 3;
+ mesc l("Due this bug, when you logged off on the BotCheck Area, @@. We wanted to deliver you a token of apology!", b(l("the server jailed you"))), 3;
mesc l("Sorry, and enjoy the game! Your TMW2 Staff Team."), 3;
mesc l("Token Of Apology: 1x @@", getitemlink(SupremeGift));
mes "";
@@ -177,6 +178,24 @@ function script checkclientversion {
if (getmap() ~= "sec_pri")
warp "Save", 0, 0;
}
+ // Unclaimed Rewards
+ // 2000283 Msawis 10 points
+ // 2000552 Mrhedx 4 points
+ // 2000299 vilbou 1 point
+ setarray .@apology, 2000552, 2000283, 2000299;
+ if (array_exists(.@apology, getcharid(3)) && (#VALENTINE_SENT+#VALENTINE_OPENED) > 0) {
+ if (getcharid(3) == 2000552) {
+ getitem BronzeGift, 1;
+ } else if (getcharid(3) == 2000283) {
+ getitem GoldenGift, 1;
+ } else if (getcharid(3) == 2000299) {
+ getitem StrangeCoin, 1;
+ }
+ dispbottom l("Valentine Day Event Reward automatically claimed");
+ #VALENTINE_SENT=0;
+ #VALENTINE_OPENED=0;
+ #VALENTINE_RECEIVED=0;
+ }
}