Updated the script to use the commands cloakonnpcself/cloakoffnpcself (#6946)

This commit is contained in:
Atemo 2022-05-16 16:17:36 +02:00 committed by GitHub
parent d3cc0c5656
commit a8276339bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 566 additions and 566 deletions

View File

@ -66,8 +66,8 @@ iz_int04,51,30,0 duplicate(iz_int#intro_evt02) iz_int04#intro_evt02 HIDDEN_WARP_
//== Wounded Swordsman (iz_int) ================================= //== Wounded Swordsman (iz_int) =================================
iz_int,56,32,3 script Wounded Swordsman#intro_npc01_iz_int 4_TOWER_01,5,5,{ iz_int,56,32,3 script Wounded Swordsman#intro_npc01_iz_int 4_TOWER_01,5,5,{
npctalk "Oh...", "", bc_self; npctalk "Oh...", "", bc_self;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
cloakoffnpc "Wounded Swordsman#intro_npc02_" + strnpcinfo(4), getcharid(0); cloakoffnpcself( "Wounded Swordsman#intro_npc02_" + strnpcinfo(4) );
end; end;
OnTouch: OnTouch:
@ -283,7 +283,7 @@ int_land,73,100,3 script Lumin#new_ship 4_M_NOV_RUMIN,{
mes "[Lumin]"; mes "[Lumin]";
mes "Yes."; mes "Yes.";
next; next;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
cutin "fly_trock.bmp",2; cutin "fly_trock.bmp",2;
mes "[Captain Carocc]"; mes "[Captain Carocc]";
mes "Oh boy."; mes "Oh boy.";
@ -307,7 +307,7 @@ int_land,73,100,3 script Lumin#new_ship 4_M_NOV_RUMIN,{
mes "....."; mes ".....";
mes "....So?"; mes "....So?";
next; next;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
mes "- Lu just walked away with a cynical look on his face."; mes "- Lu just walked away with a cynical look on his face.";
next; next;
cutin "fly_trock.bmp",2; cutin "fly_trock.bmp",2;

View File

@ -124,7 +124,7 @@ sp_cor,108,130,5 script Rebellion#rm171_7 4_F_REBELLION3,{
mes "[Rebellion]"; mes "[Rebellion]";
mes "So, you received the message. The Captains are having a meeting on the inside. Captain Elena Volkova must have called you."; mes "So, you received the message. The Captains are having a meeting on the inside. Captain Elena Volkova must have called you.";
mes "... I was going to call her, but she's already here."; mes "... I was going to call her, but she's already here.";
cloakoffnpc "Elena Volkova#rm171_0", getcharid(0); cloakoffnpcself( "Elena Volkova#rm171_0" );
npctalk "Elena Volkova: Ah, I've been looking for you, Adventurer.", "Elena Volkova#rm171_0", bc_self; npctalk "Elena Volkova: Ah, I've been looking for you, Adventurer.", "Elena Volkova#rm171_0", bc_self;
if (isbegin_quest(16352) == 0) if (isbegin_quest(16352) == 0)
setquest 16352; setquest 16352;
@ -146,7 +146,7 @@ sp_cor,108,130,5 script Rebellion#rm171_7 4_F_REBELLION3,{
mes "[Rebellion]"; mes "[Rebellion]";
mes "Did you bring Damaged Weapons? Would you like to see that science criminal? He's in there. Want me to call him for you?"; mes "Did you bring Damaged Weapons? Would you like to see that science criminal? He's in there. Want me to call him for you?";
mes "Or do you have business with me? I can exchange Weapon Modification Devices and Armor Modification Modules."; mes "Or do you have business with me? I can exchange Weapon Modification Devices and Armor Modification Modules.";
cloakoffnpc "Elyumina#rm171_4", getcharid(0); cloakoffnpcself( "Elyumina#rm171_4" );
npctalk "Rebellion: Hey, criminal. You're wanted.", "Rebellion#rm171_7", bc_self; npctalk "Rebellion: Hey, criminal. You're wanted.", "Rebellion#rm171_7", bc_self;
npctalk "Elyumina: Alright, alright! I'm coming! You're so pathetic that without me, you'll have to fight with bean bags.", "Elyumina#rm171_4", bc_self; npctalk "Elyumina: Alright, alright! I'm coming! You're so pathetic that without me, you'll have to fight with bean bags.", "Elyumina#rm171_4", bc_self;
next; next;
@ -266,7 +266,7 @@ sp_cor,111,130,3 script Elyumina#rm171_4 4_EP17_ELYUMINA,{
mes "[Elyumina]"; mes "[Elyumina]";
mes "Argh! Why do you keep asking for me when I need to focus on my research? I'm busy, alright? If you're bored, go bring me more damaged weapons!"; mes "Argh! Why do you keep asking for me when I need to focus on my research? I'm busy, alright? If you're bored, go bring me more damaged weapons!";
close2; close2;
cloakonnpc "Elyumina#rm171_3", getcharid(0); cloakonnpcself( "Elyumina#rm171_3" );
cutin "",255; cutin "",255;
end; end;
} }

View File

@ -15,7 +15,7 @@ OnTouch:
if (.@num == 0) if (.@num == 0)
end; end;
if (!achievementexists(.@num)) // Don't trigger if the player has already completed. if (!achievementexists(.@num)) // Don't trigger if the player has already completed.
cloakoffnpc ("#tr" + .@num), getcharid(0); cloakoffnpcself( ("#tr" + .@num) );
end; end;
} }
@ -277,7 +277,7 @@ yuno_fild11,141,357,4 duplicate(ach_treasure#touch) #wp120061 HIDDEN_WARP_NPC,5,
end; end;
if (!achievementexists(.@num)) if (!achievementexists(.@num))
achievementcomplete(.@num); achievementcomplete(.@num);
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
end; end;
OnInit: OnInit:
cloakonnpc(); cloakonnpc();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1917,9 +1917,9 @@ OnTouch:
cloakoffnpc( "Wizard#ilgf28", .@char_id ); cloakoffnpc( "Wizard#ilgf28", .@char_id );
} }
else if (ill_vampire == 10) { else if (ill_vampire == 10) {
cloakoffnpc "Dracula#ilgf02", getcharid(0); cloakoffnpcself( "Dracula#ilgf02" );
cloakoffnpc "King#ilgf01", getcharid(0); cloakoffnpcself( "King#ilgf01" );
cloakoffnpc "Wizard#ilgf02", getcharid(0); cloakoffnpcself( "Wizard#ilgf02" );
} }
else if (ill_vampire == 12 || ill_vampire == 13) { else if (ill_vampire == 12 || ill_vampire == 13) {
.@char_id = getcharid(0); .@char_id = getcharid(0);
@ -3334,9 +3334,9 @@ gef_d01_i,81,135,5 script Wizard#ilgf01 4_F_BOMI,5,5,{
next; next;
mes "[Bomi]"; mes "[Bomi]";
mes "You'd better hurry."; mes "You'd better hurry.";
cloakoffnpc "Dracula#ilgf02", getcharid(0); cloakoffnpcself( "Dracula#ilgf02" );
cloakoffnpc "King#ilgf01", getcharid(0); cloakoffnpcself( "King#ilgf01" );
cloakoffnpc "Wizard#ilgf02", getcharid(0); cloakoffnpcself( "Wizard#ilgf02" );
delitem 25268,10;// Sticky_Blood delitem 25268,10;// Sticky_Blood
delitem 25269,10;// Mushroom_Sap delitem 25269,10;// Mushroom_Sap
erasequest 14660;// Ingredients for Fake Blood erasequest 14660;// Ingredients for Fake Blood
@ -3345,9 +3345,9 @@ gef_d01_i,81,135,5 script Wizard#ilgf01 4_F_BOMI,5,5,{
close; close;
} }
if (ill_vampire < 12) { if (ill_vampire < 12) {
cloakoffnpc "Dracula#ilgf02", getcharid(0); cloakoffnpcself( "Dracula#ilgf02" );
cloakoffnpc "King#ilgf01", getcharid(0); cloakoffnpcself( "King#ilgf01" );
cloakoffnpc "Wizard#ilgf02", getcharid(0); cloakoffnpcself( "Wizard#ilgf02" );
mes "[Bomi]"; mes "[Bomi]";
mes "I hope you'll find your friend soon. Why don't you check the catacombs in the south? He might be there."; mes "I hope you'll find your friend soon. Why don't you check the catacombs in the south? He might be there.";
close; close;

View File

@ -6168,13 +6168,13 @@ sp_cor,110,130,3 script Elena Volkova#rm171_0 4_F_ELENA,{
mes "Ack, what was that?"; mes "Ack, what was that?";
next; next;
cutin "",255; cutin "",255;
cloakoffnpc "Rebellion#rm171_0", getcharid(0); cloakoffnpcself( "Rebellion#rm171_0" );
mes "[Rebellion]"; mes "[Rebellion]";
mes "Captain, there was another explosion near the facilities!"; mes "Captain, there was another explosion near the facilities!";
mes "That researcher named ^0000CDElyumina^000000 must have done it. We'll go after him right away!"; mes "That researcher named ^0000CDElyumina^000000 must have done it. We'll go after him right away!";
next; next;
cutin "162elena_01",2; cutin "162elena_01",2;
cloakonnpc "Rebellion#rm171_0", getcharid(0); cloakonnpcself( "Rebellion#rm171_0" );
emotion 6; emotion 6;
mes "[Elena Volkova]"; mes "[Elena Volkova]";
mes "So, he knows he can't take us head-on. He's using guerrilla tactics."; mes "So, he knows he can't take us head-on. He's using guerrilla tactics.";
@ -6286,12 +6286,12 @@ sp_cor,180,169,3 script Elena Volkova#rm171_1 4_F_ELENA,{
setquest 16357; setquest 16357;
close3; close3;
} }
cloakoffnpc "Rebellion#rm171_1", getcharid(0); cloakoffnpcself( "Rebellion#rm171_1" );
cloakoffnpc "Rebellion#rm171_2", getcharid(0); cloakoffnpcself( "Rebellion#rm171_2" );
cloakoffnpc "Rebellion#rm171_3", getcharid(0); cloakoffnpcself( "Rebellion#rm171_3" );
cloakoffnpc "Rebellion#rm171_4", getcharid(0); cloakoffnpcself( "Rebellion#rm171_4" );
cloakoffnpc "Rebellion#rm171_5", getcharid(0); cloakoffnpcself( "Rebellion#rm171_5" );
cloakoffnpc "Rebellion#rm171_6", getcharid(0); cloakoffnpcself( "Rebellion#rm171_6" );
cutin "162elena_01",2; cutin "162elena_01",2;
mes "[Elena Volkova]"; mes "[Elena Volkova]";
mes "The area has been closed. The evacuation process is almost complete."; mes "The area has been closed. The evacuation process is almost complete.";
@ -6354,12 +6354,12 @@ sp_cor,180,169,3 script Elena Volkova#rm171_1 4_F_ELENA,{
end; end;
switch (instance_enter("Cor Memorial")) { switch (instance_enter("Cor Memorial")) {
case IE_OK: case IE_OK:
cloakonnpc "Rebellion#rm171_1", getcharid(0); cloakonnpcself( "Rebellion#rm171_1" );
cloakonnpc "Rebellion#rm171_2", getcharid(0); cloakonnpcself( "Rebellion#rm171_2" );
cloakonnpc "Rebellion#rm171_3", getcharid(0); cloakonnpcself( "Rebellion#rm171_3" );
cloakonnpc "Rebellion#rm171_4", getcharid(0); cloakonnpcself( "Rebellion#rm171_4" );
cloakonnpc "Rebellion#rm171_5", getcharid(0); cloakonnpcself( "Rebellion#rm171_5" );
cloakonnpc "Rebellion#rm171_6", getcharid(0); cloakonnpcself( "Rebellion#rm171_6" );
if (isbegin_quest(16355) > 0) if (isbegin_quest(16355) > 0)
erasequest 16355; erasequest 16355;
if (isbegin_quest(16356) > 0) if (isbegin_quest(16356) > 0)
@ -6505,16 +6505,16 @@ sp_cor,136,210,7 script Goni#rm171_1 4_M_GONY,{
mes "..."; mes "...";
next; next;
cutin "16loo_01",2; cutin "16loo_01",2;
cloakoffnpc "Rookie#rm171_1", getcharid(0); cloakoffnpcself( "Rookie#rm171_1" );
cloakoffnpc "Elena Volkova#rm171_2", getcharid(0); cloakoffnpcself( "Elena Volkova#rm171_2" );
cloakoffnpc "Philopontes#rm171_1", getcharid(0); cloakoffnpcself( "Philopontes#rm171_1" );
mes "[Rookie]"; mes "[Rookie]";
mes "Ah, you came early. I thought you'd come later after a break."; mes "Ah, you came early. I thought you'd come later after a break.";
mes "Mr. Lazy, please bring out the prisoner."; mes "Mr. Lazy, please bring out the prisoner.";
next; next;
cutin "16lei_01",2; cutin "16lei_01",2;
cloakoffnpc "Lazy#rm171_1", getcharid(0); cloakoffnpcself( "Lazy#rm171_1" );
cloakoffnpc "Elyumina#rm171_1", getcharid(0); cloakoffnpcself( "Elyumina#rm171_1" );
mes "[Lazy]"; mes "[Lazy]";
mes "Yes, sir. Here he is."; mes "Yes, sir. Here he is.";
mes "It hasn't been that long since we met, and you're already bossing me around."; mes "It hasn't been that long since we met, and you're already bossing me around.";
@ -6540,11 +6540,11 @@ sp_cor,136,210,7 script Goni#rm171_1 4_M_GONY,{
close3; close3;
case 2: case 2:
if (isbegin_quest(16359) < 2) { if (isbegin_quest(16359) < 2) {
cloakoffnpc "Rookie#rm171_1", getcharid(0); cloakoffnpcself( "Rookie#rm171_1" );
cloakoffnpc "Elena Volkova#rm171_2", getcharid(0); cloakoffnpcself( "Elena Volkova#rm171_2" );
cloakoffnpc "Philopontes#rm171_1", getcharid(0); cloakoffnpcself( "Philopontes#rm171_1" );
cloakoffnpc "Lazy#rm171_1", getcharid(0); cloakoffnpcself( "Lazy#rm171_1" );
cloakoffnpc "Elyumina#rm171_1", getcharid(0); cloakoffnpcself( "Elyumina#rm171_1" );
} }
cutin "16go_01",0; cutin "16go_01",0;
mes "[Goni]"; mes "[Goni]";
@ -6691,8 +6691,8 @@ sp_cor,135,216,5 script Rookie#rm171_1 4_M_ROOKIE,{
mes "Now, let's get down to the business, shall we? Please send him here, Mr. Lazy."; mes "Now, let's get down to the business, shall we? Please send him here, Mr. Lazy.";
npctalk "Lazy: Go do your best, Ms. Great Scientist.", "Lazy#rm171_1", bc_self; npctalk "Lazy: Go do your best, Ms. Great Scientist.", "Lazy#rm171_1", bc_self;
next; next;
cloakonnpc "Elyumina#rm171_1", getcharid(0); cloakonnpcself( "Elyumina#rm171_1" );
cloakoffnpc "Elyumina#rm171_2", getcharid(0); cloakoffnpcself( "Elyumina#rm171_2" );
cutin "16lei_01",2; cutin "16lei_01",2;
npctalk "Rookie: ... So... Ah, I see...", "Rookie#rm171_1", bc_self; npctalk "Rookie: ... So... Ah, I see...", "Rookie#rm171_1", bc_self;
mes "[Lazy]"; mes "[Lazy]";
@ -6759,11 +6759,11 @@ sp_cor,135,216,5 script Rookie#rm171_1 4_M_ROOKIE,{
completequest 16359; completequest 16359;
setquest 16360; setquest 16360;
close2; close2;
cloakonnpc "Rookie#rm171_1", getcharid(0); cloakonnpcself( "Rookie#rm171_1" );
cloakonnpc "Elena Volkova#rm171_2", getcharid(0); cloakonnpcself( "Elena Volkova#rm171_2" );
cloakonnpc "Lazy#rm171_1", getcharid(0); cloakonnpcself( "Lazy#rm171_1" );
cloakonnpc "Elyumina#rm171_2", getcharid(0); cloakonnpcself( "Elyumina#rm171_2" );
cloakonnpc "Philopontes#rm171_1", getcharid(0); cloakonnpcself( "Philopontes#rm171_1" );
cutin "",255; cutin "",255;
end; end;
case 2: case 2:
@ -6811,9 +6811,9 @@ sp_cor,255,285,1 script Rookie#rm171_2 4_M_ROOKIE,{
mes " - Your bag is full. Please check your weight and carrying item quantity, and then talk to me again. -"; mes " - Your bag is full. Please check your weight and carrying item quantity, and then talk to me again. -";
close; close;
} }
cloakoffnpc "Goni#rm171_2", getcharid(0); cloakoffnpcself( "Goni#rm171_2" );
cloakoffnpc "Elyumina#rm171_3", getcharid(0); cloakoffnpcself( "Elyumina#rm171_3" );
cloakoffnpc "Elena Volkova#rm171_3", getcharid(0); cloakoffnpcself( "Elena Volkova#rm171_3" );
cutin "16loo_03",2; cutin "16loo_03",2;
emotion 19; emotion 19;
mes "[Rookie]"; mes "[Rookie]";
@ -6899,9 +6899,9 @@ sp_cor,255,285,1 script Rookie#rm171_2 4_M_ROOKIE,{
getexp 0,400000; getexp 0,400000;
getexp 0,400000; getexp 0,400000;
close2; close2;
cloakonnpc "Goni#rm171_2", getcharid(0); cloakonnpcself( "Goni#rm171_2" );
cloakonnpc "Elyumina#rm171_3", getcharid(0); cloakonnpcself( "Elyumina#rm171_3" );
cloakonnpc "Elena Volkova#rm171_3", getcharid(0); cloakonnpcself( "Elena Volkova#rm171_3" );
cutin "",255; cutin "",255;
end; end;
case 2: case 2:
@ -7706,7 +7706,7 @@ sp_cor,113,130,3 script Rebellion#rm171_8 4_M_REBELLION3,{
mes "[Rebellion]"; mes "[Rebellion]";
mes "Mina said you can come back later. It's too early for his lovely children to be up and about."; mes "Mina said you can come back later. It's too early for his lovely children to be up and about.";
next; next;
cloakoffnpc "Elyumina#rm171_4", getcharid(0); cloakoffnpcself( "Elyumina#rm171_4" );
cutin "ep171_elyumina03",0; cutin "ep171_elyumina03",0;
npctalk "Elyumina: S-stop calling me that ridiculous name!", "Elyumina#rm171_4", bc_self; npctalk "Elyumina: S-stop calling me that ridiculous name!", "Elyumina#rm171_4", bc_self;
mes "[Elyumina]"; mes "[Elyumina]";
@ -7731,7 +7731,7 @@ sp_cor,113,130,3 script Rebellion#rm171_8 4_M_REBELLION3,{
npctalk "Mina?", "", bc_self; npctalk "Mina?", "", bc_self;
next; next;
cutin "ep171_elyumina03",0; cutin "ep171_elyumina03",0;
cloakoffnpc "Elyumina#rm171_4", getcharid(0); cloakoffnpcself( "Elyumina#rm171_4" );
npctalk "Elyumina: S-stop calling me that!", "Elyumina#rm171_4", bc_self; npctalk "Elyumina: S-stop calling me that!", "Elyumina#rm171_4", bc_self;
npctalk "You?", "", bc_self; npctalk "You?", "", bc_self;
mes "[Elyumina]"; mes "[Elyumina]";
@ -7789,7 +7789,7 @@ sp_cor,113,130,3 script Rebellion#rm171_8 4_M_REBELLION3,{
mes "It's time Mina's children are up and about, Adventurer."; mes "It's time Mina's children are up and about, Adventurer.";
mes "Do you want to play with them and tuck them back into bed while everyone else waits for you to finish?"; mes "Do you want to play with them and tuck them back into bed while everyone else waits for you to finish?";
next; next;
cloakoffnpc "Elyumina#rm171_4", getcharid(0); cloakoffnpcself( "Elyumina#rm171_4" );
cutin "ep171_elyumina03",0; cutin "ep171_elyumina03",0;
mes "[Elyumina]"; mes "[Elyumina]";
mes "... Soon, my security devices and traps will come out of their low power mode and become mobile again."; mes "... Soon, my security devices and traps will come out of their low power mode and become mobile again.";

View File

@ -1023,7 +1023,7 @@ har_in01,89,26,5 script Johnny James#har_in01 4_M_JOHNNYJAMES,{
setpcblock PCBLOCK_NPC, true; setpcblock PCBLOCK_NPC, true;
npctalk "You sneaky bastards, how dare you show up again? Go to hell!", "", bc_self; npctalk "You sneaky bastards, how dare you show up again? Go to hell!", "", bc_self;
sleep2 2000; sleep2 2000;
cloakoffnpc "Ivoka Skudi#har02", getcharid(0); cloakoffnpcself( "Ivoka Skudi#har02" );
setpcblock PCBLOCK_NPC, false; setpcblock PCBLOCK_NPC, false;
npctalk "Ah, you'd better show some respect to our future mayor.", "Ivoka Skudi#har02", bc_self; npctalk "Ah, you'd better show some respect to our future mayor.", "Ivoka Skudi#har02", bc_self;
mes "[Ivoka Skudi]"; mes "[Ivoka Skudi]";
@ -1212,7 +1212,7 @@ har_in01,88,22,6 script Ivoka Skudi#har02 4_M_EVOKASCUDI,{
mes "[Ivoka Skudi]"; mes "[Ivoka Skudi]";
mes "(Whispering) He's more simpleminded than I thought. Let's go report to the Sheriff."; mes "(Whispering) He's more simpleminded than I thought. Let's go report to the Sheriff.";
close2; close2;
cloakonnpc "Ivoka Skudi#har02", getcharid(0); cloakonnpcself( "Ivoka Skudi#har02" );
end; end;
} }
end; end;
@ -1234,19 +1234,19 @@ rockrdg1,156,312,3 script Unmoving Freight Train# 4_ENERGY_RED,{
setpcblock PCBLOCK_NPC, true; setpcblock PCBLOCK_NPC, true;
unittalk getcharid(3), "" + strcharinfo(0) + " : I think this is the place, but maybe I came too early.", bc_self; unittalk getcharid(3), "" + strcharinfo(0) + " : I think this is the place, but maybe I came too early.", bc_self;
sleep2 2000; sleep2 2000;
cloakoffnpc "Johnny James#revt04", getcharid(0); cloakoffnpcself( "Johnny James#revt04" );
sleep2 1000; sleep2 1000;
emotion ET_QUESTION, getnpcid(0,"Johnny James#revt04"); emotion ET_QUESTION, getnpcid(0,"Johnny James#revt04");
npctalk "Who's this? You're not the one I was expecting.", "Johnny James#revt04", bc_self; npctalk "Who's this? You're not the one I was expecting.", "Johnny James#revt04", bc_self;
sleep2 1000; sleep2 1000;
cloakoffnpc "Albert Ford#revt08", getcharid(0); cloakoffnpcself( "Albert Ford#revt08" );
npctalk "Hey Boss, I told you not to go without me.", "Albert Ford#revt08", bc_self; npctalk "Hey Boss, I told you not to go without me.", "Albert Ford#revt08", bc_self;
sleep2 2000; sleep2 2000;
npctalk "Mm? I don't remember if Costello looks like that.", "Albert Ford#revt08", bc_self; npctalk "Mm? I don't remember if Costello looks like that.", "Albert Ford#revt08", bc_self;
sleep2 2500; sleep2 2500;
npctalk "Hey, I'm having an important meeting here. Scram!", "Johnny James#revt04", bc_self; npctalk "Hey, I'm having an important meeting here. Scram!", "Johnny James#revt04", bc_self;
sleep2 2000; sleep2 2000;
cloakoffnpc "Wyatt Warp#revt03", getcharid(0); cloakoffnpcself( "Wyatt Warp#revt03" );
sleep2 1000; sleep2 1000;
npctalk "Johnny James? You shouldn't be so rude to the Officer.", "Wyatt Warp#revt03", bc_self; npctalk "Johnny James? You shouldn't be so rude to the Officer.", "Wyatt Warp#revt03", bc_self;
sleep2 2500; sleep2 2500;
@ -1277,10 +1277,10 @@ rockrdg1,156,312,3 script Unmoving Freight Train# 4_ENERGY_RED,{
npctalk "What? I haven't even started?", "Johnny James#revt04", bc_self; npctalk "What? I haven't even started?", "Johnny James#revt04", bc_self;
sleep2 500; sleep2 500;
specialeffect 563, AREA, "Johnny James#revt04"; specialeffect 563, AREA, "Johnny James#revt04";
cloakoffnpc "Cactus Gunslinger#revt05", getcharid(0); cloakoffnpcself( "Cactus Gunslinger#revt05" );
cloakoffnpc "Cactus Gunslinger#revt06", getcharid(0); cloakoffnpcself( "Cactus Gunslinger#revt06" );
cloakoffnpc "Cactus Gunslinger#revt07", getcharid(0); cloakoffnpcself( "Cactus Gunslinger#revt07" );
cloakoffnpc "Ivoka Skudi#revt02", getcharid(0); cloakoffnpcself( "Ivoka Skudi#revt02" );
npctalk "Freeze!", "Ivoka Skudi#revt02", bc_self; npctalk "Freeze!", "Ivoka Skudi#revt02", bc_self;
sleep2 1000; sleep2 1000;
specialeffect 453, AREA, "Johnny James#revt04"; specialeffect 453, AREA, "Johnny James#revt04";
@ -1306,7 +1306,7 @@ rockrdg1,156,312,3 script Unmoving Freight Train# 4_ENERGY_RED,{
npctalk "I-I'll go bring the rest of our gang!", "Albert Ford#revt08", bc_self; npctalk "I-I'll go bring the rest of our gang!", "Albert Ford#revt08", bc_self;
sleep2 1000; sleep2 1000;
npctalk "WHAT?", "Johnny James#revt04", bc_self; npctalk "WHAT?", "Johnny James#revt04", bc_self;
cloakonnpc "Albert Ford#revt08", getcharid(0); cloakonnpcself( "Albert Ford#revt08" );
sleep2 1000; sleep2 1000;
npctalk "ALBERT!", "Johnny James#revt04", bc_self; npctalk "ALBERT!", "Johnny James#revt04", bc_self;
sleep2 2000; sleep2 2000;
@ -1329,11 +1329,11 @@ rockrdg1,156,312,3 script Unmoving Freight Train# 4_ENERGY_RED,{
sleep2 1000; sleep2 1000;
npctalk "Guys, let's go!", "Ivoka Skudi#revt02", bc_self; npctalk "Guys, let's go!", "Ivoka Skudi#revt02", bc_self;
sleep2 2000; sleep2 2000;
cloakonnpc "Cactus Gunslinger#revt05", getcharid(0); cloakonnpcself( "Cactus Gunslinger#revt05" );
cloakonnpc "Cactus Gunslinger#revt06", getcharid(0); cloakonnpcself( "Cactus Gunslinger#revt06" );
cloakonnpc "Cactus Gunslinger#revt07", getcharid(0); cloakonnpcself( "Cactus Gunslinger#revt07" );
cloakonnpc "Ivoka Skudi#revt02", getcharid(0); cloakonnpcself( "Ivoka Skudi#revt02" );
cloakonnpc "Johnny James#revt04", getcharid(0); cloakonnpcself( "Johnny James#revt04" );
sleep2 2000; sleep2 2000;
npctalk "Let's go back, shall we?", "Wyatt Warp#revt03", bc_self; npctalk "Let's go back, shall we?", "Wyatt Warp#revt03", bc_self;
rock_main_quest = 6; rock_main_quest = 6;
@ -1367,7 +1367,7 @@ rockrdg1,153,303,5 script Wyatt Warp#revt03 4_M_YATTWARP,{
mes "[Wyatt Warp]"; mes "[Wyatt Warp]";
mes "Let's go back to my office."; mes "Let's go back to my office.";
close2; close2;
cloakonnpc "Wyatt Warp#revt03", getcharid(0); cloakonnpcself( "Wyatt Warp#revt03" );
end; end;
} }
end; end;
@ -1820,14 +1820,14 @@ rockrdg2,279,313,3 script Concaved Rock#revt09 4_ENERGY_RED,{
close; close;
} }
npctalk "Boss? Is that you, Boss?", "Albert Ford#rockrdg2", bc_self; npctalk "Boss? Is that you, Boss?", "Albert Ford#rockrdg2", bc_self;
cloakoffnpc "Albert Ford#rockrdg2", getcharid(0); cloakoffnpcself( "Albert Ford#rockrdg2" );
close; close;
} }
if (rock_main_quest == 14) { if (rock_main_quest == 14) {
if (countitem(25249) < 1) { if (countitem(25249) < 1) {
mes "I knocked on the signaling rock, and Albert Ford came out running."; mes "I knocked on the signaling rock, and Albert Ford came out running.";
npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self; npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self;
cloakoffnpc "Albert Ford#rockrdg2", getcharid(0); cloakoffnpcself( "Albert Ford#rockrdg2" );
close; close;
} }
mes "I don't have to use this right now."; mes "I don't have to use this right now.";
@ -1840,7 +1840,7 @@ rockrdg2,279,313,3 script Concaved Rock#revt09 4_ENERGY_RED,{
} }
mes "I knocked on the signaling rock, and Albert Ford came out running."; mes "I knocked on the signaling rock, and Albert Ford came out running.";
npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self; npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self;
cloakoffnpc "Albert Ford#rockrdg2", getcharid(0); cloakoffnpcself( "Albert Ford#rockrdg2" );
close; close;
} }
if (rock_main_quest == 20) { if (rock_main_quest == 20) {
@ -1850,7 +1850,7 @@ rockrdg2,279,313,3 script Concaved Rock#revt09 4_ENERGY_RED,{
} }
if (countitem(25249) < 1) { if (countitem(25249) < 1) {
mes "I knocked on the signaling rock, and Albert Ford came out running."; mes "I knocked on the signaling rock, and Albert Ford came out running.";
cloakoffnpc "Albert Ford#rockrdg2", getcharid(0); cloakoffnpcself( "Albert Ford#rockrdg2" );
npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self; npctalk "Who are you?!", "Albert Ford#rockrdg2", bc_self;
close; close;
} }
@ -2066,7 +2066,7 @@ rockrdg2,295,309,3 script Albert Ford#rockrdg2 4_M_ALBERTFORD,{
setquest 7803;// Happy for Broken Trust setquest 7803;// Happy for Broken Trust
rock_main_quest = 14; rock_main_quest = 14;
close2; close2;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
end; end;
} }
if (rock_main_quest == 14 && countitem(25249) < 1) { if (rock_main_quest == 14 && countitem(25249) < 1) {
@ -2084,7 +2084,7 @@ rockrdg2,295,309,3 script Albert Ford#rockrdg2 4_M_ALBERTFORD,{
mes "Here, take it."; mes "Here, take it.";
getitem 25249,1;// Mane_Of_Cow getitem 25249,1;// Mane_Of_Cow
close2; close2;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
end; end;
} }
if (rock_main_quest == 20 && checkquest(7807,HUNTING) == 2) { if (rock_main_quest == 20 && checkquest(7807,HUNTING) == 2) {
@ -2096,7 +2096,7 @@ rockrdg2,295,309,3 script Albert Ford#rockrdg2 4_M_ALBERTFORD,{
mes "What? What is it?"; mes "What? What is it?";
mes "Don't call me unless you have something to tell me!"; mes "Don't call me unless you have something to tell me!";
close2; close2;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
end; end;
} }
mes "[Albert Ford]"; mes "[Albert Ford]";
@ -2189,7 +2189,7 @@ rockrdg2,295,309,3 script Albert Ford#rockrdg2 4_M_ALBERTFORD,{
setquest 7808;// Case Solved setquest 7808;// Case Solved
rock_main_quest = 21; rock_main_quest = 21;
close2; close2;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
} }
end; end;
} }
@ -2516,7 +2516,7 @@ rockrdg1,182,124,3 script Suspicious Sand Mound#rremef05 4_ENERGY_RED,15,15,{
getitem 25246,1; // Juice_Package getitem 25246,1; // Juice_Package
setquest 16082; setquest 16082;
completequest 16082; completequest 16082;
cloakonnpc "Suspicious Sand Mound#rremef05", getcharid(0); cloakonnpcself( "Suspicious Sand Mound#rremef05" );
if (countitem("Juice_Package") > 4) { if (countitem("Juice_Package") > 4) {
next; next;
.@name$ = strcharinfo(0); .@name$ = strcharinfo(0);
@ -2532,9 +2532,9 @@ rockrdg1,182,124,3 script Suspicious Sand Mound#rremef05 4_ENERGY_RED,15,15,{
close; close;
OnTouch: OnTouch:
if (checkquest(16078,HUNTING) != 0 && checkquest(16078,HUNTING) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16082) == 2) if (checkquest(16078,HUNTING) != 0 && checkquest(16078,HUNTING) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16082) == 2)
cloakonnpc "Suspicious Sand Mound#rremef05", getcharid(0); cloakonnpcself( "Suspicious Sand Mound#rremef05" );
else else
cloakoffnpc "Suspicious Sand Mound#rremef05", getcharid(0); cloakoffnpcself( "Suspicious Sand Mound#rremef05" );
end; end;
OnInit: OnInit:
cloakonnpc(); cloakonnpc();
@ -2564,7 +2564,7 @@ rockrdg1,286,247,3 script Suspicious Sand Mound#rremef06 4_ENERGY_RED,15,15,{
getitem 25246,1; // Juice_Package getitem 25246,1; // Juice_Package
setquest .@quest_id; setquest .@quest_id;
completequest .@quest_id; completequest .@quest_id;
cloakonnpc .@npc_name$, getcharid(0); cloakonnpcself( .@npc_name$ );
if (countitem("Juice_Package") > 4) { if (countitem("Juice_Package") > 4) {
next; next;
.@name$ = strcharinfo(0); .@name$ = strcharinfo(0);
@ -2584,7 +2584,7 @@ rockrdg1,286,247,3 script Suspicious Sand Mound#rremef06 4_ENERGY_RED,15,15,{
mes "- It's not usable. I'll just have to leave it and look for another one. -"; mes "- It's not usable. I'll just have to leave it and look for another one. -";
setquest .@quest_id; setquest .@quest_id;
completequest .@quest_id; completequest .@quest_id;
cloakonnpc strnpcinfo(0), getcharid(0); cloakonnpcself();
close; close;
S_Quest: S_Quest:
@ -2608,9 +2608,9 @@ OnTouch:
.@quest_id = callsub( S_Quest ); .@quest_id = callsub( S_Quest );
.@npc_name$ = callsub( S_Name ); .@npc_name$ = callsub( S_Name );
if (checkquest(16078,HUNTING) != 0 && checkquest(16078,HUNTING) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(.@quest_id) == 2) if (checkquest(16078,HUNTING) != 0 && checkquest(16078,HUNTING) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(.@quest_id) == 2)
cloakonnpc .@npc_name$, getcharid(0); cloakonnpcself( .@npc_name$ );
else else
cloakoffnpc .@npc_name$, getcharid(0); cloakoffnpcself( .@npc_name$ );
end; end;
OnInit: OnInit:
@ -2702,7 +2702,7 @@ rockrdg1,146,164,1 script Wasteland Cactuten#rremef01 4_ENERGY_RED,15,15,{
getitem 25246,1;// Juice_Package getitem 25246,1;// Juice_Package
setquest 16083;// Discovered Wasteland Cactuten setquest 16083;// Discovered Wasteland Cactuten
erasequest 16083;// Discovered Wasteland Cactuten erasequest 16083;// Discovered Wasteland Cactuten
cloakonnpc "Wasteland Cactuten#rremef01", getcharid(0); cloakonnpcself( "Wasteland Cactuten#rremef01" );
if (countitem(25246) > 4) { if (countitem(25246) > 4) {
next; next;
mes "[" + .@player_name$ + "]"; mes "[" + .@player_name$ + "]";
@ -2722,9 +2722,9 @@ rockrdg1,146,164,1 script Wasteland Cactuten#rremef01 4_ENERGY_RED,15,15,{
OnTouch: OnTouch:
if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16083) > 1) if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16083) > 1)
cloakonnpc "Wasteland Cactuten#rremef01", getcharid(0); cloakonnpcself( "Wasteland Cactuten#rremef01" );
else else
cloakoffnpc "Wasteland Cactuten#rremef01", getcharid(0); cloakoffnpcself( "Wasteland Cactuten#rremef01" );
end; end;
OnInit: OnInit:
@ -2737,9 +2737,9 @@ rockrdg1,195,183,3 script Curious Coyote#rremef03 4_ENERGY_RED,15,15,{
end; end;
OnTouch: OnTouch:
if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16085) > 1) if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16085) > 1)
cloakonnpc "Curious Coyote#rremef03", getcharid(0); cloakonnpcself( "Curious Coyote#rremef03" );
else else
cloakoffnpc "Curious Coyote#rremef03", getcharid(0); cloakoffnpcself( "Curious Coyote#rremef03" );
end; end;
OnInit: OnInit:
cloakonnpc(); cloakonnpc();
@ -2770,7 +2770,7 @@ OnTouch:
getitem 25246,1;// Juice_Package getitem 25246,1;// Juice_Package
setquest 16085;// Discovered Coyote setquest 16085;// Discovered Coyote
completequest 16085;// Discovered Coyote completequest 16085;// Discovered Coyote
cloakonnpc "Curious Coyote#rremef03", getcharid(0); cloakonnpcself( "Curious Coyote#rremef03" );
if (countitem(25246) > 4) { if (countitem(25246) > 4) {
next; next;
mes "[" + .@player_name$ + "]"; mes "[" + .@player_name$ + "]";
@ -2843,7 +2843,7 @@ rockrdg1,305,200,3 script Cactus Girl#rremef02 4_ENERGY_RED,15,15,{
getitem 25246,1;// Juice_Package getitem 25246,1;// Juice_Package
setquest 16087;// Discovered Cactus Girl setquest 16087;// Discovered Cactus Girl
completequest 16087;// Discovered Cactus Girl completequest 16087;// Discovered Cactus Girl
cloakonnpc "Cactus Girl#rremef02", getcharid(0); cloakonnpcself( "Cactus Girl#rremef02" );
if (countitem(25246) > 4) { if (countitem(25246) > 4) {
next; next;
mes "[" + .@player_name$ + "]"; mes "[" + .@player_name$ + "]";
@ -2865,9 +2865,9 @@ rockrdg1,305,200,3 script Cactus Girl#rremef02 4_ENERGY_RED,15,15,{
OnTouch: OnTouch:
if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16087) > 1) if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16087) > 1)
cloakonnpc "Cactus Girl#rremef02", getcharid(0); cloakonnpcself( "Cactus Girl#rremef02" );
else else
cloakoffnpc "Cactus Girl#rremef02", getcharid(0); cloakoffnpcself( "Cactus Girl#rremef02" );
end; end;
OnInit: OnInit:
@ -2880,9 +2880,9 @@ rockrdg1,266,219,3 script Absorbed Coyote#rremef04 4_ENERGY_RED,15,15,{
end; end;
OnTouch: OnTouch:
if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16088) > 1) if (isbegin_quest(16078) != 1 || countitem("Juice_Package") > 4 || isbegin_quest(16088) > 1)
cloakonnpc "Absorbed Coyote#rremef04", getcharid(0); cloakonnpcself( "Absorbed Coyote#rremef04" );
else else
cloakoffnpc "Absorbed Coyote#rremef04", getcharid(0); cloakoffnpcself( "Absorbed Coyote#rremef04" );
end; end;
OnInit: OnInit:
cloakonnpc(); cloakonnpc();
@ -2913,7 +2913,7 @@ OnTouch:
getitem 25246,1;// Juice_Package getitem 25246,1;// Juice_Package
setquest 16088;// Discovered Coyote setquest 16088;// Discovered Coyote
completequest 16088;// Discovered Coyote completequest 16088;// Discovered Coyote
cloakonnpc "Absorbed Coyote#rremef04", getcharid(0); cloakonnpcself( "Absorbed Coyote#rremef04" );
if (countitem(25246) > 4) { if (countitem(25246) > 4) {
next; next;
mes "[" + .@player_name$ + "]"; mes "[" + .@player_name$ + "]";
@ -5162,16 +5162,16 @@ rockrdg1,36,250,5 script Mr. McPhy#rkdlout 4W_M_02,{
next; next;
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
mes "But he couldn't have gone too far because he came back to me pretty quickly. Why don't you walk along the fence and look for holes with white hair floating around them?"; mes "But he couldn't have gone too far because he came back to me pretty quickly. Why don't you walk along the fence and look for holes with white hair floating around them?";
cloakoffnpc "#rkq1321", getcharid(0); cloakoffnpcself( "#rkq1321" );
cloakoffnpc "#rkdqgd11", getcharid(0); cloakoffnpcself( "#rkdqgd11" );
cloakoffnpc "#rkdqgd22", getcharid(0); cloakoffnpcself( "#rkdqgd22" );
cloakoffnpc "#rkdqgd33", getcharid(0); cloakoffnpcself( "#rkdqgd33" );
close; close;
} }
if (isbegin_quest(1322) == 1 || isbegin_quest(1328) == 1) { if (isbegin_quest(1322) == 1 || isbegin_quest(1328) == 1) {
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
mes "Did you find something? Then let's go back!"; mes "Did you find something? Then let's go back!";
cloakonnpc "Mr. McPhy#rkdlout", getcharid(0); cloakonnpcself( "Mr. McPhy#rkdlout" );
close; close;
} }
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
@ -5179,15 +5179,15 @@ rockrdg1,36,250,5 script Mr. McPhy#rkdlout 4W_M_02,{
next; next;
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
mes "Oh, right! Spotty has been shedding a lot lately. Maybe you should look for holes with white hair floating around them."; mes "Oh, right! Spotty has been shedding a lot lately. Maybe you should look for holes with white hair floating around them.";
cloakoffnpc "#rkq1321", getcharid(0); cloakoffnpcself( "#rkq1321" );
cloakoffnpc "#rkq1323", getcharid(0); cloakoffnpcself( "#rkq1323" );
cloakoffnpc "#rkq1324", getcharid(0); cloakoffnpcself( "#rkq1324" );
cloakoffnpc "#rkq1325", getcharid(0); cloakoffnpcself( "#rkq1325" );
cloakoffnpc "#rkq1326", getcharid(0); cloakoffnpcself( "#rkq1326" );
cloakoffnpc "#rkq1327", getcharid(0); cloakoffnpcself( "#rkq1327" );
cloakoffnpc "#rkdqgd11", getcharid(0); cloakoffnpcself( "#rkdqgd11" );
cloakoffnpc "#rkdqgd22", getcharid(0); cloakoffnpcself( "#rkdqgd22" );
cloakoffnpc "#rkdqgd33", getcharid(0); cloakoffnpcself( "#rkdqgd33" );
next; next;
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
mes "And he doesn't seem to venture out too far. It's probably because he's still young. I've marked three possible locations in the middle of your map. You don't have to look further than those locations."; mes "And he doesn't seem to venture out too far. It's probably because he's still young. I've marked three possible locations in the middle of your map. You don't have to look further than those locations.";
@ -5209,7 +5209,7 @@ rockrdg1,36,250,5 script Mr. McPhy#rkdlout 4W_M_02,{
} }
mes "[Mr. McPhy]"; mes "[Mr. McPhy]";
mes "*Gasp* Buffalo Bandits!"; mes "*Gasp* Buffalo Bandits!";
cloakonnpc "Mr. McPhy#rkdlout", getcharid(0); cloakonnpcself( "Mr. McPhy#rkdlout" );
close; close;
OnInit: OnInit:
@ -5274,10 +5274,10 @@ rockrdg1,43,145,3 script Hole#rkq1321 4_CRACK,{
mes "I should take it with me for now. -"; mes "I should take it with me for now. -";
completequest 1321; completequest 1321;
setquest 1322;// Found Something setquest 1322;// Found Something
cloakonnpc "#rkq1321", getcharid(0); cloakonnpcself( "#rkq1321" );
cloakonnpc "#rkdqgd11", getcharid(0); cloakonnpcself( "#rkdqgd11" );
cloakonnpc "#rkdqgd22", getcharid(0); cloakonnpcself( "#rkdqgd22" );
cloakonnpc "#rkdqgd33", getcharid(0); cloakonnpcself( "#rkdqgd33" );
close; close;
} }
mes "It has something inside it. -"; mes "It has something inside it. -";
@ -5285,15 +5285,15 @@ rockrdg1,43,145,3 script Hole#rkq1321 4_CRACK,{
mes "- This must be what Mr. McPhy is looking for. I should bring it to her. -"; mes "- This must be what Mr. McPhy is looking for. I should bring it to her. -";
erasequest .@list[.@i]; erasequest .@list[.@i];
setquest 1328;// Found Missing Items setquest 1328;// Found Missing Items
cloakonnpc "#rkq1321", getcharid(0); cloakonnpcself( "#rkq1321" );
cloakonnpc "#rkq1323", getcharid(0); cloakonnpcself( "#rkq1323" );
cloakonnpc "#rkq1324", getcharid(0); cloakonnpcself( "#rkq1324" );
cloakonnpc "#rkq1325", getcharid(0); cloakonnpcself( "#rkq1325" );
cloakonnpc "#rkq1326", getcharid(0); cloakonnpcself( "#rkq1326" );
cloakonnpc "#rkq1327", getcharid(0); cloakonnpcself( "#rkq1327" );
cloakonnpc "#rkdqgd11", getcharid(0); cloakonnpcself( "#rkdqgd11" );
cloakonnpc "#rkdqgd22", getcharid(0); cloakonnpcself( "#rkdqgd22" );
cloakonnpc "#rkdqgd33", getcharid(0); cloakonnpcself( "#rkdqgd33" );
close; close;
} }
switch( .@list[.@i] ) { switch( .@list[.@i] ) {