summaryrefslogtreecommitdiff
path: root/npc/merchants
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2016-08-28 17:03:57 +0100
committerhemagx <ibrahem.h.basyone@gmail.com>2016-08-29 01:03:42 +0200
commit86977d79269408a371384e61111c3a9cf6e87b0c (patch)
tree4f2a9b1f9a3ee6436a0b857d05caa2be7e99a877 /npc/merchants
parent16f998c8a79153ed9f6721c36e129b6080fa59d2 (diff)
downloadhercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.gz
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.bz2
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.tar.xz
hercules-86977d79269408a371384e61111c3a9cf6e87b0c.zip
*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
Diffstat (limited to 'npc/merchants')
-rw-r--r--npc/merchants/coin_exchange.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/merchants/coin_exchange.txt b/npc/merchants/coin_exchange.txt
index 8ce94830d..e0f72ca57 100644
--- a/npc/merchants/coin_exchange.txt
+++ b/npc/merchants/coin_exchange.txt
@@ -37,7 +37,7 @@
//== Manuk & Splendide =====================================
- script ::merchant_13_2 FAKE_NPC,{
- .@n$ = "["+strnpcinfo(1)+"]";
+ .@n$ = "["+strnpcinfo(NPC_NAME_VISIBLE)+"]";
mes .@n$;
if (isequipped(2782) && ep13_2_rhea == 100) {
if (!checkweight(Knife,1)) {
@@ -48,7 +48,7 @@
mes "Hello.";
mes "What are you looking for?";
next;
- if (strnpcinfo(1) == "Merchant of Manuk") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Merchant of Manuk") {
setarray .@items[2],12342,12343,12348;
.@Book = 11019; //Manuk_Selling_Item
.@coin = 6080; //Manuk_Coin
@@ -93,7 +93,7 @@
close;
}
else {
- if (strnpcinfo(1) == "Merchant of Manuk") {
+ if (strnpcinfo(NPC_NAME_VISIBLE) == "Merchant of Manuk") {
mes "Rtt od d";
mes "Qwo hd is d irr";
}