Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,155,181,5 script Santa Clause#npc_1 757,{
- mes "Ho ho ho, Christmas is coming, do you want to help me gather the items from different monster?";
- if( #Santa_Quest == atoi( gettimestr("%Y%m%d", 9) ) ){
- mes "You have done this Quest..please wait until tomorrow.";
- }else if( #Santa_Quest > 3 ){
- #Santa_Quest = 0;
- }
- if( #Santa_Quest < 3 ){
- mes "View Quest";
- if( select("Yes:No") == 2 ){
- mes "Ok, if you have time you can just approach me and if you will finish the task I given you, you will receive a very good reward.";
- }else{
- #Santa_Quest = rand(3);
- switch( #Santa_Quest ){
- // Quest Items list + Amounts
- Case 0: setarray .@items[0],607,1,608,1; break;
- Case 1: setarray .@items[0],608,2,512,1; break;
- Case 2: setarray .@items[0],612,10,607,3; break;
- default: break;
- }
- .@size = getarraysize( .@items );
- if( .@size > 2 )
- for( .@i = 0; .@i < .@size - 1; .@i += 2 ){
- mes " ~ "+getitemname( .@items[.@i] )+" x "+.@items[.@i+1];
- if( countitem( .@items[.@i] ) < .@items[.@i+1] )
- .@failed = 1;
- }
- if( .@failed ){
- mes "Seem like you dont have enough items.";
- }else
- if( select("Continue:Cancel") == 1 ){
- for( .@i = 0; .@i < .@size - 1; .@i += 2 )
- delitem .@items[.@i],.@items[.@i+1];
- getitem 14545,1;
- mes "Thank you for helping me, as a reward..take this..you can do this again tomorrow.";
- mes "Here's your reward...";
- #Santa_Quest = atoi( gettimestr("%Y%m%d", 9) );
- }
- }
- }else{
- mes "Nothing i can help you here...";
- }
- close;
- }
Advertisement
Add Comment
Please, Sign In to add comment