How can i make this script announce when someone complete the quest?
job_sage.gat,107,172,5, script Dolly 114,{
mes "Which item do you want?";
switch(select("Alice Doll:Bennit Doll:Defolty Doll:Glaris Doll:Lif Doll:Little Angel Doll:Sorin Doll:Tanigumi Doll:Telling Doll:W Doll:Zaha Doll:Cancel")) {
case 1: callsub Quest,2210,1,5141,1,7047,500,0,5137,1,0;
case 2: callsub Quest,2210,1,5141,1,1060,500,0,5344,1,0;
case 3: callsub Quest,2210,1,5141,1,1034,500,0,5137,1,0;
case 4: callsub Quest,2210,1,5141,1,7122,150,1034,200,0,5341,1,0;
case 5: callsub Quest,2210,1,5141,1,7142,1,1060,150,0,5253,1,0;
case 6: callsub Quest,2254,1,5141,1,7104,350,0,5344,1,0;
case 7: callsub Quest,2210,1,5141,1,7152,300,0,5342,1,0;
case 8: callsub Quest,2210,1,5141,1,1048,400,0,5526,1,0;
case 9: callsub Quest,2210,1,5141,1,1020,200,1034,200,0,5343,1,0;
case 10: callsub Quest,2210,1,5141,1,1060,500,0,5345,1,0;
case 11: callsub Quest,2210,1,5141,1,1020,400,7166,400,0,5464,1,0;
default:
mes "So you don't want anything? Come back when you do!";
close;
}
Quest:
next;
mes "I require the following:^FF0000";
for(set @i,0; getarg(@i)!=0; set @i,@i+2) mes getarg(@i+1) + " " + getitemname(getarg(@i));
mes "^000000In exchange, I will give you:^00FF00";
set @i,@i+1;
for(set @i,@i; getarg(@i) != 0; set @i,@i+2) mes getarg(@i+1) + " " + getitemname(getarg(@i));
if(select("Exchange:No thanks")==2) close;
for(set @i,0; getarg(@i) != 0; set @i,@i+2) {
if(countitem(getarg(@i))<getarg(@i+1)) {
next;
mes "You do not have enough of " + getitemname(getarg(@i));
mes "Required: " + getarg(@i+1);
mes "Current: " + countitem(getarg(@i));
mes "Needed: ^FF0000 " + (getarg(@i+1)-countitem(getarg(@i)));
close;
}
}
for(set @i,0; getarg(@i) != 0; set @i,@i+2) delitem getarg(@i),getarg(@i+1);
set @i,@i+1;
for(set @i,@i; getarg(@i) != 0; set @i,@i+2) getitem getarg(@i),getarg(@i+1);
close;
}
}
Question
Shogun
How can i make this script announce when someone complete the quest?
Link to comment
Share on other sites
5 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.