prontera,157,190,4[TAB]script[TAB]GardenEntrance[TAB]793,{
OnInit:
set .@garden$,maze // <Customizable>
set .@x,50; // <Customizable>
set .@y,55; // <Customizable>
set .playersmax,15; // <Customizable>
set .playersin,0;
disablenpc "Garden Entrance";
end;
if(gettime(4)==6) && (gettime(3)==12) {
enablenpc "Garden Entrance";
Announce "The Mystical Gate of the Secret Garden has opened! Fifteen players may enter.",bc_all || bc_blue;
mes "Rumor has it that there was once an ancient secret garden located near prontera!";
if(countitem(7559) < 1) close;
next;
mes "I see that you have the key... Very well, since you have the key, I can warp you to the gate.";
next;
mes "Do you want me to? Only [" + .playersmax - .playersin + "] can enter.";
next;
if(select("Yes:No") == 2) close;
if(.playersin == .playersmax)
{ mes "Sorry the max players has been reached.";
} else {
warp ".@garden$",.@x,.@y;
set .playersin,.playersin + 1;
close;
}
} else {
disablenpc "Garden Entrance";
}
maze,60,60,4 script Ancient Hero of the Garden 793,{
OnInit:
set .@spawn,1902; // <Customizable>
set .@garden$,maze // <Customizable>
disablenpc "Ancient Hero of the Garden";
end;
if(getmapusers(maze) == 15) {
monster "maze",0,0,"Treasure of the Secret Garden",.@spawn,10,"Ancient Hero of the Garden::L_MDeath";
} else { end; }
if(getmapmobs(.@spawn) == 0) {
mes "I see you have found the treasure ...";
next;
if(.@first == 1 ) { goto L_First; }
else if(.@second == 1 ) { goto L_Second; }
else if(.@third == 1 ) { goto L_Third; }
else if(.@rand > 3) { mes "I see that you did not get the sacred mark of the treasure..."; }
end;
L_First:
mes "Wow... You got the ultimate mark of the treasure ...";
next;
mes "I believe this is yours then...";
getitem 2862;
set zeny, zeny + 100000;
close;
L_Second:
mes "Wow... You got the legendary mark of the treasure ...";
next;
mes "I believe this is yours then...";
getitem 5682;
set zeny, zeny + 50000;
close;
L_Third:
mes "Wow... You got the holy mark of the treasure ...";
next;
mes "I believe this is yours then...";
set zeny, zeny + 20000;
close;
L_MDeath:
set .@rand, rand(1,15);
if(.@rand == 1) { set .@first,1; }
else if(.@rand == 2) { set .@second,1; }
else if(.@rand == 3) { set .@third,1; }
else if(.@rand > 3) { end; }
Question
manabeast
Reply to Arcencial.
Sorry, will avoid next time. and thank you.

Edited by manabeastCodeboxed
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.