summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-04-25 17:04:15 +0200
committerGitHub <noreply@github.com>2017-04-25 17:04:15 +0200
commit7064be0489c91268b28081e6f11d92fd3ffc99b1 (patch)
treefc6976977383962d8159e98bd2425127081192c9 /npc
parent89ffb3db746b016ea1cc12ef2f148152ed280172 (diff)
parent98a96e7d4977d50b2b5553786a4994e07fbba528 (diff)
downloadhercules-7064be0489c91268b28081e6f11d92fd3ffc99b1.tar.gz
hercules-7064be0489c91268b28081e6f11d92fd3ffc99b1.tar.bz2
hercules-7064be0489c91268b28081e6f11d92fd3ffc99b1.tar.xz
hercules-7064be0489c91268b28081e6f11d92fd3ffc99b1.zip
Merge pull request #1689 from Jedzkie/2-GiantFlyWing
Implemented official Giant Fly Wing Effect
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;
}