diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-0-1/_import.txt | 1 | ||||
-rw-r--r-- | npc/003-0-1/statues.txt | 60 | ||||
-rw-r--r-- | npc/003-1/_warps.txt | 2 | ||||
-rw-r--r-- | npc/003-1/michel.txt | 11 | ||||
-rw-r--r-- | npc/functions/scoreboards.txt | 41 |
5 files changed, 99 insertions, 16 deletions
diff --git a/npc/003-0-1/_import.txt b/npc/003-0-1/_import.txt index 1095fd386..b62d85083 100644 --- a/npc/003-0-1/_import.txt +++ b/npc/003-0-1/_import.txt @@ -1,3 +1,4 @@ // Map 003-0-1: The Magic Guild // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/003-0-1/_warps.txt", +"npc/003-0-1/statues.txt", diff --git a/npc/003-0-1/statues.txt b/npc/003-0-1/statues.txt new file mode 100644 index 000000000..d663101b9 --- /dev/null +++ b/npc/003-0-1/statues.txt @@ -0,0 +1,60 @@ +// TMW-2 Script +// Author: +// Jesusalva +// Description: +// Currently Leaderboards + GM Command Log. But is a free npc. + +003-0-1,45,28,0 script Fortune Statue NPC_STATUE_BANKER,{ + + HallOfFortune(); + close; + +OnInit: + .sex = G_MALE; + .distance = 5; + end; +} + +003-0-1,51,28,0 script Strength Statue NPC_STATUE_GUARD,{ + + HallOfLevel(); + close; + +OnInit: + .sex = G_MALE; + .distance = 5; + end; +} + +003-0-1,34,38,0 script Hero Statue NPC_STATUE_ANDREI,{ + + mes l("This statue was built for memory of Andrei Sakar, the greatest hero this world has even seen."); + mes l("For defending Hurnscald alone and saving all its inhabitants."); + mes l("For fighting against the Monster King once and getting out alive to tell the story."); + mes l("For all his great deeds, and thousands of lives he saved, this statue is in his honor."); + if ($MOST_HEROIC$ == "") + close; + next; + mes l("Also in honor of @@, who did a great act of bravery recently. May they keep protecting our world!", $MOST_HEROIC$); + close; + +OnInit: + .sex = G_MALE; + .distance = 5; + end; +} + +003-0-1,82,24,0 script Worker Statue NPC_STATUE_CONTRIBUTOR,{ + + mes l("This is in honor of all the [@@help://about-server|Contributors@@] who helped rebuilding this world, after the Monster War outbreak."); + mes l("And also in notable mention of those who sponsor the Alliance and its administrative structure."); + mes l(""); + mes l("Saulc."); + close; + +OnInit: + .sex = G_MALE; + .distance = 5; + end; +} + diff --git a/npc/003-1/_warps.txt b/npc/003-1/_warps.txt index da9e316f8..35a39efef 100644 --- a/npc/003-1/_warps.txt +++ b/npc/003-1/_warps.txt @@ -19,4 +19,4 @@ 003-1,116,120,0 warp #003-1_116_120 0,0,003-1-2,48,35 003-1,58,54,0 warp #003-1_58_54 0,0,003-1-3,82,82 003-1,25,45,0 warp #003-1_25_45 0,0,003-1-3,37,85 -003-1,52,35,0 warp #003-1_52_35 1,0,003-0-1,50,51 +003-1,52,35,0 warp #003-1_52_35 1,0,003-0-1,48,51 diff --git a/npc/003-1/michel.txt b/npc/003-1/michel.txt index 58bf0f947..31a709b62 100644 --- a/npc/003-1/michel.txt +++ b/npc/003-1/michel.txt @@ -2,7 +2,7 @@ // Author: // Jesusalva // Description: -// Leaderboards + GM Command Log +// Currently Leaderboards + GM Command Log. But is a free npc. 003-1,89,109,0 script Michel NPC_BACCHUS,{ @@ -10,19 +10,12 @@ mesq l("All hail the ones who proven their worth before the whole Alliance!"); HallOfFame(); - next; - - HallOfFortune(); - next; - - HallOfLevel(); - next; // Anyone with GM Level, staff or not, is allowed to latest GM logs if (!getgmlevel()) close; - HallOfGMLog(); next; + HallOfGMLog(); // Only Admins are allowed to change the HoF Scoreboard if (!is_admin()) close; diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index bdc1a554d..2eedbff2a 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -6,35 +6,63 @@ function script HallOfFame { mes ""; - .@nb = query_sql("select name, karma from `char` ORDER BY karma DESC LIMIT 5", .@name$, .@value); - mes l("##BHall Of Fame: TOP5##b"); + .@nb = query_sql("select name, karma from `char` ORDER BY karma DESC LIMIT 10", .@name$, .@value); + mes l("##BHall Of Fame: TOP10##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]+")"); + return; } function script HallOfFortune { mes ""; - .@nb = query_sql("select name, zeny from `char` ORDER BY zeny DESC LIMIT 5", .@name$, .@value); - mes l("##BHall Of Fortune: TOP5##b"); + .@nb = query_sql("select name, zeny from `char` ORDER BY zeny DESC LIMIT 15", .@name$, .@value); + mes l("##BHall Of Fortune: TOP15##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("11."+.@name$[10]+" ("+.@value[10]+")"); + mes("12."+.@name$[11]+" ("+.@value[11]+")"); + mes("13."+.@name$[12]+" ("+.@value[12]+")"); + mes("14."+.@name$[13]+" ("+.@value[13]+")"); + mes("15."+.@name$[14]+" ("+.@value[14]+")"); + return; } function script HallOfLevel { mes ""; - .@nb = query_sql("select name, base_level from `char` WHERE `guild_id`!=1 ORDER BY base_level DESC LIMIT 5", .@name$, .@value); - mes l("##BHall Of Level: TOP5##b"); + .@nb = query_sql("select name, base_level from `char` WHERE `guild_id`!=1 ORDER BY base_level DESC LIMIT 15", .@name$, .@value); + mes l("##BHall Of Level: TOP15##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("11."+.@name$[10]+" ("+.@value[10]+")"); + mes("12."+.@name$[11]+" ("+.@value[11]+")"); + mes("13."+.@name$[12]+" ("+.@value[12]+")"); + mes("14."+.@name$[13]+" ("+.@value[13]+")"); + mes("15."+.@name$[14]+" ("+.@value[14]+")"); + return; } function script HallOfGMLog { @@ -51,4 +79,5 @@ function script HallOfGMLog { mes("8."+.@name$[7]+" ("+.@value$[7]+")"); mes("9."+.@name$[8]+" ("+.@value$[8]+")"); mes("10."+.@name$[9]+" ("+.@value$[9]+")"); + return; } |