summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-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;
+ }
}