Jump to content
  • 0
Sign in to follow this  
Soul1992

Quest Warper OnNPCKillEvent Unloking

Question

1 answer to this question

Recommended Posts

  • 0

this is my first attempt. only the annonce on the country does not want to be like I want

 

anthell02,170,165,3	script	Warpra Helper#0	112,{
mes "[Warpra Helper]";
mes "You have to kill:";
mes "You have "+VitataKills+"/10 Vitata...";
mes "You have "+AntEggKills+"/55 Ant Egg...";
mes "You have "+FamiliarKills+"/5 Familiar";
next;
menu "Unlock Dungeon",L_anthell,"Unlock with Donate Cash ",L_anthellDonate;
L_anthell:
if(VitataKills >= 10  &&  AntEggKills >= 55  &&  FamiliarKills >= 5) goto l_allkills;
mes "[Warpra Helper]";
mes "You didn't kill enough monsters!";
close;


l_allkills:
callfunc "QWS_Dungeon_Warpra",0,"Ant Hell Dungeon";
close;

L_anthellDonate:
mes "[Warpra Helper]";
mes "You want Donate Cash for Unlocking, it costs you!";
mes "^4527A0Price: 20 Cash Point's^000000";
next;
menu "Yes, Unlocking",L_Unlocking,"No.....",L_No;
L_Unlocking:
if ( #CASHPOINTS < 20) goto l_nocash;
#CASHPOINTS -= 20;
callfunc "QWS_Dungeon_Warpra",0,"Ant Hell Dungeon";
close;

l_nocash:
mes "[Warpra Helper]";
mes "You do not have enough Donate Cash";
close;

L_No:
mes "[Warpra Helper]";
mes "Bye......";
close;


OnNPCKillEvent:
if(anthell) end;
if(killedrid == 1176 && VitataKills < 10) // = Vitata
{
	set VitataKills,VitataKills + 1;
	dispbottom "You killed "+VitataKills+"/10 Vitata.";
	if(VitataKills >= 10) 
		dispbottom "You have killed all Vitatas.";
		
} else if (killedrid == 1097 && AntEggKills < 55) // = Ant Egg
{
	set AntEggKills,AntEggKills + 1;
	dispbottom "You killed "+AntEggKills+"/55 AntEgg.";
	if(AntEggKills >= 55)
		dispbottom "You have killed all AntEggs.";
		
}else if (killedrid == 1005 && FamiliarKills < 5) // = Familiar
{
	set FamiliarKills,FamiliarKills + 1;
	dispbottom "You killed "+FamiliarKills+"/5 Familiar.";
	if(FamiliarKills >= 5)
		dispbottom "You have killed all Familiars.";
		
} else if(anthell == 0) {
announce "[Warpra]: You have killed every Monster. Come back to me to !",bc_self;
set anthell,1;
}
end;
}

 

 

 

 

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.