summaryrefslogtreecommitdiff
path: root/npc/005-7/trainer.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-11 02:53:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-11 02:53:21 -0300
commitf2ef796528890aa1532ea471a923fd065fd46098 (patch)
treed41a8ce7ff12789908ee8365c11c8ecba826f045 /npc/005-7/trainer.txt
parentc646985ccd6bc91c912533ddc682c1bb0c551ca7 (diff)
downloadserverdata-f2ef796528890aa1532ea471a923fd065fd46098.tar.gz
serverdata-f2ef796528890aa1532ea471a923fd065fd46098.tar.bz2
serverdata-f2ef796528890aa1532ea471a923fd065fd46098.tar.xz
serverdata-f2ef796528890aa1532ea471a923fd065fd46098.zip
Alias @info and @tutorial against Candor Trainer.
This allows players to get the Reference book quickly, just like @rules Without needing to go back to Candor. (Quest is disabled with @info/@tutorial)
Diffstat (limited to 'npc/005-7/trainer.txt')
-rw-r--r--npc/005-7/trainer.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/npc/005-7/trainer.txt b/npc/005-7/trainer.txt
index 1e5d420ab..609c37109 100644
--- a/npc/005-7/trainer.txt
+++ b/npc/005-7/trainer.txt
@@ -26,8 +26,13 @@
// 12: Finished all trainment
005-7,25,29,0 script Trainer NPC_PLAYER,{
+ goto L_Begin;
+
+OnRemoteHelp:
+L_Begin:
.@q=getq(CandorQuest_Trainer);
.@b=getq(ShipQuests_Knife); // TODO: We should check if user is with weapon equipped instead
+ .@map$=getmap();
mesn;
mesq lg("Hello my friend! Need my help?");
next;
@@ -43,7 +48,7 @@ L_Menu:
mesn strcharinfo(0);
menu
l("How can you help me?"), L_ExplicaSiProprio,
- rif(getq(CandorQuest_Trainer) < 15, l("I want to be trained!")), L_Trainment,
+ rif(.@map$ == "005-7" && getq(CandorQuest_Trainer) < 15, l("I want to be trained!")), L_Trainment,
l("I wanted info about how to play."), L_Manaplus_gap,
l("How do I make money?"), L_ExplicaGrama,
l("Monsters."), L_Monstros,
@@ -410,6 +415,9 @@ L_Comandos:
mes l("@discord allows you to setup Discord integration settings.");
mes l("@ucp allows you to manage your account, eg. recover lost email.");
next;
+ mes l("@resyncall is the more powerful version of @resync. It'll reload everything, even the clouds if needed.");
+ mes l("@info and @tutorial will, using Jesusalva's powers, allow you to contact me anywhere for info.");
+ next;
goto L_Manaplus;
L_Status:
@@ -600,6 +608,9 @@ OnKillManaBug:
end;
OnInit:
+ bindatcmd "info", "Trainer::OnRemoteHelp", 0, 0, 0;
+ bindatcmd "tutorial", "Trainer::OnRemoteHelp", 0, 0, 0;
+
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, LeatherShirt);
setunitdata(.@npcId, UDT_HEADMIDDLE, CottonTrousers);