viewing paste Unknown #19314 | Text

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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
gmhouse,186,136,5   script  Faction Controller  55,{
    if(getgmlevel()>98) { goto GMEmpMenu; end; }
 
    GMEmpMenu:
    mes "[GM Menu]";
    mes "From this menu you can set event times, Zeny prize, and item prizes.";
    switch(prompt("Add New Faction Event:Clear All Faction Events:View Faction Events:Stop Current Faction Event:Change Zeny Prize:Change Item Prize 1:Change Item Prize 2:Change Item Prize 3:Change Item Prize 4:Change Item Prize 5:Return To Non-GM Menu")) {
    case 1:
        next;
        mes "[GM Menu]";
        mes "From here you can add new Faction events.";
        set .Faction,0;
        set @FactionAddMenu$,0;
        AddCountCheck:
        if($FactionStartDay[.Faction]==0&&$FactionEndDay[.Faction]==0&&$FactionStartTime[.Faction]==0&&$FactionEndTime[.Faction]==0) { goto AddCountCheck2; }
        set .Faction,.Faction+1;
        goto AddCountCheck;
        AddCountCheck2:
        for( set .@i,1; .@i<=7; set .@i,.@i+1 ) { set @FactionAddMenu$,@FactionAddMenu$+((getd("FactionEvent_"+.@i+"$")=="")?"No Event Set":getd("FactionEvent_"+.@i+"$"))+":"; }
        set .Faction,select(@FactionAddMenu$);
        next;
        mes "[GM Menu]";
        mes "Which day do you want Faction to ^00FF00start^000000?";
        switch(select("Sunday:Monday:Tuesday:Wednesday:Thursday:Friday:Saturday")) {
        case 1: set $FactionStartDay[.Faction],0; break;
        case 2: set $FactionStartDay[.Faction],1; break;
        case 3: set $FactionStartDay[.Faction],2; break;
        case 4: set $FactionStartDay[.Faction],3; break;
        case 5: set $FactionStartDay[.Faction],4; break;
        case 6: set $FactionStartDay[.Faction],5; break;
        case 7: set $FactionStartDay[.Faction],6; break;
        }
        next;
        mes "[GM Menu]";
        mes "When do you want Faction to ^00FF00start^000000?";
        switch(select("1AM:2AM:3AM:4AM:5AM:6AM:7AM:8AM:9AM:10AM:11AM:Noon:1PM:2PM:3PM:4PM:5PM:6PM:7PM:8PM:9PM:10PM:11PM:Midnight")) {
        case 1: set $FactionStartTime[.Faction],"01"; break;
        case 2: set $FactionStartTime[.Faction],"02"; break;
        case 3: set $FactionStartTime[.Faction],"03"; break;
        case 4: set $FactionStartTime[.Faction],"04"; break;
        case 5: set $FactionStartTime[.Faction],"05"; break;
        case 6: set $FactionStartTime[.Faction],"06"; break;
        case 7: set $FactionStartTime[.Faction],"07"; break;
        case 8: set $FactionStartTime[.Faction],"08"; break;
        case 9: set $FactionStartTime[.Faction],"09"; break;
        case 10: set $FactionStartTime[.Faction],"10"; break;
        case 11: set $FactionStartTime[.Faction],"11"; break;
        case 12: set $FactionStartTime[.Faction],"12"; break;
        case 13: set $FactionStartTime[.Faction],"13"; break;
        case 14: set $FactionStartTime[.Faction],"14"; break;
        case 15: set $FactionStartTime[.Faction],"15"; break;
        case 16: set $FactionStartTime[.Faction],"16"; break;
        case 17: set $FactionStartTime[.Faction],"17"; break;
        case 18: set $FactionStartTime[.Faction],"18"; break;
        case 19: set $FactionStartTime[.Faction],"19"; break;
        case 20: set $FactionStartTime[.Faction],"20"; break;
        case 21: set $FactionStartTime[.Faction],"21"; break;
        case 22: set $FactionStartTime[.Faction],"22"; break;
        case 23: set $FactionStartTime[.Faction],"23"; break;
        case 24: set $FactionStartTime[.Faction],"00"; break;
        }
        next;
        mes "[GM Menu]";
        mes "Which day do you want Faction to ^00FF00finish^000000?";
        next;
        switch(select("Same Day:Sunday:Monday:Tuesday:Wednesday:Thursday:Friday:Saturday")) {
        case 1: set $FactionEndDay[.Faction],$FactionStartDay[.Faction]; break;
        case 2: set $FactionEndDay[.Faction],0; break;
        case 3: set $FactionEndDay[.Faction],1; break;
        case 4: set $FactionEndDay[.Faction],2; break;
        case 5: set $FactionEndDay[.Faction],3; break;
        case 6: set $FactionEndDay[.Faction],4; break;
        case 7: set $FactionEndDay[.Faction],5; break;
        case 8: set $FactionEndDay[.Faction],6; break;
        }
        next;
        mes "[GM Menu]";
        mes "When do you want Faction to ^00FF00finish^000000?";
        switch(select("1AM:2AM:3AM:4AM:5AM:6AM:7AM:8AM:9AM:10AM:11AM:Noon:1PM:2PM:3PM:4PM:5PM:6PM:7PM:8PM:9PM:10PM:11PM:Midnight")) {
        case 1: set $FactionEndTime[.Faction],"01"; break;
        case 2: set $FactionEndTime[.Faction],"02"; break;
        case 3: set $FactionEndTime[.Faction],"03"; break;
        case 4: set $FactionEndTime[.Faction],"04"; break;
        case 5: set $FactionEndTime[.Faction],"05"; break;
        case 6: set $FactionEndTime[.Faction],"06"; break;
        case 7: set $FactionEndTime[.Faction],"07"; break;
        case 8: set $FactionEndTime[.Faction],"08"; break;
        case 9: set $FactionEndTime[.Faction],"09"; break;
        case 10: set $FactionEndTime[.Faction],"10"; break;
        case 11: set $FactionEndTime[.Faction],"11"; break;
        case 12: set $FactionEndTime[.Faction],"12"; break;
        case 13: set $FactionEndTime[.Faction],"13"; break;
        case 14: set $FactionEndTime[.Faction],"14"; break;
        case 15: set $FactionEndTime[.Faction],"15"; break;
        case 16: set $FactionEndTime[.Faction],"16"; break;
        case 17: set $FactionEndTime[.Faction],"17"; break;
        case 18: set $FactionEndTime[.Faction],"18"; break;
        case 19: set $FactionEndTime[.Faction],"19"; break;
        case 20: set $FactionEndTime[.Faction],"20"; break;
        case 21: set $FactionEndTime[.Faction],"21"; break;
        case 22: set $FactionEndTime[.Faction],"22"; break;
        case 23: set $FactionEndTime[.Faction],"23"; break;
        case 24: set $FactionEndTime[.Faction],"00"; break;
        }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to set a new Faction event? To finalize the new Faction event? If your 100% sure type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust Faction event times!"; close2; goto GMEmpMenu; end; }
        if($FactionStartDay[.Faction]==0&&$FactionEndDay[.Faction]==0&&$FactionTime[.Faction]==0&&$FactionEndTime[.Faction]==0) { close2; goto GMEmpMenu; end; }
        if($FactionStartDay[.Faction]==0) { set $@FactionStartDayName$,"Sunday"; }
        if($FactionStartDay[.Faction]==1) { set $@FactionStartDayName$,"Monday"; }
        if($FactionStartDay[.Faction]==2) { set $@FactionStartDayName$,"Tuesday"; }
        if($FactionStartDay[.Faction]==3) { set $@FactionStartDayName$,"Wednesday"; }
        if($FactionStartDay[.Faction]==4) { set $@FactionStartDayName$,"Thursday"; }
        if($FactionStartDay[.Faction]==5) { set $@FactionStartDayName$,"Friday"; }
        if($FactionStartDay[.Faction]==6) { set $@FactionStartDayName$,"Saturday"; }
        if($FactionEndDay[.Faction]==0) { set $@FactionEndDayName$,"Sunday"; }
        if($FactionEndDay[.Faction]==1) { set $@FactionEndDayName$,"Monday"; }
        if($FactionEndDay[.Faction]==2) { set $@FactionEndDayName$,"Tuesday"; }
        if($FactionEndDay[.Faction]==3) { set $@FactionEndDayName$,"Wednesday"; }
        if($FactionEndDay[.Faction]==4) { set $@FactionEndDayName$,"Thursday"; }
        if($FactionEndDay[.Faction]==5) { set $@FactionEndDayName$,"Friday"; }
        if($FactionEndDay[.Faction]==6) { set $@FactionEndDayName$,"Saturday"; }
        next;
        mes "[GM Menu]";
        mes ""+$@FactionStartDayName$+" from "+$FactionStartTime[.Faction]+":00 till "+$@FactionStartDayName$+" at "+$FactionEndTime[.Faction]+":00";
        setd("FactionEvent_"+.Faction+"$"),"Event "+.Faction+" Set";
        close2; goto GMEmpMenu; end;
    case 2:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes "Faction events cannot be cleared at this time. You must stop the current Faction event first."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "You are about to clear all the set Faction events and prizes set for them. If your 100% sure type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't clear Faction events!"; close2; goto GMEmpMenu; end; }
        set $FactionZenyPrize,0;
        set $FactionItemPrize1,0;
        set $FactionItemAmount1,0;
        set $FactionItemPrize2,0;
        set $FactionItemAmount2,0;
        set $FactionItemPrize3,0;
        set $FactionItemAmount3,0;
        set $FactionItemPrize4,0;
        set $FactionItemAmount4,0;
        set $FactionItemPrize5,0;
        set $FactionItemAmount5,0;
        set .Faction,0;
        ResetLoop:
        set $FactionStartDay[.Faction],0;
        set $FactionEndDay[.Faction],0;
        set $FactionStartTime[.Faction],0;
        set $FactionEndTime[.Faction],0;
        setd("FactionEvent_"+.Faction+"$"),"No Event Set";
        set .Faction,.Faction+1;
        if(.Faction>7) { next; mes "[GM Menu]"; mes "All Faction events have been cleared."; close2; goto GMEmpMenu; end; }
        goto ResetLoop;
        end;
    case 3:
        next;
        mes "Current Faction Event Times:";
        mes " ";
        set .Faction,1;
        FactionDayCheck:
        if($FactionStartDay[.Faction]==0) { set $@FactionStartDayName$,"Sunday"; }
        if($FactionStartDay[.Faction]==1) { set $@FactionStartDayName$,"Monday"; }
        if($FactionStartDay[.Faction]==2) { set $@FactionStartDayName$,"Tuesday"; }
        if($FactionStartDay[.Faction]==3) { set $@FactionStartDayName$,"Wednesday"; }
        if($FactionStartDay[.Faction]==4) { set $@FactionStartDayName$,"Thursday"; }
        if($FactionStartDay[.Faction]==5) { set $@FactionStartDayName$,"Friday"; }
        if($FactionStartDay[.Faction]==6) { set $@FactionStartDayName$,"Saturday"; }
        if($FactionEndDay[.Faction]==0) { set $@FactionEndDayName$,"Sunday"; }
        if($FactionEndDay[.Faction]==1) { set $@FactionEndDayName$,"Monday"; }
        if($FactionEndDay[.Faction]==2) { set $@FactionEndDayName$,"Tuesday"; }
        if($FactionEndDay[.Faction]==3) { set $@FactionEndDayName$,"Wednesday"; }
        if($FactionEndDay[.Faction]==4) { set $@FactionEndDayName$,"Thursday"; }
        if($FactionEndDay[.Faction]==5) { set $@FactionEndDayName$,"Friday"; }
        if($FactionEndDay[.Faction]==6) { set $@FactionEndDayName$,"Saturday"; }
        mes "^FF0000Event "+.Faction+"^000000";
        if($FactionStartDay[.Faction]==0&&$FactionEndDay[.Faction]==0&&$FactionStartTime[.Faction]==0&&$FactionEndTime[.Faction]==0) { mes "No Event Set"; } else { mes ""+$@FactionStartDayName$+" at "+$FactionStartTime[.Faction]+":00 till "+$@FactionEndDayName$+" at "+$FactionEndTime[.Faction]+":00"; }
        set .Faction,.Faction+1;
        if(.Faction>7) { close2; goto GMEmpMenu; end; }
        goto FactionDayCheck;
        end;
    case 4:
        next;
        if($FactionStatus==0) { mes "[GM Menu]"; mes "There is currently no Faction event running."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "You are about to stop the current Faction event. If your 100% sure type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't stop Faction events while there going!"; close2; goto GMEmpMenu; end; }
        set $FactionStatus,0;
        gvgoff "guild_vs1";
        if(getmapusers("guild_vs1")>0) { maprespawnguildid "guild_vs1",$FactionGUILD,7; }
        killmonsterall "guild_vs1",0;
        set .@name$,getguildmaster($FactionGUILD);
        if($FactionGUILD!=0) { announce "The King of Emperium Hill has ended! The King Of Emperium Hill is the ["+getguildname($FactionGUILD)+"] guild.",bc_all|bc_woe; } else { announce "The King of Emperium Hill has ended! No guild has proven themselves King Of Emperium Hill!",bc_all|bc_woe; }
        close2;
        goto GMEmpMenu;
        end;
    case 5:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Zeny Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "The current Zeny Prize amount is ^ff0000"+$FactionZenyPrize+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Zeny Prize to be.";
        input .@GMAdjust;
        if(.@GMAdjust<0) { next; mes "[GM Menu]"; mes "The Zeny Prize cannot be less than 0."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Zeny Prize to ^ff0000"+.@GMAdjust+"^000000? To finalize the change in Zeny Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize==.@RandomFinalize) { next; set $FactionZenyPrize,.@GMAdjust; mes "[GM Menu]"; mes "The Zeny Prize amount has been changed to ^ff0000"+$FactionZenyPrize+"^000000."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        mes "It is probably for the best that you don't adjust the Zeny Prize!";
        close2;
        goto GMEmpMenu;
        end;
    case 6:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Item Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "From this menu you can adjust the item prize. The current Reward is: ^ff0000"+$FactionItemAmount1+"^000000 ^ff0000"+getitemname($FactionItemPrize1)+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
        input .@GMAdjust;
        next;
        set $FactionItemPrize1,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+getitemname($FactionItemPrize1)+"^000000[^ff0000"+$FactionItemPrize1+"^000000].";
        next;
        mes "[GM Menu]";
        mes "The current Item Prize Amount is ^ff0000"+$FactionItemAmount1+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes "Enter what you want the new Item Prize Amount to be.";
        input .@GMAdjust;
        if(.@GMAdjust<1) { next; mes "[GM Menu]"; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000 "+getitemname($FactionItemPrize1)+"? To finalize the change in Item Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust the Item Prize!"; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set $FactionItemAmount1,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+$FactionItemAmount1+"^000000 ^ff0000"+getitemname($FactionItemPrize1)+"^000000.";
        close2;
        goto GMEmpMenu;
        end;
    case 7:
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Item Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "From this menu you can adjust the item prize. The current Reward is: ^ff0000"+$FactionItemAmount2+"^000000 ^ff0000"+getitemname($FactionItemPrize2)+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
        input .@GMAdjust;
        next;
        set $FactionItemPrize2,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+getitemname($FactionItemPrize2)+"^000000[^ff0000"+$FactionItemPrize2+"^000000].";
        next;
        mes "[GM Menu]";
        mes "The current Item Prize Amount is ^ff0000"+$FactionItemAmount2+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes "Enter what you want the new Item Prize Amount to be.";
        input .@GMAdjust;
        if(.@GMAdjust<1) { next; mes "[GM Menu]"; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000 "+getitemname($FactionItemPrize2)+"? To finalize the change in Item Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust the Item Prize!"; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set $FactionItemAmount2,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+$FactionItemAmount2+"^000000 ^ff0000"+getitemname($FactionItemPrize2)+"^000000.";
        close2;
        goto GMEmpMenu;
        end;
    case 8:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Item Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "From this menu you can adjust the item prize. The current Reward is: ^ff0000"+$FactionItemAmount3+"^000000 ^ff0000"+getitemname($FactionItemPrize3)+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
        input .@GMAdjust;
        next;
        set $FactionItemPrize3,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+getitemname($FactionItemPrize3)+"^000000[^ff0000"+$FactionItemPrize3+"^000000].";
        next;
        mes "[GM Menu]";
        mes "The current Item Prize Amount is ^ff0000"+$FactionItemAmount3+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes "Enter what you want the new Item Prize Amount to be.";
        input .@GMAdjust;
        if(.@GMAdjust<1) { next; mes "[GM Menu]"; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000 "+getitemname($FactionItemPrize3)+"? To finalize the change in Item Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust the Item Prize!"; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set $FactionItemAmount3,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+$FactionItemAmount3+"^000000 ^ff0000"+getitemname($FactionItemPrize3)+"^000000.";
        close2;
        goto GMEmpMenu;
        end;
    case 9:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Item Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "From this menu you can adjust the item prize. The current Reward is: ^ff0000"+$FactionItemAmount4+"^000000 ^ff0000"+getitemname($FactionItemPrize4)+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
        input .@GMAdjust;
        next;
        set $FactionItemPrize4,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+getitemname($FactionItemPrize4)+"^000000[^ff0000"+$FactionItemPrize4+"^000000].";
        next;
        mes "[GM Menu]";
        mes "The current Item Prize Amount is ^ff0000"+$FactionItemAmount4+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes "Enter what you want the new Item Prize Amount to be.";
        input .@GMAdjust;
        if(.@GMAdjust<1) { next; mes "[GM Menu]"; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000 "+getitemname($FactionItemPrize4)+"? To finalize the change in Item Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust the Item Prize!"; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set $FactionItemAmount4,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+$FactionItemAmount4+"^000000 ^ff0000"+getitemname($FactionItemPrize4)+"^000000.";
        close2;
        goto GMEmpMenu;
        end;        
    case 10:
        next;
        if($FactionStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Item Prize at this time."; close2; goto GMEmpMenu; end; }
        mes "[GM Menu]";
        mes "From this menu you can adjust the item prize. The current Reward is: ^ff0000"+$FactionItemAmount5+"^000000 ^ff0000"+getitemname($FactionItemPrize5)+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes " ";
        mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
        input .@GMAdjust;
        next;
        set $FactionItemPrize5,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+getitemname($FactionItemPrize5)+"^000000[^ff0000"+$FactionItemPrize5+"^000000].";
        next;
        mes "[GM Menu]";
        mes "The current Item Prize Amount is ^ff0000"+$FactionItemAmount5+"^000000.";
        mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
        mes "Enter what you want the new Item Prize Amount to be.";
        input .@GMAdjust;
        if(.@GMAdjust<1) { next; mes "[GM Menu]"; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set .@RandomFinalize,rand(100,999);
        mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000 "+getitemname($FactionItemPrize5)+"? To finalize the change in Item Prize type the number ^0000FF"+.@RandomFinalize+"^000000.";
        input .@Finalize;
        if(.@Finalize!=.@RandomFinalize) { next; mes "[GM Menu]"; mes "It is probably for the best that you don't adjust the Item Prize!"; next; goto GMEmpMenu; end; }
        next;
        mes "[GM Menu]";
        set $FactionItemAmount5,.@GMAdjust;
        mes "The Item Prize amount has been changed to ^ff0000"+$FactionItemAmount5+"^000000 ^ff0000"+getitemname($FactionItemPrize5)+"^000000.";
        close2;
        goto GMEmpMenu;
        end;
    case 11:
    close;
    end;
    }
}
Viewed 876 times, submitted by Guest.