summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-29 00:32:30 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-29 00:32:30 -0300
commit5f8c48b10bf82ba5a1339797392b66e06a93bafb (patch)
tree63dddcdf2a65aa5abad6aac8c8459eb8ddf8fe85
parent16068f480fd391a1a1f524538a4ed4cf59d49f7a (diff)
downloadserverdata-5f8c48b10bf82ba5a1339797392b66e06a93bafb.tar.gz
serverdata-5f8c48b10bf82ba5a1339797392b66e06a93bafb.tar.bz2
serverdata-5f8c48b10bf82ba5a1339797392b66e06a93bafb.tar.xz
serverdata-5f8c48b10bf82ba5a1339797392b66e06a93bafb.zip
Welcome Message, fix 003-1 Demure code
-rw-r--r--npc/003-1/events.txt21
-rw-r--r--npc/functions/clientversion.txt13
2 files changed, 23 insertions, 11 deletions
diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt
index 5abc40577..d566d5bd1 100644
--- a/npc/003-1/events.txt
+++ b/npc/003-1/events.txt
@@ -98,19 +98,18 @@ OnInit:
mesq l("Valentine Day is over!");
if (#VALENTINE_SENT+#VALENTINE_OPENED <= 0)
close;
- .@nb = query_sql("SELECT c.name, i.value FROM `acc_reg_num_db` AS i, `char` AS c WHERE i.key='#VALENTINE_POINTS' AND i.account_id=c.account_id AND c.char_num='0' ORDER BY i.value DESC LIMIT 10", .@name$, .@value);
mes "##B"+l("Top 10 - Valentine Day")+"##b";
- mes("1." +.@name$[0]+" ("+.@value[0]+")");
- mes("2." +.@name$[1]+" ("+.@value[1]+")");
- mes("3." +.@name$[2]+" ("+.@value[2]+")");
- mes("4." +.@name$[3]+" ("+.@value[3]+")");
- mes("5." +.@name$[4]+" ("+.@value[4]+")");
- mes("6." +.@name$[5]+" ("+.@value[5]+")");
- mes("7." +.@name$[6]+" ("+.@value[6]+")");
- mes("8." +.@name$[7]+" ("+.@value[7]+")");
- mes("9." +.@name$[8]+" ("+.@value[8]+")");
- mes("10."+.@name$[9]+" ("+.@value[9]+")");
+ mes("1." +$@valentine_name$[0]+" ("+$@valentine_value[0]+")");
+ mes("2." +$@valentine_name$[1]+" ("+$@valentine_value[1]+")");
+ mes("3." +$@valentine_name$[2]+" ("+$@valentine_value[2]+")");
+ mes("4." +$@valentine_name$[3]+" ("+$@valentine_value[3]+")");
+ mes("5." +$@valentine_name$[4]+" ("+$@valentine_value[4]+")");
+ mes("6." +$@valentine_name$[5]+" ("+$@valentine_value[5]+")");
+ mes("7." +$@valentine_name$[6]+" ("+$@valentine_value[6]+")");
+ mes("8." +$@valentine_name$[7]+" ("+$@valentine_value[7]+")");
+ mes("9." +$@valentine_name$[8]+" ("+$@valentine_value[8]+")");
+ mes("10."+$@valentine_name$[9]+" ("+$@valentine_value[9]+")");
next;
#VALENTINE_SENT=0;
#VALENTINE_OPENED=0;
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 9a608781c..2f6dd0f03 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -725,6 +725,19 @@ function script clientupdater {
#SAVED_LVL=BaseLevel;
BaseLevel=#ADD_TMP_LVL;
dispbottom l("Level set from %d to %d", #SAVED_LVL, BaseLevel);
+
+ // Welcome message
+ .@dg=true;
+ showavatar NPC_LOF_RICH;
+ mesn "Moubootaur Legends Server";
+ mesc l("First of all: Welcome! Your level was temporaly modified, it'll be reverted once event is over."), 3;
+ next;
+ mesn "Moubootaur Legends Server";
+ mesc l("You will be able to pick basic weapons and skills at the Event Soul Menhir."), 3;
+ next;
+ mesn "Moubootaur Legends Server";
+ mesc l("Be careful during night, use \"@tutorial\" in case of doubt, use \"%s\" to go to the event, and good luck!", b("@toevent")), 3;
+ next;
// Restore the level
} else if (#SAVED_LVL) {
dispbottom l("Level reset from %d to %d", BaseLevel, #SAVED_LVL);