viewing paste Daily Quest NPC v2.5 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
//Made by: Katazui
//5/21/2011
//Version 2.50
prontera,136,171,4      script  Daily Quest     102,{
        if (getgmlevel() >= 80) goto GM_Menu;
        L_START:
        if (getgmlevel() >= 80) next;
        mes "[Daily  Quest]";
        mes "Hello "+strcharinfo(0)+"!";
        mes "Do you want to start today's Quest?";
        mes " ";
        mes "Total Daily Quests Finished: ^008800"+$DailyQuestTotal+"^000000.";
        mes "Today Daily Quests Finished: ^0000FF"+$DailyQuestToday+"^000000.";
        menu "Yes!",-,"Nahh",L_Close;
        next;
        mes "[Daily Quest]";
        mes "You'll need these item for Today's Quest:";
        mes "^FF0000"+getitemname($QuestItem1)+"^000000 x "+$QuestItem1HM+"";
        mes "^FF0000"+getitemname($QuestItem2)+"^000000 x "+$QuestItem2HM+"";
        mes "^FF0000"+getitemname($QuestItem3)+"^000000 x "+$QuestItem3HM+"";
        mes "In exchange you will get ^0000FF"+getitemname($DailyQuestPrize)+"^000000 x "+$DailyQuestPrizeHM+"";
        next;
        mes "[Daily Quest]";
        mes "Do you have the items?";
        menu "Yes! I do.",-,"Gimme some time.",L_Close;
        if(countitem($QuestItem1) >= $QuestItem1HM) && (countitem($QuestItem2) >= $QuestItem2HM) && (countitem($QuestItem3) >= $QuestItem3HM) goto FinishQuest;
        next;
        mes "[Daily Quest]";
        mes "You only have "+countitem($QuestItem1HM)+" of ^FF0000"+getitemname($QuestItem1)+"^000000, "+countitem($QuestItem2HM)+" of ^FF0000"+getitemname($QuestItem2)+"^000000, "+countitem($QuestItem3HM)+" of ^FF0000"+getitemname($QuestItem3)+"^000000.";
        mes "Come back when you have it! Better get the items quickly. It's gonna change in a Day!";
        close;
        end;
 
        L_Close:
        next;
        mes "[Daily Quest]";
        mes "Come back again! Get the Items!";
        mes "Goodbye!";
        close;
        end;
 
        GM_Menu:
        mes "[Daily Quest]";
        mes "Hello GM "+strcharinfo(0)+"!";
        mes "What can I do for you today?";
        menu "Player Menu",L_START,"Change Today's Quest/Prize",L_ChangeQuest,"Close",L_Close;
        end;
 
        L_ChangeQuest:
        next;
        mes "[Daily Quest]";
        mes "What will you like to change?";
        next;
        menu "Go back.",GM_Menu,"Prize [^0000FF"+getitemname($DailyQuestPrize)+"^000000 x "+$DailyQuestPrizeHM+"]",L_ChangePrize,"Change Quest Randomly",L_ChangeQuestRandom,"Change Quest by Myself",L_ChangeQuestMyself;
        end;
 
        L_ChangeQuestMyself:
        next;
        mes "[Daily Quest]";
        mes "Which item would you like to change first?";
        menu "Go Back.",L_ChangeQuest,"Item 1 [^FF0000"+getitemname($QuestItem1)+"^000000 x "+$QuestItem1HM+"]",L_ChangeItem1,"Item 2 [^FF0000"+getitemname($QuestItem2)+"^000000 x "+$QuestItem2HM+"]",L_ChangeItem2,"Item 3 [^FF0000"+getitemname($QuestItem3)+"^000000 x "+$QuestItem3HM+"]",L_ChangeItem3;
//
        L_ChangeItem1:
        next;
        mes "[Daily Quest]";
        mes "Alright. What will be the item?";
        next;
        input $QuestItem1;
        next;
        L_ChangeItem12:
        mes "[Daily Quest]";
        mes "How much of ^ff0000"+getitemname($QuestItem1)+"^000000 do you want?";
        mes "It must be in the range of ^0088001 ~ 200^000000.";
        next;
        input $QuestItem1HM;
        next;
        if ($QuestItem1HM > 200) goto L_HMItem1Denied;
        mes "[Daily Quest]";
        mes "Item 1 Set.";
        set $DailyQuestToday,0;
        mes "^FF0000"+getitemname($QuestItem1)+"^000000 x "+$QuestItem1HM+".";
        next;
        goto L_ChangeQuest;
        end;
 
        L_HMItem1Denied:
        mes "[Daily Quest]";
        mes "This item (^ff0000"+getitemname($QuestItem1)+"^000000) must be in a range of ^0088001 ~ 200^000000.";
        next;
        goto L_ChangeItem12;
        end;   
//
        L_ChangeItem2:
        next;
        mes "[Daily Quest]";
        mes "Alright. What will be the item?";
        next;
        input $QuestItem2;
        next;
        L_ChangeItem22:
        mes "[Daily Quest]";
        mes "How much of ^ff0000"+getitemname($QuestItem2)+"^000000 do you want?";
        mes "It must be in the range of ^0088001 ~ 150^000000.";
        next;
        input $QuestItem2HM;
        next;
        if ($QuestItem2HM > 150) goto L_HMItem2Denied;
        mes "[Daily Quest]";
        mes "Item 2 Set.";
        set $DailyQuestToday,0;
        mes "^FF0000"+getitemname($QuestItem2)+"^000000 x "+$QuestItem2HM+".";
        next;
        goto L_ChangeQuest;
        end;
 
        L_HMItem2Denied:
        mes "[Daily Quest]";
        mes "This item (^ff0000"+getitemname($QuestItem2)+"^000000) must be in a range of ^0088001 ~ 150^000000.";
        next;
        goto L_ChangeItem22;
        end;
//
        L_ChangeItem3:
        next;
        mes "[Daily Quest]";
        mes "Alright. What will be the item?";
        next;
        input $QuestItem3;
        next;
        L_ChangeItem32:
        mes "[Daily Quest]";
        mes "How much of ^ff0000"+getitemname($QuestItem3)+"^000000 do you want?";
        mes "It must be in the range of ^0088001 ~ 50^000000.";
        next;
        input $QuestItem3HM;
        next;
        if ($QuestItem3HM > 50) goto L_HMItem3Denied;
        mes "[Daily Quest]";
        mes "Item 3 Set.";
        set $DailyQuestToday,0;
        mes "^FF0000"+getitemname($QuestItem3)+"^000000 x "+$QuestItem3HM+".";
        next;
        goto L_ChangeQuest;
        end;
 
        L_HMItem3Denied:
        mes "[Daily Quest]";
        mes "This item (^ff0000"+getitemname($QuestItem3)+"^000000) must be in a range of ^0088001 ~ 50^000000.";
        next;
        goto L_ChangeItem32;
        end;
//
        L_ChangeQuestRandom:
        set $QuestItem1, rand(701,1065);
        set $QuestItem1HM, rand(1,200);
        set $QuestItem2, rand(701,1065);
        set $QuestItem2HM, rand(1,150);
        set $QuestItem3, rand(701,1065);
        set $QuestItem3HM, rand(1,50);
        set $DailyQuestToday,0;
        mes "[Daily Quest]";
        mes "This is the Daily Quest:";
        mes "^FF0000"+getitemname($QuestItem1)+"^000000 x "+$QuestItem1HM+"";
        mes "^FF0000"+getitemname($QuestItem2)+"^000000 x "+$QuestItem2HM+"";
        mes "^FF0000"+getitemname($QuestItem3)+"^000000 x "+$QuestItem3HM+"";
        next;
        goto GM_Menu;
        end;
 
        L_ChangePrize:
        next;
        mes "[Daily Quest]";
        mes "Input the Prize";
        next;
        input $DailyQuestPrize;
        next;
        mes "[Daily Quest]";
        mes "The Prize: "+getitemname($DailyQuestPrize)+" x How many?";
        next;
        input $DailyQuestPrizeHM;
        next;
        mes "[Daily Quest]";
        mes "This is what you like?";
        mes "^0000ff"+getitemname($DailyQuestPrize)+"^000000 x "+$DailyQuestPrizeHM+".";
        menu "Yup, Thanks.",GM_Menu,"Noo! I made a mistake!",L_ChangePrize;
        end;
 
        FinishQuest:
        next;
        mes "[Daily Quest]";
        mes "You got ^0000FF"+getitemname($DailyQuestPrize)+"^000000 x "+$DailyQuestPrizeHM+".";
        delitem $QuestItem1,$QuestItem1HM;
        delitem $QuestItem2,$QuestItem2HM;
        delitem $QuestItem3,$QuestItem3HM;
        getitem $DailyQuestPrize,$DailyQuestPrizeHM;
        set $DailyQuestTotal,$DailyQuestTotal +1;
        set $DailyQuestToday,$DailyQuestToday +1;
        close;
        end;
       
}
 
-       script  DailyQuestItemChanger   -1,{
        OnInit:
        Start:
        set $QuestItem1, rand(701,1065);
        set $QuestItem1HM, rand(1,200);
        set $QuestItem2, rand(701,1065);
        set $QuestItem2HM, rand(1,150);
        set $QuestItem3, rand(701,1065);
        set $QuestItem3HM, rand(1,50);
        set $DailyQuestToday,0;
        OnHour24:
        set $QuestItem1, rand(701,1065);
        set $QuestItem1HM, rand(1,200);
        set $QuestItem2, rand(701,1065);
        set $QuestItem2HM, rand(1,150);
        set $QuestItem3, rand(701,1065);
        set $QuestItem3HM, rand(1,50);
        set $DailyQuestToday,0;
        goto Start;
        end;
 
}
Viewed 251 times, submitted by unknown.