hello, how to put name announce here when quest completed? and where can i put in this script? thank you..
prontera,147,160,5, script Quest 899,{
//===== Config: ==============================================
set .npcname$,"[^FF0000 MaynilaRO Quest ^000000]"; //Change to whatever you want the NPC name to be
setarray .reqid[1],658,750,7206,742,7212,7277,751,741,754,7272,752,743,753; //Item IDs for the items, required for item checks
setarray .reqn$[1],"Union of Tribe","Baphomet Doll","Black Kitty Doll","Chonchon Doll","Hung Doll","Munak Doll","Osiris Doll","Poring Doll","Racoon Doll","Rice Ball Doll","Rocker Doll","Spore Doll","Yoyo Doll"; //These are names of the required items, for the dialogue
setarray .reqa[1],2,1,1,1,1,1,1,1,1,1,1,1,1; //These are how many of each item is required
set .prize,2630; //Change this to the Item ID of the item reward
set .prizen$,"Brisingamen"; //Change this to the name of your reward
set .prizea,1; //Change this to the amount of the prize item
set .zeny,5000000; //Amount of zeny for quest (set to 0 to disable)
L_QUEST:
mes .npcname$;
mes "Hah! Hello there "+strcharinfo(0);
next;
mes .npcname$;
mes "I don't get many visitors, so I assume you're after my legendary ^FF0000"+.prizen$+"^000000?";
menu "Of course",-,"No way",L_EXIT;
next;
mes .npcname$;
mes "Great! I love business. I can make you a ^FF0000"+.prizen$+"^000000, but only if you bring me the materials required.";
next;
mes .npcname$;
mes "Would you like me to make one for you?";
menu "Yes",-,"No",L_EXIT;
next;
mes .npcname$;
mes "I'll need the following:";
for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
mes .reqa[.@x]+" ^FF0000"+.reqn$[.@x]+"^000000";
}
if (.zeny > 0) {
mes .zeny+" ^FF0000Zeny^000000";
}
next;
mes .npcname$;
mes "Do you have those items?";
menu "Yes",-,"No",L_EXIT;
next;
mes .npcname$;
for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
if(countitem(.reqid[.@x]) >= .reqa[.@x]) {mes "You've got enough ^00FF00"+.reqn$[.@x]+"^000000";} else {mes "You need more ^FF0000"+.reqn$[.@x]+"^000000";}
}
if (.zeny > 0) {
if (Zeny < .zeny) {mes "You're missing ^FF0000Zeny^000000";}
else {mes "You've got enough ^00FF00Zeny^000000";}
}
next;
mes .npcname$;
mes "Would you like to complete the quest?";
menu "Yes please!",-,"No Thanks",L_EXIT;
next;
for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
if(countitem(.reqid[.@x]) < .reqa[.@x]) goto L_EXIT2;
}
if (.zeny > 0) {
if (Zeny < .zeny) goto L_EXIT2;
}
mes .npcname$;
mes "Brilliant! Fantastic! Here you go.";
for (set .@x,1; .@x < getarraysize(.reqid); set .@x,.@x + 1) {
delitem .reqid[.@x],.reqa[.@x];
}
if (.zeny > 0) {
set Zeny, Zeny - .zeny;
}
goto L_FINAL2;
close;
L_EXIT:
next;
mes .npcname$;
mes "Eh. I don't need you either. Bah!";
close;
L_EXIT2:
next;
mes .npcname$;
mes "I'm sorry, you don't have enough!";
close;
L_FINAL2:
next;
mes .npcname$;
mes "Brilliant! Fantastic! Here you go.";
getitem .prize,1;
close;
}
Question
Hatake Kakashi
hello, how to put name announce here when quest completed? and where can i put in this script? thank you..
Link to comment
Share on other sites
1 answer 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.