summaryrefslogtreecommitdiff
path: root/npc/re/instances/BuwayaCave.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/instances/BuwayaCave.txt')
-rw-r--r--npc/re/instances/BuwayaCave.txt24
1 files changed, 11 insertions, 13 deletions
diff --git a/npc/re/instances/BuwayaCave.txt b/npc/re/instances/BuwayaCave.txt
index 139d3acc3..094964867 100644
--- a/npc/re/instances/BuwayaCave.txt
+++ b/npc/re/instances/BuwayaCave.txt
@@ -33,8 +33,6 @@
//= 1.0
//=========================================================================
-1@ma_c mapflag src4instance
-
ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
if (BaseLevel < 130) {
mes "[Guard]";
@@ -44,7 +42,7 @@ ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
close;
}
- .@party_id = getcharid(1);
+ .@party_id = getcharid(CHAR_ID_PARTY);
.@md_name$ = "Buwaya Cave";
if (!.@party_id) {
@@ -54,13 +52,13 @@ ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
mes "team with other people.";
close;
}
- if (getcharid(0) == getpartyleader(.@party_id,2)) {
+ if (getcharid(CHAR_ID_CHAR) == getpartyleader(.@party_id,2)) {
mes "[Guard]";
mes "This place is dangerous. Please go back.";
mes "If you dont have any business here, please go back.";
next;
while(1) {
- switch(select("Why is it so dangerous?:I'm here to hunt down Buwaya.:End conversation.")) {
+ switch(select("Why is it so dangerous?", "I'm here to hunt down Buwaya.", "End conversation.")) {
case 1:
mes "[Guard]";
mes "Recently, there has been a case";
@@ -98,7 +96,7 @@ ma_fild02,312,317,5 script Guard#buwaya_cave 4_MAL_SOLDIER,{
if (.@instance < 0) {
mes "[Guard]";
mes "Party name is... "+getpartyname(.@party_id)+".";;
- mes "Party leader is... "+strcharinfo(0);
+ mes "Party leader is... "+strcharinfo(PC_NAME);
mes "^0000ff"+.@md_name$+"^000000 cannot be opened now.";
mes "Please try a moment later.";
close;
@@ -152,14 +150,14 @@ OnTouch:
erasequest 4229;
// fall through
}
- switch(select("Enter.:Turn back.")) {
+ switch(select("Enter.", "Turn back.")) {
case 1:
if( has_instance("1@ma_c") == "" ) {
mes "The memorial dungeon Buwaya Cave does not exist.";
mes "The party leader did not generate the dungeon yet.";
close;
} else {
- mapannounce "ma_fild02",getpartyname(getcharid(1))+" party's "+strcharinfo(0)+" member began hunting Buwaya in Buwaya Cave.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
+ mapannounce "ma_fild02",getpartyname(getcharid(CHAR_ID_PARTY))+" party's "+strcharinfo(PC_NAME)+" member began hunting Buwaya in Buwaya Cave.",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
setquest 4229;
warp "1@ma_c",35,57;
end;
@@ -200,7 +198,7 @@ OnTouch:
mes "and new people got caught.";
mes "We will be stuck in here for the rest of our lives.";
next;
- switch(select("Get me outta here!!:Ca...can't escape?")) {
+ switch(select("Get me outta here!!", "Ca...can't escape?")) {
case 1:
mes "[Kidnapped Residents]";
mes "We don't have enough power to destroy it but Buwaya has a weakness.";
@@ -231,7 +229,7 @@ OnEnable:
mes "Ahaa! I wish I had a little more power...";
mes "I know its weakness...";
next;
- switch(select("Tell me.:Do you really know?")) {
+ switch(select("Tell me.", "Do you really know?")) {
case 1:
mes "[Kidnapped Residents]";
mes "Are you sure you can do it...?";
@@ -325,7 +323,7 @@ OnTimer35000:
disablenpc instance_npcname("#box_call");
end;
OnTouch:
- specialeffect2 EF_GUIDEDATTACK;
+ specialeffect(EF_GUIDEDATTACK, AREA, playerattached());
warp instance_mapname("1@ma_c"),33,112;
end;
OnDisable:
@@ -337,7 +335,7 @@ OnDisable:
1@ma_c,97,74,0 script #yunobi1 HIDDEN_WARP_NPC,{
end;
OnInstanceInit:
- hideonnpc instance_npcname(strnpcinfo(0));
+ hideonnpc instance_npcname(strnpcinfo(NPC_NAME));
end;
OnEnable:
specialeffect EF_MAPPILLAR2;
@@ -454,7 +452,7 @@ OnEnable:
OnTouch:
mes "Would like to go out?";
next;
- if(select("Yes!:No, I will stay.") == 1)
+ if(select("Yes!", "No, I will stay.") == 1)
warp "ma_fild02",315,315;
close;
}