summaryrefslogtreecommitdiff
path: root/npc/other/CashShop_Functions.txt
diff options
context:
space:
mode:
authorIbrahem Hossam <ibrahem.h.basyone@gmail.com>2016-10-16 14:19:36 +0200
committerGitHub <noreply@github.com>2016-10-16 14:19:36 +0200
commit8f2dace11eb6cce3fa9d4ff194db2a4b34753f91 (patch)
tree5dd5748a4f12963b57253a6a946a583b07022e56 /npc/other/CashShop_Functions.txt
parent1b1682ed243ef8304bfce1be7a70626c95720d93 (diff)
parent062f2cf4235cf07481ecaf58682f37f2ad8928f8 (diff)
downloadhercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.gz
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.bz2
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.tar.xz
hercules-8f2dace11eb6cce3fa9d4ff194db2a4b34753f91.zip
Merge pull request #1472 from Asheraf/getcharid
Change *getcharid to use constants
Diffstat (limited to 'npc/other/CashShop_Functions.txt')
-rw-r--r--npc/other/CashShop_Functions.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/other/CashShop_Functions.txt b/npc/other/CashShop_Functions.txt
index 3197b3838..629e91b8a 100644
--- a/npc/other/CashShop_Functions.txt
+++ b/npc/other/CashShop_Functions.txt
@@ -57,9 +57,9 @@ function script F_CashStore {
// - No arguments.
function script F_CashPartyCall {
warp "Random",0,0;
- if (getpartyleader(getcharid(1),2) == getcharid(0)) {
+ if (getpartyleader(getcharid(CHAR_ID_PARTY),2) == getcharid(CHAR_ID_CHAR)) {
getmapxy(.@mapl$, .@xl, .@yl, UNITTYPE_PC);
- warpparty .@mapl$, .@xl, .@yl, getcharid(1), .@mapl$;
+ warpparty .@mapl$, .@xl, .@yl, getcharid(CHAR_ID_PARTY), .@mapl$;
}
return;
}
@@ -285,7 +285,7 @@ function script F_Snowball {
case 2:
mes "Blessings.";
mes "Holy night~";
- unitskilluseid getcharid(3),"SM_ENDURE",10;
+ unitskilluseid getcharid(CHAR_ID_ACCOUNT),"SM_ENDURE",10;
close2;
cutin "",255;
break;