diff options
author | mekolat <mekolat@users.noreply.github.com> | 2017-06-03 15:34:53 -0400 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-06-03 21:34:53 +0200 |
commit | 19883c583e5e1471c87ae80e67f34882a7e75bc6 (patch) | |
tree | 7d7e1a7a04081ce9725f771402a88a09d859f5e6 /npc/re/cities | |
parent | 9d28c5187812e496b10d6fbaf62c642a69916021 (diff) | |
download | hercules-19883c583e5e1471c87ae80e67f34882a7e75bc6.tar.gz hercules-19883c583e5e1471c87ae80e67f34882a7e75bc6.tar.bz2 hercules-19883c583e5e1471c87ae80e67f34882a7e75bc6.tar.xz hercules-19883c583e5e1471c87ae80e67f34882a7e75bc6.zip |
Unify specialeffect, convert legacy scripts (#1746)
* allow to use specialeffect() on any unit, and to send to any player
* update the documentation for specialeffect()
* remove specialeffect2 from databases
* remove specialeffect2 from npcs
* remove misceffect from npcs
* convert specialeffect calls with strings to use GID
* add missing constants to specialeffect calls
* flag specialeffect2() as deprecated
* flag misceffect() as deprecated
Diffstat (limited to 'npc/re/cities')
-rw-r--r-- | npc/re/cities/dewata.txt | 14 | ||||
-rw-r--r-- | npc/re/cities/malangdo.txt | 2 | ||||
-rw-r--r-- | npc/re/cities/mora.txt | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/npc/re/cities/dewata.txt b/npc/re/cities/dewata.txt index d140a0d24..064cdc461 100644 --- a/npc/re/cities/dewata.txt +++ b/npc/re/cities/dewata.txt @@ -543,13 +543,13 @@ dewata,89,191,6 script Small Shrine#dew1 CLEAR_NPC,{ else if (.@stat & 32 && .@bonus) consumeitem 12068; //Luk_Dish03 else if (.@stat & 64) { - specialeffect2 EF_ANGEL; + specialeffect(EF_ANGEL, AREA, playerattached()); mes "- A celestial entity gives you a blessing. -"; next; } else if (.@stat & 128) { mes "- The shrine envelops you in a loving aura. -"; if ((Sex == SEX_FEMALE && compare(.@wish$,.@wishes$[26])) || (Sex == SEX_MALE && compare(.@wish$,.@wishes$[27]))) - specialeffect2 EF_LIGHTSPHERE; + specialeffect(EF_LIGHTSPHERE, AREA, playerattached()); next; } mes "It feels like this wish could come true."; @@ -569,13 +569,13 @@ dewata,89,191,6 script Small Shrine#dew1 CLEAR_NPC,{ L_Wish: mes "Mysterious energy comes out from the shrine."; - specialeffect EF_FLASHER,AREA,"Small Shrine#dew1"; - specialeffect EF_FLASHER,AREA,"Small Shrine#dew2"; - specialeffect EF_FLASHER,AREA,"Small Shrine#dew3"; - specialeffect EF_FLASHER,AREA,"Small Shrine#dew4"; + specialeffect(EF_FLASHER, AREA, getnpcid(0, "Small Shrine#dew1")); + specialeffect(EF_FLASHER, AREA, getnpcid(0, "Small Shrine#dew2")); + specialeffect(EF_FLASHER, AREA, getnpcid(0, "Small Shrine#dew3")); + specialeffect(EF_FLASHER, AREA, getnpcid(0, "Small Shrine#dew4")); next; mes "You have received the shrine's blessing."; - specialeffect2 EF_BLESSING; + specialeffect(EF_BLESSING, AREA, playerattached()); next; return; } diff --git a/npc/re/cities/malangdo.txt b/npc/re/cities/malangdo.txt index f4ac6300a..2397b8c06 100644 --- a/npc/re/cities/malangdo.txt +++ b/npc/re/cities/malangdo.txt @@ -314,7 +314,7 @@ malangdo,147,117,3 script Innkeeper#malang 4_CAT_REST,{ if (countitem(Malang_Sp_Can) > 4) { delitem Malang_Sp_Can,5; percentheal 100,100; - specialeffect2 EF_HEALSP; + specialeffect(EF_HEALSP, AREA, playerattached()); mes "[Innkeeper]"; mes "Now relax."; emotion e_kis; diff --git a/npc/re/cities/mora.txt b/npc/re/cities/mora.txt index 1b231024c..a58ee4463 100644 --- a/npc/re/cities/mora.txt +++ b/npc/re/cities/mora.txt @@ -1032,7 +1032,7 @@ mora,140,186,3 script Raffle Philosopher 4_M_RAFLE_OLD,{ mes "*thud*"; mes "You feel a sudden impact on the back of your head."; mes "Your sight is going blurry."; - specialeffect2 EF_HIT1; + specialeffect(EF_HIT1, AREA, playerattached()); sc_start SC_BLIND,20000,0; next; mes "You feel somebody rummaging through your pockets before you pass out."; |