Jump to content

Help! - Novice vs Zombie


Recommended Posts


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

 Dati na akong gumawa ng private sever way way back 2014. Ngayun gumagawa ulit ako. Ang dami ko nang nakalimutan. Anyway na refreshed naman na ako kahit papano. Halos bumalik na yung mga iilang knowledge ko sa pag gawa ng server. Anyway ang problem k ngayun is about this script i found in my old ragna files way way back 2014. Ngayun ko halos nakikitaan ng loophole yung mga na grab kong script sa rathena/hercules and midgard community. Di ko na maalala yung ibang site.

 

Anyway this is about Novice VS Zombie na auto event every hour. Ito yung script.

 

-	script	announce_nvz	-1,{

OnClock0030:
OnClock0130:
OnClock0230:
OnClock0330:	
OnClock0530:
OnClock0630:
OnClock0730:
OnClock0830:
OnClock0930:
OnClock1030:
OnClock1131:
OnClock1230:
OnClock1330:
OnClock1430:
OnClock1530:
OnClock1630:
OnClock1730:
OnClock1830:
OnClock1930:
OnClock2030:
OnClock2130:
OnClock2230:
OnClock2330:
if(agitcheck() == 1) end;


announce "The Novice Vs. Zombie Event will begin in 3 minutes.",0;
killmonsterall "quiz_01","All";
sleep 5000;
announce "The NPC 'Novice vs. Zombie' has appeared in Prontera!",0;
enablenpc "Novice vs. Zombie";
sleep 55000;
announce "Event: Novice Vs. Zombie will begin in 2 minutes. You better get ready!",0;
sleep 60000;
announce "Event: Novice Vs. Zombie will begin in 1 minute!",0;
sleep 30000;
mapannounce "quiz_01","In 30 seconds the monster will appear!",0;
sleep 25000;
announce "Event: Novice Vs. Zombie will begin in ~5~",0;
sleep 1000;
announce "~4~",0;
sleep 1000;
announce "~3~",0;
sleep 1000;
announce "~2~",0;
sleep 1000;
announce "~1~",0;
sleep 1000;
announce "Event: 'Novice Vs. Zombie' has begun!!",0,0x00FF00;
monster "quiz_01",42,369,"Zombie",1036,4;
disablenpc "Novice vs. Zombie";
sleep 10000;
monster "quiz_01",42,369,"Zombie-2",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-3",1036,10;
sleep 10000;
monster "quiz_01",42,369,"Zombie-4",1036,10;
initnpctimer;
end;

OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01","All";
announce "'Novice Vs. Zombie' has ended. All of the Zombies are gone.",0;
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
if ($@NvZCounter >= 5){
    switch(rand(0,2)){
        case 0: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break;
        case 1: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL alive? Are you sure you're not cheating?",0,0x00FF00; break;
        case 2: mapannounce "quiz_01",getmapusers("quiz_01") +" players are STILL ALIVE? Seriously, I'm gonna have to report you.",0,0x00FF00; break;
        }
} else {
    mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00;
}
sleep 10000;
set $@NvZCounter,$@NvZCounter+1;
initnpctimer;
end;
}
initnpctimer;
end;

OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;

sleep2 1000;
if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01","All";
if (sex == 1) {
announce "In 'Novice Vs. Zombie', " + strcharinfo (0) + " has won! Let's congratulate him!",0;
}
else {
announce "In 'Novice Vs. Zombie'" + strcharinfo (0) + " has won! Let's congratulate her!",0;
};
getitem 31991,1;
set $@NvZCounter,0;
stopnpctimer;
warp "prontera",156,223;
sleep2 250;

}
else {
sleep2 1;
warp "prontera",156,223;
dispbottom "You have lost...";
}

end;
}

prontera,155,125,3	script	Novice vs. Zombie	1015,{
if (BaseLevel > 1) goto L_No;
if (class == 0) goto L_event;
if (class > 0) goto L_No;
L_event:
sc_end SC_ALL;
sc_start SC_DECREASEAGI,10,1;
percentheal 100,100;
atcommand "@storeall";
warp "quiz_01",42,369;


L_No:
mes "[^0000FFNovice Vs. Zombie^000000]";
mes "Brains!!!!!!! D=<";
mes "^696969You are not a level 1 novice! Cheater!^000000";
close;

OnInit:
	disablenpc "Novice vs. Zombie";
	end;

}

// mapflag

quiz_01	mapflag	nocommand	2

 

Working naman sya. Ang gusto ko lang magkaroon sya ng conditions like the ff:

1. Kung 1 player lang ang sasali due to any reason = Automatic win

and/or

2. Kung 1 player lang din ang sasali, mas mabuting hindi nalang magtutuloy yung script due to insufficient players. 

 

Thank you po!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

 

Same mechanics sa previous event script posts ko.

 

 

nvz_v2.txt  typo

fixed version

nvz_v2.txt

Edited by Mabuhay
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

2 hours ago, Mabuhay said:

 

Same mechanics sa previous event script posts ko.

 

 

nvz_v2.txt 3.93 kB · 1 download   typo

fixed version

nvz_v2.txt 3.95 kB · 0 downloads

Not the way i wanted it but thanks! it works like charm!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...