summaryrefslogtreecommitdiff
path: root/npc/003-2/lua.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-2/lua.txt')
-rw-r--r--npc/003-2/lua.txt40
1 files changed, 26 insertions, 14 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 627960f17..557d6dfee 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -62,6 +62,11 @@ L_GMItems:
goto L_Menu;
L_GMEvent:
+OnGMCoinClaim:
+ if (!is_gm() || #GMEVENT_T > gettimetick(2)) {
+ dispbottom l("ERROR: You already took the coins today. Please wait @@ more.", FuzzyTime(#GMEVENT_T)), 1;
+ end;
+ }
#GMEVENT_T=gettimetick(2)+(60*60*24);
getitem StrangeCoin, 30;
//logmes(strcharinfo(0)+" just took thirty event coins.");
@@ -72,6 +77,7 @@ L_GMEvent:
mes "";
goto L_Menu;
+OnGMEventShop:
L_GMEventShop:
// Inflaction: Non-admins pay more out of main events (for whatever reasons)
.@inf=1;
@@ -123,7 +129,7 @@ L_NewHero:
mes l("Current hero: @@", $MOST_HEROIC$);
input .@MH$;
logmes "Changing hero from "+$MOST_HEROIC$+" to "+.@MH$;
- logmes(strcharinfo(0)+" changed the world's hero.", LOGMES_ATCOMMAND);
+ logmes(strcharinfo(0)+" changed the world's hero ("+$MOST_HEROIC$+"->"+.@MH$+")", LOGMES_ATCOMMAND);
$MOST_HEROIC$ = .@MH$;
goto L_Menu;
@@ -249,10 +255,11 @@ L_Task:
close;
L_Finish:
- inventoryplace MercBoxAA, 1;
+ inventoryplace MercBoxAA, 1, TreasureKey, 1;
getexp BaseLevel*60, JobLevel*10; // Reference Levels: (20, 6)
setq General_Narrator, 3, 0;
getitem MercBoxAA, 1;
+ getitem TreasureKey, 1;
mesn;
mesq l("Great job! You can keep these items, they will be crucial to your journey.");
next;
@@ -265,6 +272,9 @@ L_Finish:
mesn;
mesq l("Still, they can be useful when you're trying to solo a boss and need help. The number of stars on the card is the strength and rarity. Use them wisely.");
next;
+ mesn;
+ mesq l("Ah, you might have seen a treasure chest on the mines. There are several of these chests to loot, and loot again! Here is a @@. Try it!", getitemlink(TreasureKey));
+ next;
L_Complete:
mesn;
mesq l("You see the docks on the other side of the town? There should be a ship docked there.");
@@ -304,14 +314,14 @@ L_Complete:
L_Tips:
mesn;
- mesq l("Hmm... First of, I would really add some agility. Agility helps you to don't be hit, and not being hit is awesome.");
- mesq l("Hm, I would also do some quests if I needed money... On other hand, maybe I could go fishing? Do I know any fisher?");
- mesq l("Ah, getting experience is hard, too... I would stay within the city. Hit and Run tactics works the best.");
+ mes l("Hmm... First of, I would really add some agility. Agility helps you to don't be hit, and not being hit is awesome.");
+ mes l("Hm, I would also do some quests if I needed money... On other hand, maybe I could go fishing? Do I know any fisher?");
+ mes l("Ah, getting experience is hard, too... I would stay within the city. Hit and Run tactics works the best.");
next;
mesn;
- mesq l("Hit'n'run is not so hard... One hit, one step back... One hit, another step back... One miss, two steps back...");
- mesq l("That works with most of monsters. Well, but we all know from @@ that it is better to stay put and let mobs kill us, right?", "Apane");
- mesq l("Heh, there is death penalty indoors and outside the town. You better watch out. The mobs are on a foul mood today, very easy to get killed.");
+ mes l("Hit'n'run is not so hard... One hit, one step back... One hit, another step back... One miss, two steps back...");
+ mes l("That works with most of monsters. Well, but we all know from @@ that it is better to stay put and let mobs kill us, right?", "Apane");
+ mes l("Heh, there is death penalty outside the town. You better watch out. The mobs are on a foul mood today, very easy to get killed.");
close;
L_Check:
@@ -378,19 +388,19 @@ L_Contributor:
case 1:
getitem BugLeg, 30; #CRW=#CRW|128 ; break;
case 2:
- Zeny=Zeny-10000; getitembound "LegendaryMount", 1, 1; #CRW=#CRW|32 ; break;
+ Zeny=Zeny-10000; getitembound LegendaryMouboo, 1, 1; #CRW=#CRW|32 ; break;
case 3:
- getitem "DeliciousCookie", 1; #CRW=#CRW|16 ; break;
+ getitem DeliciousCookie, 1; #CRW=#CRW|16 ; break;
case 4:
getitem BugLeg, 20; #CRW=#CRW|64 ; break;
case 5:
- getitem "DEVCap", 1; #CRW=#CRW|8 ; break;
+ getitem DEVCap, 1; #CRW=#CRW|8 ; break;
case 6:
- getitem "ContributorSweater", 1; #CRW=#CRW|4 ; break;
+ getitem ContributorSweater, 1; #CRW=#CRW|4 ; break;
case 7:
- getitem "CommunityShirt", 1; #CRW=#CRW|2 ; break;
+ getitem CommunityShirt, 1; #CRW=#CRW|2 ; break;
case 8:
- getitem "StrangeCoin", 5; #CRW=#CRW|1 ; break;
+ getitem StrangeCoin, 5; #CRW=#CRW|1 ; break;
case 9:
mes l("10000 - 30x @@", getitemlink(BugLeg));
mes l("5000 (+10,000 GP) - @@", getitemlink(LegendaryTortuga));
@@ -416,6 +426,8 @@ OnInit:
setunitdata(.@npcId, UDT_WEAPON, BugSlayer);
setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
setunitdata(.@npcId, UDT_HAIRCOLOR, 5);
+ bindatcmd "strangecoin", "Lua#003-2::OnGMCoinClaim", 60, 100, 1;
+ bindatcmd "strangeshop", "Lua#003-2::OnGMEventShop", 60, 100, 1;
.sex = G_FEMALE;
.distance = 4;