diff options
Diffstat (limited to 'npc/021-4/main.txt')
-rw-r--r-- | npc/021-4/main.txt | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt index 66dde6cc8..862636260 100644 --- a/npc/021-4/main.txt +++ b/npc/021-4/main.txt @@ -107,6 +107,19 @@ OnInit: areamonster "021-4", 20, 20, 100, 80, "Moggun", Moggun, .@pl, "Cindy#Outside::OnPetDeath"; areamonster "021-4", 20, 20, 100, 80, "Slime Blast", SlimeBlast, $@CINDY_STATE+1; } + + // If a major bug happened, do it now + // This finishes the quest + .@y=mobcount("021-4", "Cindy#Outside::OnPetDeath"); + if (.@y == 0 && .canfinish) { + $@CINDY_STATE=gettimetick(2)+60*rand2(55,65)*rand2(4,36); // It is way too random to I say how long it takes (220min ~ 39 hours) + mapannounce "021-4", "Nivalis: Cindy is now safe!",bc_all|bc_npc; + areatimer "021-4", 20, 20, 100, 80, 10, "Cindy#Outside::OnReward"; + setnpcdisplay .name$, NPC_CINDY; + stopnpctimer; + end; + } + if (.canfinish) npctalk l("*scream*"); else @@ -184,11 +197,10 @@ L_Winner: $CINDY_WINNER$=strcharinfo(0); channelmes("#world", $CINDY_WINNER$+" is the first player to finish Cindy Quest!! GG, dude! %%N"); announce "All hail ##B"+$CINDY_WINNER$+"##b, first to complete the ##3Cindy Quest!", bc_all|bc_npc; - Karma=Karma+1; getexp 0, 2000; getitem PrismGift, 1; mesc l("CONGRATULATIONS! You are the first player to finish Cindy Quest!!"), 2; - mesc l("You just gained a Karma point, a Prism Gift, and 2000 Job Exp for your bravery!"), 2; + mesc l("You just gained a Prism Gift, and 2000 Job Exp for your bravery!"), 2; } else { if (getcharid(1) > 0) .@v$=getpartyname(getcharid(1)); @@ -274,6 +286,7 @@ OnTimer2000: mapannounce "021-4", "Nivalis: Cindy is now safe!",bc_all|bc_npc; areatimer "021-4", 20, 20, 100, 80, 10, "Cindy#Outside::OnReward"; setnpcdisplay .name$, NPC_CINDY; + stopnpctimer; end; } .wtime+=2; @@ -310,7 +323,7 @@ OnTimer2000: // To make easier, we spawn some Mogguns, too. // The ratio is Yeti 2:1 Moggun. (Third Yeti is replaced) .@mogg=.@value/3; - .@yeti=.@value-@mogg; + .@yeti=.@value-.@mogg; areamonster "021-4", 20, 20, 100, 80, "Yeti", Yeti, .@yeti, "Cindy#Outside::OnPetDeath"; areamonster "021-4", 20, 20, 100, 80, "Moggun", Moggun, .@mogg, "Cindy#Outside::OnPetDeath"; npctalk any("Yetis!", |