summaryrefslogtreecommitdiff
path: root/npc/quests/seals/mjolnir_seal.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2017-06-03 15:34:53 -0400
committerHaru <haru@dotalux.com>2017-06-03 21:34:53 +0200
commit19883c583e5e1471c87ae80e67f34882a7e75bc6 (patch)
tree7d7e1a7a04081ce9725f771402a88a09d859f5e6 /npc/quests/seals/mjolnir_seal.txt
parent9d28c5187812e496b10d6fbaf62c642a69916021 (diff)
downloadhercules-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/quests/seals/mjolnir_seal.txt')
-rw-r--r--npc/quests/seals/mjolnir_seal.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/npc/quests/seals/mjolnir_seal.txt b/npc/quests/seals/mjolnir_seal.txt
index e4775cfb2..746167f20 100644
--- a/npc/quests/seals/mjolnir_seal.txt
+++ b/npc/quests/seals/mjolnir_seal.txt
@@ -1150,7 +1150,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else if (.@p_atk == 4) {
- specialeffect2 EF_HEAL;
+ specialeffect(EF_HEAL, AREA, playerattached());
.@p_vit += 10;
mes "--------------------";
mes "" + strcharinfo(PC_NAME) + "";
@@ -1186,7 +1186,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "lost " + .@damage + " HP!";
}
else if (.@p_atk == 0) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= 10;
mes "--------------------";
mes "You were hit by";
@@ -1245,7 +1245,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "Sudri attacks the legs!";
}
if (.@n_atk == .@p_def) {
- specialeffect2 EF_GUARD;
+ specialeffect(EF_GUARD, AREA, playerattached());
if (.@p_def == 1) {
mes "--------------------";
mes "" + strcharinfo(PC_NAME) + "";
@@ -1277,7 +1277,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + "";
mes "counters!";
if (.@count == 1) {
- specialeffect2 EF_AUTOCOUNTER;
+ specialeffect(EF_AUTOCOUNTER, AREA, playerattached());
specialeffect EF_MAGNUMBREAK;
.@n_vit -= 20;
mes "You successfully";
@@ -1291,7 +1291,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else {
- specialeffect2 EF_CRASHEARTH;
+ specialeffect(EF_CRASHEARTH, AREA, playerattached());
.@p_vit -= 30;
mes "You've taken";
mes "critical damage";
@@ -1301,7 +1301,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else if (.@n_atk == 1) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1311,7 +1311,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 2) {
- specialeffect2 EF_HIT2;
+ specialeffect(EF_HIT2, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1321,7 +1321,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 3) {
- specialeffect2 EF_HIT4;
+ specialeffect(EF_HIT4, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1331,7 +1331,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 0) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1558,7 +1558,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else if (.@p_atk == 4) {
- specialeffect2 EF_HEAL;
+ specialeffect(EF_HEAL, AREA, playerattached());
.@p_vit += 10;
mes "--------------------";
mes "" + strcharinfo(PC_NAME) + "";
@@ -1594,7 +1594,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "lost " + .@damage + " HP!";
}
else if (.@p_atk == 0) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= 10;
mes "--------------------";
mes "You were hit by";
@@ -1653,7 +1653,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "Sudri attacks the legs!";
}
if (.@n_atk == .@p_def) {
- specialeffect2 EF_GUARD;
+ specialeffect(EF_GUARD, AREA, playerattached());
if (.@p_def == 1) {
mes "--------------------";
mes "" + strcharinfo(PC_NAME) + " quickly dodged,";
@@ -1684,7 +1684,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + "";
mes "counters!";
if (.@count == 1) {
- specialeffect2 EF_AUTOCOUNTER;
+ specialeffect(EF_AUTOCOUNTER, AREA, playerattached());
specialeffect EF_MAGNUMBREAK;
.@n_vit -= 20;
mes "You successfully";
@@ -1698,7 +1698,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else {
- specialeffect2 EF_CRASHEARTH;
+ specialeffect(EF_CRASHEARTH, AREA, playerattached());
.@p_vit -= 30;
mes "You've taken";
mes "critical damage";
@@ -1708,7 +1708,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
}
}
else if (.@n_atk == 1) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1718,7 +1718,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 2) {
- specialeffect2 EF_HIT2;
+ specialeffect(EF_HIT2, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1728,7 +1728,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 3) {
- specialeffect2 EF_HIT4;
+ specialeffect(EF_HIT4, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";
@@ -1738,7 +1738,7 @@ mjolnir_09,209,341,3 script Dwarf Blacksmith#south 4_M_DWARF,{
mes "" + strcharinfo(PC_NAME) + " has lost " + .@damage + " HP!";
}
else if (.@n_atk == 0) {
- specialeffect2 EF_HIT5;
+ specialeffect(EF_HIT5, AREA, playerattached());
.@p_vit -= .@damage;
mes "--------------------";
mes "Sudri successfully";