- Fixed check quest in Brasilis puppy quest. bugreport:5376

- An little update to the new script command "instance_check_party" in script_commands.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16136 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
masao87 2012-05-21 17:04:23 +00:00
parent 5b9994b9ec
commit c3bbe80dae
2 changed files with 302 additions and 471 deletions

View File

@ -1,4 +1,4 @@
//===== Athena Doc =========================================== //===== rAthena Doc ===========================================
//= rAthena Script Commands //= rAthena Script Commands
//===== By: ================================================== //===== By: ==================================================
//= rAthena Dev Team //= rAthena Dev Team
@ -7152,7 +7152,6 @@ amount : Amount of needed Partymembers for the Instance. [Optional Parameter]
min : Minimum Level needed to join the Instance. [Optional Parameter] min : Minimum Level needed to join the Instance. [Optional Parameter]
max : Maxium Level allowed to join the Instance. [Optional Parameter] max : Maxium Level allowed to join the Instance. [Optional Parameter]
If no Party ID is given the party of the currently attached player will be used.
If no amount is given the Memorial Dungeon will of course at least need 1 Player to enter. If no amount is given the Memorial Dungeon will of course at least need 1 Player to enter.
If no min Level requirement is given, the Player has at least to be Level 1 to enter the Memorial Dungeon. If no min Level requirement is given, the Player has at least to be Level 1 to enter the Memorial Dungeon.
If no max Level requirement is given, every Player can enter which is not above your Max. Level setting in the configuration files of your Server. If no max Level requirement is given, every Player can enter which is not above your Max. Level setting in the configuration files of your Server.

View File

@ -22,60 +22,50 @@
// Lost Puppies, Original file: dogdog.sc // Lost Puppies, Original file: dogdog.sc
//============================================================ //============================================================
brasilis,297,307,5 script Angelo#br 50,{ brasilis,297,307,5 script Angelo#br 50,{
set .@pongku,checkquest(9032,PLAYTIME);
set .@br1,checkquest(9030);
set .@br2,checkquest(9031);
if (BaseLevel < 40) { if (BaseLevel < 40) {
mes "[Angelo]"; mes "[Angelo]";
mes "Pets went out the village~!!"; mes "Pets went out the village~!!";
mes "Gosh... what can I do... ?"; mes "Gosh... what can I do... ?";
close; close;
} }
else { if (checkquest(9032,PLAYTIME) == 2) {
if ((.@pongku == 0) || (.@pongku == 1)) { erasequest 9032;
}
if (checkquest(9032,PLAYTIME) == 0) {
mes "[Angelo]"; mes "[Angelo]";
mes "The day is not finished yet."; mes "The day is not finished yet.";
mes "You can only help once a day. Hehe."; mes "You can only help once a day. Hehe.";
close; close;
} }
else { if (checkquest(9030) == 1) {
if (checkquest(9032) > -1) erasequest 9032;
if ((.@br1 == 0) || (.@br1 == 1)) {
mes "[Angelo]"; mes "[Angelo]";
mes "My pets are in the field outside of the village."; mes "My pets are in the field outside of the village.";
mes "Why did they leave? Please find them."; mes "Why did they leave? Please find them.";
close; close;
} }
else { if (checkquest(9031) == 1) {
if ((.@br2 == 0) || (.@br2 == 1)) {
mes "[Angelo]"; mes "[Angelo]";
mes "Oh, thank you. You found all of 3 puppies."; mes "Oh, thank you. You found all of 3 puppies.";
mes "Thanks a lot."; mes "Thanks a lot.";
mes "I hope this is useful to you. hoho."; mes "I hope this is useful to you. hoho.";
getexp 500000,0; getexp 50000,0;
erasequest 9031; erasequest 9031;
setquest 9032; setquest 9032;
set .@bosang,rand(1,10); set .@rand,rand(1,10);
if (.@bosang < 5) { if (.@rand < 5) {
specialeffect2 EF_ASSUMPTIO; specialeffect2 EF_ASSUMPTIO;
percentheal 100,100; //ConsumeSpecialItem Yggdrasilberry
//ConsumeSpecialItem Yggdrasilberry } else if (.@rand < 9) {
}
else if (.@bosang < 9) {
specialeffect2 EF_ASSUMPTIO; specialeffect2 EF_ASSUMPTIO;
//ConsumeSpecialItem Yggdrasilberry //ConsumeSpecialItem Yggdrasilberry
percentheal 100,100;
getitem 504,2; //White_Potion getitem 504,2; //White_Potion
} } else {
else {
specialeffect2 EF_ASSUMPTIO; specialeffect2 EF_ASSUMPTIO;
//ConsumeSpecialItem Yggdrasilberry //ConsumeSpecialItem Yggdrasilberry
percentheal 100,100;
getitem 608,1; //Seed_Of_Yggdrasil getitem 608,1; //Seed_Of_Yggdrasil
} }
close; close;
} }
else {
mes "[Angelo]"; mes "[Angelo]";
mes "Are you an adventurer? You came here right on time."; mes "Are you an adventurer? You came here right on time.";
mes "Puppies have been disappearing."; mes "Puppies have been disappearing.";
@ -86,11 +76,6 @@ brasilis,297,307,5 script Angelo#br 50,{
mes "You have to find ^0000FF3 puppies^000000."; mes "You have to find ^0000FF3 puppies^000000.";
setquest 9030; setquest 9030;
close; close;
}
}
}
}
end;
OnInit: OnInit:
initnpctimer; initnpctimer;
@ -98,19 +83,17 @@ OnInit:
OnTimer10000: OnTimer10000:
stopnpctimer; stopnpctimer;
donpcevent "Angelo#br::Ongo"; donpcevent "Angelo#br::OnGo";
end; end;
Ongo: OnGo:
emotion e_gasp; emotion e_gasp;
initnpctimer; initnpctimer;
end; end;
} }
//Puppya1
bra_fild01,98,96,3 script Puppy#a1 81,{ bra_fild01,98,96,3 script Puppy#a1 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -123,60 +106,46 @@ bra_fild01,98,96,3 script Puppy#a1 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a2::OnEnable"; donpcevent "Puppy#a2::OnEnable";
disablenpc "Puppy#a1"; hideonnpc "Puppy#a1";
} } else {
else {
donpcevent "Puppy#a3::OnEnable"; donpcevent "Puppy#a3::OnEnable";
disablenpc "Puppy#a1"; hideonnpc "Puppy#a1";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a2::OnEnable"; donpcevent "Puppy#a2::OnEnable";
disablenpc "Puppy#a1"; hideonnpc "Puppy#a1";
} } else {
else {
donpcevent "Puppy#a3::OnEnable"; donpcevent "Puppy#a3::OnEnable";
disablenpc "Puppy#a1"; hideonnpc "Puppy#a1";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnEnable: OnEnable:
enablenpc "Puppy#a1"; hideoffnpc "Puppy#a1";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#a1"; hideonnpc "Puppy#a1";
end; end;
} }
//Puppya2
bra_fild01,59,116,5 script Puppy#a2 81,{ bra_fild01,59,116,5 script Puppy#a2 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
set name,strcharinfo(0);
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -189,63 +158,50 @@ bra_fild01,59,116,5 script Puppy#a2 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a1::OnEnable"; donpcevent "Puppy#a1::OnEnable";
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
} } else {
else {
donpcevent "Puppy#a3::OnEnable"; donpcevent "Puppy#a3::OnEnable";
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a1::OnEnable"; donpcevent "Puppy#a1::OnEnable";
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
} } else {
else {
donpcevent "Puppy#a3::OnEnable"; donpcevent "Puppy#a3::OnEnable";
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#a2"; hideoffnpc "Puppy#a2";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#a2"; hideonnpc "Puppy#a2";
end; end;
} }
//Puppya3
bra_fild01,62,142,3 script Puppy#a3 81,{ bra_fild01,62,142,3 script Puppy#a3 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -258,63 +214,50 @@ bra_fild01,62,142,3 script Puppy#a3 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a1::OnEnable"; donpcevent "Puppy#a1::OnEnable";
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
} } else {
else {
donpcevent "Puppy#a2::OnEnable"; donpcevent "Puppy#a2::OnEnable";
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#a1::OnEnable"; donpcevent "Puppy#a1::OnEnable";
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
} } else {
else {
donpcevent "Puppy#a2::OnEnable"; donpcevent "Puppy#a2::OnEnable";
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#a3"; hideoffnpc "Puppy#a3";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#a3"; hideonnpc "Puppy#a3";
end; end;
} }
//Puppy b1
bra_fild01,80,163,3 script Puppy#b1 81,{ bra_fild01,80,163,3 script Puppy#b1 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -327,59 +270,46 @@ bra_fild01,80,163,3 script Puppy#b1 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b2::OnEnable"; donpcevent "Puppy#b2::OnEnable";
disablenpc "Puppy#b1"; hideonnpc "Puppy#b1";
} } else {
else {
donpcevent "Puppy#b3::OnEnable"; donpcevent "Puppy#b3::OnEnable";
disablenpc "Puppy#b1"; hideonnpc "Puppy#b1";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b2::OnEnable"; donpcevent "Puppy#b2::OnEnable";
disablenpc "Puppy#b1"; hideonnpc "Puppy#b1";
} } else {
else {
donpcevent "Puppy#b3::OnEnable"; donpcevent "Puppy#b3::OnEnable";
disablenpc "Puppy#b1"; hideonnpc "Puppy#b1";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnEnable: OnEnable:
enablenpc "Puppy#b1"; hideoffnpc "Puppy#b1";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#b1"; hideonnpc "Puppy#b1";
end; end;
} }
//Puppy b2
bra_fild01,73,210,3 script Puppy#b2 81,{ bra_fild01,73,210,3 script Puppy#b2 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -392,63 +322,50 @@ bra_fild01,73,210,3 script Puppy#b2 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b1::OnEnable"; donpcevent "Puppy#b1::OnEnable";
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
} } else {
else {
donpcevent "Puppy#b3::OnEnable"; donpcevent "Puppy#b3::OnEnable";
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b1::OnEnable"; donpcevent "Puppy#b1::OnEnable";
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
} } else {
else {
donpcevent "Puppy#b3::OnEnable"; donpcevent "Puppy#b3::OnEnable";
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#b2"; hideoffnpc "Puppy#b2";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#b2"; hideonnpc "Puppy#b2";
end; end;
} }
//Puppy b3
bra_fild01,80,210,3 script Puppy#b3 81,{ bra_fild01,80,210,3 script Puppy#b3 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -461,63 +378,50 @@ bra_fild01,80,210,3 script Puppy#b3 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b1::OnEnable"; donpcevent "Puppy#b1::OnEnable";
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
} } else {
else {
donpcevent "Puppy#b2::OnEnable"; donpcevent "Puppy#b2::OnEnable";
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#b1::OnEnable"; donpcevent "Puppy#b1::OnEnable";
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
} } else {
else {
donpcevent "Puppy#b2::OnEnable"; donpcevent "Puppy#b2::OnEnable";
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#b3"; hideoffnpc "Puppy#b3";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#b3"; hideonnpc "Puppy#b3";
end; end;
} }
//Puppyc1
bra_fild01,38,235,3 script Puppy#c1 81,{ bra_fild01,38,235,3 script Puppy#c1 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -530,59 +434,48 @@ bra_fild01,38,235,3 script Puppy#c1 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); set rand(1,2), rand(1,2);
if (.@pk == 1) { if (rand(1,2) == 1) {
donpcevent "Puppy#c2::OnEnable"; donpcevent "Puppy#c2::OnEnable";
disablenpc "Puppy#c1"; hideonnpc "Puppy#c1";
} } else {
else {
donpcevent "Puppy#c3::OnEnable"; donpcevent "Puppy#c3::OnEnable";
disablenpc "Puppy#c1"; hideonnpc "Puppy#c1";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); set rand(1,2), rand(1,2);
if (.@pk == 1) { if (rand(1,2) == 1) {
donpcevent "Puppy#c2::OnEnable"; donpcevent "Puppy#c2::OnEnable";
disablenpc "Puppy#c1"; hideonnpc "Puppy#c1";
} } else {
else {
donpcevent "Puppy#c3::OnEnable"; donpcevent "Puppy#c3::OnEnable";
disablenpc "Puppy#c1"; hideonnpc "Puppy#c1";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnEnable: OnEnable:
enablenpc "Puppy#c1"; hideoffnpc "Puppy#c1";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#c1"; hideonnpc "Puppy#c1";
end; end;
} }
//Puppy c2
bra_fild01,307,64,3 script Puppy#c2 81,{ bra_fild01,307,64,3 script Puppy#c2 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -595,63 +488,51 @@ bra_fild01,307,64,3 script Puppy#c2 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#c1::OnEnable"; donpcevent "Puppy#c1::OnEnable";
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
} } else {
else {
donpcevent "Puppy#c3::OnEnable"; donpcevent "Puppy#c3::OnEnable";
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); set rand(1,2), rand(1,2);
if (.@pk == 1) { if (rand(1,2) == 1) {
donpcevent "Puppy#c1::OnEnable"; donpcevent "Puppy#c1::OnEnable";
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
} } else {
else {
donpcevent "Puppy#c3::OnEnable"; donpcevent "Puppy#c3::OnEnable";
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#c2"; hideoffnpc "Puppy#c2";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#c2"; hideonnpc "Puppy#c2";
end; end;
} }
//Puppy c3
bra_fild01,260,60,3 script Puppy#c3 81,{ bra_fild01,260,60,3 script Puppy#c3 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -664,62 +545,50 @@ bra_fild01,260,60,3 script Puppy#c3 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#c1::OnEnable"; donpcevent "Puppy#c1::OnEnable";
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
} } else {
else {
donpcevent "Puppy#c2::OnEnable"; donpcevent "Puppy#c2::OnEnable";
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#c1::OnEnable"; donpcevent "Puppy#c1::OnEnable";
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
} } else {
else {
donpcevent "Puppy#c2::OnEnable"; donpcevent "Puppy#c2::OnEnable";
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#c3"; hideoffnpc "Puppy#c3";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#c3"; hideonnpc "Puppy#c3";
end; end;
} }
//Puppyd1
bra_fild01,234,101,3 script Puppy#d1 81,{ bra_fild01,234,101,3 script Puppy#d1 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -732,59 +601,46 @@ bra_fild01,234,101,3 script Puppy#d1 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d2::OnEnable"; donpcevent "Puppy#d2::OnEnable";
disablenpc "Puppy#d1"; hideonnpc "Puppy#d1";
} } else {
else {
donpcevent "Puppy#d3::OnEnable"; donpcevent "Puppy#d3::OnEnable";
disablenpc "Puppy#d1"; hideonnpc "Puppy#d1";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d2::OnEnable"; donpcevent "Puppy#d2::OnEnable";
disablenpc "Puppy#d1"; hideonnpc "Puppy#d1";
} } else {
else {
donpcevent "Puppy#d3::OnEnable"; donpcevent "Puppy#d3::OnEnable";
disablenpc "Puppy#d1"; hideonnpc "Puppy#d1";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnEnable: OnEnable:
enablenpc "Puppy#d1"; hideoffnpc "Puppy#d1";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#d1"; hideonnpc "Puppy#d1";
end; end;
} }
//Puppy d2
bra_fild01,200,84,3 script Puppy#d2 81,{ bra_fild01,200,84,3 script Puppy#d2 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -797,63 +653,50 @@ bra_fild01,200,84,3 script Puppy#d2 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d1::OnEnable"; donpcevent "Puppy#d1::OnEnable";
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
} } else {
else {
donpcevent "Puppy#d3::OnEnable"; donpcevent "Puppy#d3::OnEnable";
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d1::OnEnable"; donpcevent "Puppy#d1::OnEnable";
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
} } else {
else {
donpcevent "Puppy#d3::OnEnable"; donpcevent "Puppy#d3::OnEnable";
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#d2"; hideoffnpc "Puppy#d2";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#d2"; hideonnpc "Puppy#d2";
end; end;
} }
//Puppy d3
bra_fild01,176,63,5 script Puppy#d3 81,{ bra_fild01,176,63,5 script Puppy#d3 81,{
set .@br1,checkquest(9030); if (checkquest(9030) == 1) {
if ((.@br1 == 0) || (.@br1 == 1)) {
if (brazil_kid < 3) { if (brazil_kid < 3) {
mes "[Puppy]"; mes "[Puppy]";
mes "bow wow bow wow!!"; mes "bow wow bow wow!!";
@ -866,56 +709,45 @@ bra_fild01,176,63,5 script Puppy#d3 81,{
set brazil_kid,0; set brazil_kid,0;
erasequest 9030; erasequest 9030;
setquest 9031; setquest 9031;
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d1::OnEnable"; donpcevent "Puppy#d1::OnEnable";
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
} } else {
else {
donpcevent "Puppy#d2::OnEnable"; donpcevent "Puppy#d2::OnEnable";
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
} }
close; close;
} }
else {
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "Ah... who's a good puppy?"; mes "Ah... who's a good puppy?";
mes "Ok, where are the others?"; mes "Ok, where are the others?";
set .@pk,rand(1,2); if (rand(1,2) == 1) {
if (.@pk == 1) {
donpcevent "Puppy#d1::OnEnable"; donpcevent "Puppy#d1::OnEnable";
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
} } else {
else {
donpcevent "Puppy#d2::OnEnable"; donpcevent "Puppy#d2::OnEnable";
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
}
} }
close; close;
} }
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
} }
}
else {
mes "[Puppy]"; mes "[Puppy]";
mes "bow! wow wow!"; mes "bow! wow wow!";
close; close;
}
end;
OnInit: OnInit:
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
end; end;
OnEnable: OnEnable:
enablenpc "Puppy#d3"; hideoffnpc "Puppy#d3";
end; end;
OnDisable: OnDisable:
disablenpc "Puppy#d3"; hideonnpc "Puppy#d3";
end; end;
} }