summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2017-04-17 22:23:32 +0800
committerJedzkie <jedzkie13@rocketmail.com>2017-04-23 13:59:59 +0800
commit98a96e7d4977d50b2b5553786a4994e07fbba528 (patch)
tree4eb21b46527f5bb072f38633984e40ba7b7bfba8 /npc
parent5802b22439441be1914ae9024d6ce06d51c0210f (diff)
downloadhercules-98a96e7d4977d50b2b5553786a4994e07fbba528.tar.gz
hercules-98a96e7d4977d50b2b5553786a4994e07fbba528.tar.bz2
hercules-98a96e7d4977d50b2b5553786a4994e07fbba528.tar.xz
hercules-98a96e7d4977d50b2b5553786a4994e07fbba528.zip
Implemented official Giant Fly Wing Effect
Update the *warpparty script commmand, credits to Dastgir Coding-style fixes & whitespace adjustments in warpparty part in script.c
Diffstat (limited to 'npc')
-rw-r--r--npc/other/CashShop_Functions.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/other/CashShop_Functions.txt b/npc/other/CashShop_Functions.txt
index 629e91b8a..92fe841e1 100644
--- a/npc/other/CashShop_Functions.txt
+++ b/npc/other/CashShop_Functions.txt
@@ -56,10 +56,14 @@ function script F_CashStore {
// - Summons Party members on party leader map to that location.
// - No arguments.
function script F_CashPartyCall {
- warp "Random",0,0;
- if (getpartyleader(getcharid(CHAR_ID_PARTY),2) == getcharid(CHAR_ID_CHAR)) {
- getmapxy(.@mapl$, .@xl, .@yl, UNITTYPE_PC);
- warpparty .@mapl$, .@xl, .@yl, getcharid(CHAR_ID_PARTY), .@mapl$;
+ warp "Random", 0, 0;
+ if (getpartyleader(getcharid(CHAR_ID_PARTY), 2) == getcharid(CHAR_ID_CHAR)) {
+ getmapxy(.@map$, .@x, .@y, UNITTYPE_PC);
+ do {
+ .@x2 = .@x + rand(-2, 2);
+ .@y2 = .@y + rand(-2, 2);
+ } while (checkcell(.@map$, .@x2, .@y2, cell_chknopass));
+ warpparty(.@map$, .@x2, .@y2, getcharid(CHAR_ID_PARTY), .@map$, false);
}
return;
}