diff options
author | jesusalva <cpntb1@ymail.com> | 2018-03-03 22:36:32 -0300 |
---|---|---|
committer | jesusalva <cpntb1@ymail.com> | 2018-03-03 22:36:32 -0300 |
commit | 91291fd85e692d0f653bdc1ed33b766a7f7a3f86 (patch) | |
tree | 3621d7bf37f3d45a8b157c6c606d7a1d6cd987b1 /npc | |
parent | 5739afc6f1b2c06625568839a8a595e639878e18 (diff) | |
download | serverdata-91291fd85e692d0f653bdc1ed33b766a7f7a3f86.tar.gz serverdata-91291fd85e692d0f653bdc1ed33b766a7f7a3f86.tar.bz2 serverdata-91291fd85e692d0f653bdc1ed33b766a7f7a3f86.tar.xz serverdata-91291fd85e692d0f653bdc1ed33b766a7f7a3f86.zip |
Trainer quest final stage
Diffstat (limited to 'npc')
-rw-r--r-- | npc/005-1/_mobs.txt | 2 | ||||
-rw-r--r-- | npc/005-7/trainer.txt | 34 |
2 files changed, 30 insertions, 6 deletions
diff --git a/npc/005-1/_mobs.txt b/npc/005-1/_mobs.txt index 56ad7e3fe..178e77874 100644 --- a/npc/005-1/_mobs.txt +++ b/npc/005-1/_mobs.txt @@ -6,5 +6,5 @@ 005-1,82,87,8,9 monster Candor Scorpion 1073,7,35000,300000,Trainer::OnKillCandorScorpion 005-1,36,105,6,3 monster Piou 1002,1,35000,300000 005-1,80,33,16,15 monster Candor Scorpion 1073,12,35000,300000,Trainer::OnKillCandorScorpion -005-1,71,39,28,10 monster ManaBug 1075,5,35000,300000 +005-1,71,39,28,10 monster ManaBug 1075,5,35000,300000,Trainer::OnKillManaBug 005-1,30,39,12,14 monster Scorpion 1071,2,35000,300000,Trainer::OnKillScorpion diff --git a/npc/005-7/trainer.txt b/npc/005-7/trainer.txt index 57b26701b..6b58b8d7e 100644 --- a/npc/005-7/trainer.txt +++ b/npc/005-7/trainer.txt @@ -43,7 +43,7 @@ L_Menu: mesq l("["+ strcharinfo(0) +"]"); menu l("How can you help me?"), L_ExplicaSiProprio, - l("I want to be trained!"), L_Trainment, + rif(getq(CandorQuest_Trainer) < 15, l("I want to be trained!")), L_Trainment, l("How do I make money?"), L_ExplicaGrama, l("How I see my items?"), L_ExplicaBagagem, l("How trade with other players?"), L_ExplicaTrade, @@ -105,14 +105,25 @@ L_Trainment: mesq l("You are killing @@ at northwest from the island.", getmonsterlink(Scorpion)); } else if (.@q == 11) { mesq l("Congratulations! Here is your reward (40 xp 25 gp)."); - mesq l("You completed all my tasks, so you're getting 50 bonus experience points. If you level up, use your stat points wisely!"); + mesq l("You completed your trainment, so you're getting 50 bonus experience points. If you level up, use your stat points wisely!"); getexp 90, 0; set Zeny, Zeny + 25; setq CandorQuest_Trainer, 12, 0; - } else { - mesq l("You are already fully trained. Go to Tulimshar, and try to join a guild or something."); + } else if (.@q == 12 && BaseLevel >= 10) { + mesq l("You are already fully trained. You should go to Tulimshar, but if you want a bonus task, please kill a @@.", getmonsterlink(ManaBug)); + setq CandorQuest_Trainer, 13, 0; + } else if (.@q == 12 && BaseLevel < 10) { + mesq l("You are already fully trained. You should go to Tulimshar. I may have another task for you later, but you are too weak now, get some levels."); + } else if (.@q == 13) { + mesq l("You are trying to kill a @@.", getmonsterlink(ManaBug)); + } else if (.@q == 14) { + mesq l("Wow! You did it! I do not think anyone else could have done that."); + mesq l("Here, take this @@ - you deserve it! And here is 200 GP to buy a better weapon.", getitemlink(CandorHeadBand)); + inventoryplace CandorHeadBand, 1; + getitem CandorHeadBand, 1; + set Zeny, Zeny + 200; + setq CandorQuest_Trainer, 15, 0; } - next; goto L_PreMenu; @@ -473,6 +484,19 @@ OnKillScorpion: } } end; +OnKillManaBug: + .@q=getq(CandorQuest_Trainer); + .@k=getq2(CandorQuest_Trainer); // Get number of kills (via getq2) + if (.@q == 13) { + if (.@k+1 >= 1) { + trainer_max_kills(); + message strcharinfo(0), l("All mana bugs are dead!"); + } else { + trainer_add_kills(); + message strcharinfo(0), l("@@/1 Mana Bug", .@k+1); + } + } + end; OnInit: .@npcId = getnpcid(0, .name$); |