From f2ef796528890aa1532ea471a923fd065fd46098 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 11 Mar 2019 02:53:21 -0300 Subject: 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) --- npc/005-7/trainer.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'npc/005-7') 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); -- cgit v1.2.3-60-g2f50