From 86977d79269408a371384e61111c3a9cf6e87b0c Mon Sep 17 00:00:00 2001 From: Asheraf Date: Sun, 28 Aug 2016 17:03:57 +0100 Subject: *strnpcinfo now uses constants - NPC_NAME for the whole npc name including hidden part - NPC_NAME_VISIBLE for the visible part of the npc name - NPC_NAME_HIDDEN for the hidden part of the npc name - NPC_NAME_UNIQUE for the npc unique name - NPC_MAP for npc map --- npc/cities/comodo.txt | 2 +- npc/cities/louyang.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/cities') diff --git a/npc/cities/comodo.txt b/npc/cities/comodo.txt index 8ac60a171..d60278abd 100644 --- a/npc/cities/comodo.txt +++ b/npc/cities/comodo.txt @@ -355,7 +355,7 @@ cmd_fild07,52,280,4 script Hallosu#cmd 4W_SAILOR,{ } cmd_fild07,299,83,4 script Zain#cmd 4W_SAILOR,{ - .@n$ = "["+strnpcinfo(1)+"]"; + .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]"; mes .@n$; mes "Would you like to"; mes "board a ship on the"; diff --git a/npc/cities/louyang.txt b/npc/cities/louyang.txt index dca5f0376..b4cfcb8ea 100644 --- a/npc/cities/louyang.txt +++ b/npc/cities/louyang.txt @@ -338,7 +338,7 @@ louyang,84,254,0 script Exit#lou HIDDEN_NPC,{ if (rand(1,100) == 34) { percentheal -99,0; warp "louyang",86,269; - mapannounce "louyang",""+strnpcinfo(0)+" : Oh God, I'm faaaaaaaaaaaalling~~!!!!",bc_map; + mapannounce "louyang",""+strnpcinfo(NPC_NAME)+" : Oh God, I'm faaaaaaaaaaaalling~~!!!!",bc_map; } else { warp "lou_in01",10,18; -- cgit v1.2.3-70-g09d2