viewing paste Unknown #13589 | 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 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 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601
new_5-2,106,99,3    script  Hat Maker A-C   832,{
function Add; function Chk; function Slot; function A_An;
 
    if(.Shops$ != "") set .@i,1;
    else {
        set .@menu$,"";
        for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1)
            set .@menu$, .@menu$+.Shops$[.@i]+":";
        set .@i, select(.@menu$); }
    dispbottom "Select one item at a time.";
    callshop "qshop"+.@i,1;
    npcshopattach "qshop"+.@i;
    end;
 
function Add {
    for(set .@n,5; 1; set .@n,.@n+2)
        if (!getarg(.@n,0)) break;
    for(set .@i,2; .@i<.@n; set .@i,.@i+1)
        set getd(".q_"+getarg(1)+"["+(.@i-2)+"]"), getarg(.@i);
    npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0);
    return; }
function Chk {
    if (getarg(0)<getarg(1)) { set @qf,1; return "^FF0000"; }
    else return "^00FF00"; }
function Slot {
    set .@s$,getitemname(getarg(0));
    switch(.ShowSlot){
        case 1: if (!getitemslots(getarg(0))) return .@s$;
        case 2: if (getiteminfo(getarg(0),11)>0) return .@s$+" ["+getitemslots(getarg(0))+"]";
        default: return .@s$; } }
function A_An {
    setarray .@A$[0],"a","e","i","o","u";
    set .@B$, "_"+getarg(0);
    for(set .@i,0; .@i<5; set .@i,.@i+1)
        if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0);
    return "a "+getarg(0); }
 
OnBuyItem:
    set .@q[0],@bought_nameid;
    copyarray .@q[1],getd(".q_"+@bought_nameid+"[0]"),getarraysize(getd(".q_"+@bought_nameid+"[0]"));
    if (!.@q[1]) { message strcharinfo(0),"An error has occurred."; end; }
    mes "[Hat Maker [A-C]]";
    mes "Reward: ^0055FF"+((.@q[1]>1)?.@q[1]+"x ":"")+Slot(.@q[0])+"^000000";
    mes "Requirements:";
    if (.@q[2]) mes " > "+Chk(Zeny,.@q[2])+.@q[2]+" Zeny^000000";
    if (.@q[3]) mes " > "+Chk(getd(.Points$[0]),.@q[3])+.@q[3]+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+.@q[3]+")^000000";
    if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2)
        mes " > "+Chk(countitem(.@q[.@i]),.@q[.@i+1])+((.DisplayID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+.@q[.@i+1]+")^000000";
    if (@qf) { set @qf,0; close; }
    next;
    if (!checkweight(.@q[0],.@q[1])) {
        mes "[Hat Maker [A-C]]";
        mes "^FF0000You need "+(((.@q[1]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000";
        close; }
    set @qe1, getiteminfo(.@q[0],5); set @qe2, getiteminfo(.@q[0],11);
    while(1){
        switch(select(" ~ Purchase ^0055FF"+getitemname(.@q[0])+"^000000:")) {
            case 1:
                if (.@q[2]) set Zeny, Zeny-.@q[2];
                if (.@q[3]) setd .Points$[0], getd(.Points$[0])-.@q[3];
                if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2)
                    delitem .@q[.@i],.@q[.@i+1];
                getitem .@q[0],.@q[1];
                if (.Announce) announce strcharinfo(0)+" has created "+A_An(getitemname(.@q[0]))+"!",0;
                specialeffect2 699;
                close; }}
 
OnInit:
// --------------------- Config ---------------------
// Custom points, if needed: "<variable>","<name to display>"
    setarray .Points$[0],"#CASHPOINTS","Cash Points";
 
    set .Announce,0;    // Announce quest completion? (1: yes / 0: no)
    set .ShowSlot,1;    // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never)
    set .DisplayID,1;   // Show item IDs? (1: yes / 0: no)
    set .ShowZeny,0;    // Show Zeny cost, if any? (1: yes / 0: no)
 
// Shop categories, if needed: "<Shop 1>","<Shop 2>"{,...};
// Duplicate dummy data for any additional shops (bottom of script).
// If no categories, use the second line instead (remove //).
 
    set .Shops$[1],"Headgears[A-C]";
    set .Shops$[2],"Headgears[C-H]";
    set .Shops$[3],"Headgears[H-M]";
    set .Shops$[4],"Headgears[N-P]";
    set .Shops$[7],"Headgears[R-S]";
    set .Shops$[5],"Headgears[S-U]";
    set .Shops$[6],"Headgears[V-Y]";
 
// Add(<shop number>,<reward ID>,<reward amount>,<Zeny cost>,<point cost>,
// <required item ID>,<required item amount>{,...});
// Shop number corresponds with order above (default is 1).
// Note: Do NOT use a reward item more than once!
 
// ---------------- # Hats ------------- //
        // 3D Glasses
    Add(1,5794,1,2000000,0,978,5,975,5,2286,1,969,5);
        //  4 leaf clover in mouth R
    Add(1,5596,1,4000000,0,705,100,706,4,2270,1);
 
// ---------------- A Hats ------------- //
        //  Academy_Graduating_Cap
    Add(1,5407,1,5000000,0,1557,1,7117,100,12040,10,738,5,969,5);
        //  Academy Freshman Hat
    Add(1,5406,1,5000000,0,1557,1,7117,100,12040,10,738,2,969,5);
        //  Amistr Cap
    Add(1,5766,1,3000000,0,2256,1,2354,1,2528,5,982,5,923,50,6072,1);
        //  Angeling Hairpin
    Add(1,5153,1,5000000,0,5084,1);
        //  Angeling Hat
    Add(1,5132,1,4000000,0,5170,1,5074,1);
        // Anubis Helm
    Add(1,5490,1,2000000,0,1045,100,1009,5,724,50,7442,20,969,10);
        //  Aquarius Crown
    Add(1,5513,1,5000000,0,2235,1,995,50,7446,50);
        //  Aquarius Diadem
    Add(1,5512,1,5000000,0,5124,1,995,50,7446,50);
        //  Aries Crown
    Add(1,5546,1,5000000,0,2235,1,994,50,730,20);
        //  Aries Diadem
    Add(1,5545,1,5000000,0,5124,1,994,50,730,20);
        //  Asara Fairy Hat
    Add(1,5505,1,3000000,0,7568,100,982,2,1022,100,1038,50,969,5);
        //  Australian Flag Hat
    Add(1,5264,1,1000000,0,1059,100,7003,200,926,150,4075,1,969,5);
        //  Autumn Leaves
    Add(1,5270,1,5000000,0,7198,200,706,2);
 
// ---------------- B Hats ------------- //
        //  Baby Chick
    Add(1,5283,1,4000000,0,916,300,7063,25,4117,1);
        // Bandit Beard
    Add(1, 2237, 1, 2000000,0,1040,200,1048,50,7122,50,5113,1,969,5);
        //  Bandit hat
    Add(1,5491,1,6000000,0,2221,1,2336,1,724,25);
        //  Baseball Cap
    Add(1,5147,1,2000000,0,2227,1,978,1,1057,100);
        //  Bell Ribbon
    Add(1,5382,1,5000000,0,969,5,10016,2,5083,1);
        //  Bird Nest
    Add(1,5129,1,5000000,0,604,100,916,200);
        // (Black_Elven_Ears)
    Add(1,5820,1,5000000,0,2286,1,983,1);   
        //  Black_Glasses
    Add(1,5401,1,2000000,0,2276,1,718,2,983,1);
        //  Black Tailed Ribbon
    Add(1,5765,1,10000000,0,5278,1,5382,1,671,5,983,2,6072,1);
        //  Black Tea Kochadaden Hat
    Add(1,5427,1,2000000,0,6021,100,7567,100,2221,1,983,5,981,5,4127,1);
        //  Blank Eyes
    Add(1,5102,1,2000000,0,7263,125,2276,1,2239,2,982,5);
        //  Blue Beanie
    Add(1,5236,1,0,0,5076,1,978,5);
        //  Brazil National Flag Hat
    Add(1,5308,1,2000000,0,5147,1,7003,200,979,1,969,5,6072,1);
        // Brazil Beret
    Add(1,5601,1,5000000,0,5170,1,976,1,979,1);
        //  Bride's Flower Crown
    Add(1,5436,1,2000000,0,2207,50,2269,1,2282,1);
        //  Brown Deviruchi Hat
    Add(1,5229,1,1000000,0,5038,1,7562,1,12738,1);
        //  Bubble_Gum_In_Mouth
    Add(1,5597,1,1000000,0,975,2,5113,5,4032,2,4043,2,4013,2,969,5);
        // Bullock Helm
    Add(1,5300,1,5000000,0,2299,1,7448,200,6023,200,7106,200,923,100,5072,1,721,1);
        //  Bunny Top Hat
    Add(1,5378,1,5000000,0,2214,1,5045,1,975,1,740,100);
 
 
// ---------------- 33 out of 37 hats, shop is full ------------- //
    
    // ---------------- C Hats ------------- //
        //Capricorn Crown
    Add(2,5744,1,5000000,0,5165,1,5066,1,997,50,721,50);
        //Capricorn Diadem
    Add(2,5745,1,5000000,0,5124,1,5066,1,997,50,721,50);
        //  Camp Fire Hat
    Add(2,5414,1,2000000,0,7098,50,604,50,1019,50,994,20,969,5);
        //  Cancer Crown
    Add(2,5582,1,5000000,0,2235,1,991,100,7446,50);
        //  Cancer Diadem
    Add(2,5581,1,5000000,0,5124,1,991,100,7446,50);
    //  Captain's Hat
    Add(2,5184,1,4000000,0,5120,5,995,50,983,1);
        //  Carmen Miranda's Hat
    Add(2,5307,1,2000000,0,513,100,514,100,2226,1);
        //  Chicken of Love Hat 
    Add(2,5822,1,1000000,0,916,100,7063,100,975,1,981,1,5283,1);
        //  Chung Hairband
    Add(2,5609,1,3000000,0,5049,1,975,1,7440,50,748,1,6072,1);
        //  Classic Hat
    Add(2,5478,1,5000000,0,2247,1,980,3,7447,10,6072,1);
        //  Close Helmet
    Add(2,5131,1,5000000,0,7095,50,6090,100,999,100,2228,1);
        // Cool Football Hat
    Add(2, 5857, 1, 5000000,0,2424,1,7194,200,520,200,7004,100,978,10,969,10);
        //  Crescent Moon Helm
    Add(2,5142,1,3000000,0,5172,1,1234,1);
        //  Cyclops Eye
    Add(2,5135,1,2000000,0,5104,1,969,1,975,1,980,5,999,250);
        //  Cherub
    Add(2,5443,1,2000000,0,1004,10,7441,50,5074,1,5257,1);
        // Cookie Hat
    Add(2,5260,1,5000000,0,538,1,2502,1,529,1,11002,1);
// ---------------- D Hats ------------- //
        // Deviling Hat
    Add(2,5254,1,4000000,0,5068,1,2255,1,983,5,923,100,1038,100,7420,20,671,5);
        //  Dice Hat
    Add(2,5496,1,2000000,0,706,50,617,50,969,5);
        // Dolor Hat
    Add(2,5563,1,5000000,0,7436,1,7206,200,983,3,6072,1);
        //  Dokebi Hat
    Add(2,5429,1,1000000,0,1021,300,7268,1);
        //  Dokebi Wig
    Add(2,5258,1,2000000,0,1021,100,978,1,976,1,975,1,10005,1,969,5);
        //  Marvelous Wig
    Add(2,5298,1,2000000,0,1021,100,981,1,982,1,978,1,10005,1,969,5);
        //  Drooping Morroc Minion
    Add(2,5671,1,2000000,0,2536,1,7799,15,7157,10,7340,10,7511,5);
        //  Drooping Ninetail
    Add(2,5252,1,5000000,0,976,1,1022,200,754,5);
        
        // ---------------- E Hats ------------- //
        //  Elephant Hat
    Add(2,5259,1,4000000,0,702,100,919,200,6022,1,978,1,969,10);
        //  Emperor's Laurel Crown
    Add(2,5533,1,7000000,0,7298,200,5165,1);
        //  Evil Snake Lord Hat
    Add(2,5364,1,5000000,0,5347,1,975,1,982,1,983,1,7169,1);
        //  Executioner Hat
    Add(2,5304,1,3000000,0,7017,5,2288,1,983,5);
    
        // ---------------- F Hats ------------- //
        //  Fantastic Wig
    Add(2,5276,1,2000000,0,1021,100,975,1,982,1,978,1,10005,1,969,5);
        //  Fish Head Hat
    Add(2,5380,1,3000000,0,1054,10,1023,50,579,100,1249,1);
        //  Fish In Mouth
    Add(2,5403,1,5000000,0,579,100,1023,100,624,50,671,5);
        //  Fisherman's Hat
    Add(2,5317,1,5000000,0,5120,2,976,5,1059,50);
        //  Flying Angel
    Add(2,5210,1,9000000,0,671,5,2254,1,7441,100);
        // Flower Crown
    Add(2,5303,1,5000000,0,7510,10,712,200,2235,1,7198,200,6072,1);
        //  Frog Hat
    Add(2,5447,1,2000000,0,918,200,1061,50);
        //  Frozen Twin Pompom
    Add(2,5390,1,2000000,0,2236,2,978,1,1034,50,995,20);
    
    // ---------------- 36 out of 37 hats, shop is full ------------- //
    
    // ---------------- G Hats ------------- //
        //  Gangster Scarf
    Add(2,5361,1,5000000,0,5096,1,2265,1,6091,1,7566,1,975,5,916,200,7063,20);
        //  Gemini Crown
    Add(2,5570,1,5000000,0,2235,1,996,50,7445,50);
        //  Gemini Diadem
    Add(2,5569,1,5000000,0,5124,1,996,50,7445,50);
        // Glory Football Hat
    Add(2,5859,1,5000000,0,2424,1,7194,200,520,200,7004,100,980,10,969,10);
        //  Green Sheila Hairnet
    Add(2,5785,1,5000000,0,5213,1,979,4);
        //  Gray Beanie
    Add(2,5235,1,0,0,5076,1,975,2,976,2,979,2);
        //Griphon Hat
    Add(2,5660,1,5000000,0,9004,1,7063,100,7048,10,7115,50,6072,1);
    
    // ---------------- H Hats ------------- //
        //  Hairband of Reginleif
    Add(2,5471,1,5000000,0,2254,1,12040,1,7063,100,2235,1,969,5,6072,1);
        //  Happy Wig
    add(3,5273,1,2000000,0,1021,100,975,1,982,1,979,1,10005,1,969,5);
        //  hawk Eyes
    add(3,5516,1,5000000,0,675,30,2296,1,916,100,2614,1);
        // (Hello Mother Hat)
    add(3,5319,1,2000000,0,5074,1,978,1,2221,1,4001,1);
        // Hermode Cap
    add(3,5481,1,10000000,0,2261,1,979,5,992,200,4339,1,1737,1,969,15);
        //  Hibiscus
    add(3,5139,1,2000000,0,748,100,5061,1);
        //  Holy Marcher Hat
    add(3,5225,1,2000000,0,2261,1,978,1,7063,50,983,1);
        // (Holy Marching Hat)
    add(3,5654,1,5000000,0,949,100,7063,100,7440,100,5096,1,4244,1,975,1);
        //  Hunter Hat
    add(3,5383,1,5000000,0,979,1,7445,150,1059,100);
 
// ---------------- I Hats ------------- //
    //  Ice Wing Ear
    Add(3,5610,1,5000000,0,7561,100,7066,300,749,100,4417,1,2286,1,6072,1);
        //  Imp Hat
    add(3,5658,1,2000000,0,9056,1,990,50,7122,30,7097,50,7098,30,6072,1);
        //  Indonesia Beret
    add(3,5580,1,3000000,0,969,10,5170,1,975,1,7828,100);
    
// ---------------- J Hats ------------- //
        //  Judge Cap
    Add(3,5371,1,3000000,0,7445,7,7446,7,7447,7,7448,7,945,100,983,1,733,5);
        // (Jumping_Poring)
    Add(3,5335,1,5000000,0,5053,1,909,100,4001,1,938,100,9001,1,741,1);
 
// ---------------- K Hats ------------- //
        // ID# 5143 (Kabuki_Mask)
    Add(3,5143,1,5000000,0,7153,100,7063,50,4020,1,7187,100);
        //  Kafra Band
    Add(3,5020,1,5000000,0,2258,1,2210,1,7063,10);
        //  Kawaii Ribbon
    Add(3,5140,1,5000000,0,2250,1,2244,1,10007,1);
 
// ---------------- L Hats ------------- //
        //  Legionnaire Hat
    Add(3,5418,1,5000000,0,5016,1,1098,200,975,5,1004,10);
        //  Leo Crown
    Add(3,5588,1,5000000,0,2235,1,994,50,7446,100);
        //  Leo Diadem
    Add(3,5589,1,5000000,0,5124,1,994,50,7446,200);
        //  Libra Crown
    Add(3,5662,1,5000000,0,2235,1,6075,50,7445,200);
        //  Libra Diadem
    Add(3,5663,1,5000000,0,5124,1,6075,75,7445,100);
        //  Linguistic Book Hat
    Add(3,5422,1,2000000,0,1550,2,1006,5);
        //  Lion Mask
    Add(3,5130,1,2000000,0,1048,100,7564,150,517,50);
        //  Listless Turtle
    Add(3,5611,1,4000000,0,967,150,7070,50,979,2,6072,1);
        //  Little Angel Doll
    Add(3,5324,1,10000000,0,5671,1,2285,1,4316,3,4394,3,978,5,982,5,7212,100,7268,100,754,10);
        //  Lollipop
    Add(3,5445,1,5000000,0,529,200,530,200,4006,1,4033,1,969,5);
        //  Love Daddy Hat
    Add(3,5489,1,3000000,0,994,100,976,1,5016,1);
        //  Luxurious Wedding Veil
    Add(3,5562,1,5000000,0,2206,1,1059,200,7751,100);
        
// ---------------- 36 out of 37 hats, shop is full ------------- //
 
// ---------------- M Hats ------------- //
    //Magic Stone Hat
    Add(4,5753,1,5000000,0,5241,1,714,10,5052,1,7522,10,6111,10,640,10,12040,20,7326,30,6090,10,6089,50,6072,1);
        //  Magnolia Hat
    Add(4,5365,1,1500000,0,574,150,7031,150);
        //  Maiden's Twin Ribbon
    Add(4,5187,1,7000000,0,5085,1,7166,250);
        //  Minstrel Song Hat
    Add(4,5751,1,5000000,0,5435,1,4209,1,4094,1,6091,1,7107,200);
        //  Mischievous Fairy
    Add(4,5402,1,4000000,0,2286,1,6395,25);
        // Mitra
    Add(4,5747,1,8000000,0,671,10,5036,1,7446,100,2513,5,12002,50,7285,1);
 
// ---------------- N Hats ------------- //
        //  Neck Tie
    Add(4,5442,1,5000000,0,978,2,7166,100);
        //  Necromancer's Hood
    Add(4,5502,1,2000000,0,5072,2,5066,2,2502,5,976,5,7448,100);
        //  Neko Mimi
    Add(4,5099,1,5000000,0,7267,300,7171,300,949,100);
        // (Neko_Mimi_Kafra)
    Add(4,5387,1,3000000,0,5020,1,7267,150,7171,150,949,50);
        //Nipper Crab Hairpin
    Add(4,5473,1,3000000,0,5507,1,960,200,6072,1);
        //  Noah Hat
    Add(4,5759,1,5000000,0,5349,1,4008,1,7063,250,978,5,982,5,976,1,6072,1);
        //  Noble Hat
    Add(4,5469,1,5000000,0,5075,1,975,5,969,5,7101,200,6072,1);
        //  Note Headphones 
    Add(4,5151,1,5000000,0,5001,1,978,1,991,200);
 
// ---------------- O Hats ------------- //
        //  Observer
    Add(4,5315,1,1000000,0,7095,1,7094,50,746,100); 
        // ID# 5554 (Octopus_Hat)
    Add(4,5554,1,3000000,0,5045,1,5035,1,962,100);
        //  Odin Mask 
    Add(4,5483,1,5000000,0,7511,100,5104,1,2291,1,2263,1,976,1,7218,1,969,1);
        //  Orc Hero Headdress
    Add(4,5375,1,5000000,0,931,200,2299,1,7126,70,7269,1);
        //  Orchid Hairband
    Add(4,5370,1,5000000,0,7510,2,2270,1,710,10);
 
// ---------------- P Hats ------------- //
        //  Parade Hat
    Add(4,5468,1,5000000,0,1059,300,5172,2,2244,1);
        // Passion Football Hat
    Add(4, 5856, 1, 5000000, 0, 2424, 1, 7194, 200, 520, 200, 7004, 100, 975, 10,969, 10);
        //  Peacock Feather
    Add(4,5519,1,1000000,0,7115,200,2229,1,7441,25,7440,25);
        //  Peco-Peco Ears
    Add(4,5358,1,1000000,0,5074,1,7101,150);
        //  Pink Beanie
    Add(4,5237,1,0,0,5076,1,981,5);
        //  Pink Night Cap
    Add(4,5507,1,2000000,0,10015,1,10007,1,975,1,7063,200);
        //  Pin Wheel Hairpin
    Add(4,5285,1,2000000,0,7192,200,7111,50,7038,50,979,5);
        // Pirate Dagger
    Add(4, 5305, 1, 5000000, 0, 2287, 1, 5096, 1, 2265, 1, 6091, 1, 982, 5, 7063, 100, 969, 5);
        //  Pirate's Pride 
    Add(4,5501,1,3000000,0,5019,1,4073,1,7038,100);
        //  Pisces Crown
    Add(4,5515,1,5000000,0,2235,1,1023,200,991,100);
        //  Pisces Diadem
    Add(4,5514,1,5000000,0,5124,1,1023,200,991,100);
        // ID# 5499 (Pizza_Hat)
    Add(4,5499,1,3000000,0,548,50,580,50,7564,50,7031,50);
        //  Poporing Hat
    Add(4,5352,1,1000000,0,5035,1,979,1,938,100);
        //  Power Of Thor
    Add(4,5495,1,2000000,0,2254,1,7063,200,978,1,982,1,979,1,7510,1);
        //  Puppy Hat
    Add(4,5182,1,5000000,0,5008,1,5118,1,1060,100);
        //  Pussy Cat Bell
    Add(4,5051,1,3000000,0,7047,200,5091,1,6072,1);
    
    //-------------38 out of 37 hats, shop is full----//
 
    // ---------------- R Hats ------------- //
        //  Rasta Wig
    Add(7,5571,1,5000000,0,983,5,7152,100);
        //  Raven Cap
    Add(7,5530,1,2000000,0,7205,50,916,200);
        // (Rune Circlet)
    Add(7,5746,1,5000000,0,5007,1,12735,100,12738,50,7754,1);       
        //  Red Comb
    Add(7,5444,1,5000000,0,975,5,999,100);
        //  Red Glasses
    Add(7,5288,1,2000000,0,2276,1,998,100,718,2);
        //  Red Minstrel Hat
    Add(7,5435,1,5000000,0,2252,1,975,10,7063,200);
        //  Red Wing Hat
    Add(7,5690,1,4000000,0,5172,1,2254,1,975,1,7166,120);
        //  Red Hat
    Add(7,5472,1,4000000,0,5019,1,999,150,982,3,975,4,6072,1);]
        //  Remover Hat
    Add(29,5777,1,5000000,0,5120,1,7319,150,975,3,625,10,6072,1);
        //  Rideword Hat
    Add(7,5208,1,2000000,0,1550,1,1556,1,4185,1);
        //  RJC Katyusha Flower
    Add(7,5547,1,8000000,0,7510,2,975,1,2210,1);
        // RTC First Place
    Add(7,5603,1,5000000,0,671,5,12738,5,616,3,6089,20,7450,1);
        // RTC Second Place
    Add(7,5604,1,5000000,0,671,5,12738,5,616,3,6089,20,2662,1);
        // RTC Third Place
    Add(7,5605,1,5000000,0,671,5,12738,5,616,3,6089,20,6224,1);
        // RWC Dragon Helm Copper
    Add(7,5453,1,5000000,0,671,5,1036,100,7443,10,7420,20,2677,1,2679,1,2678,1);
        // RWC Dragon Helm Gold
    Add(7,5451,1,5000000,0,671,5,1036,100,7443,10,7420,20,7451,1,4001,1);
        // RWC Dragon Helm Silver
    Add(7,5452,1,5000000,0,671,5,1036,100,7443,10,7420,20,4004,1,1231,1);
    
    //-------------17 out of 37 hats, shop is full----//
    
    // ---------------- S Hats ------------- //
        //  Sakura Coronet
    Add(7,5768,1,5000000,0,5436,1,5085,1,712,50,969,2,6072,1);
        //  Sakura Milk Tea Hat
    Add(7,5524,1,5000000,0,2227,1,7567,100);
        //  Sakura Mist Hat
    Add(7,5523,1,7000000,0,710,50,5123,1,2614,1);
        //  Sales Banner
    Add(7,5100,1,1000000,0,2272,1,7451,1,983,1);
        //  Samambaia
    Add(7,5511,1,2000000,0,7194,200,2233,1,979,3,7445,100);
        //  Satellite Hairband
    Add(7,5212,1,5000000,0,5011,1,5052,1,4103,1,7446,150);
        //  Savage Babe Hat
    Add(7,5572,1,3000000,0,4017,1,1028,150,627,50,6072,1);
        //  Scorpio Crown
    Add(7,5676,1,5000000,0,2235,1,993,100,7448,100,904,100);
        //  Scoripio Diadem
    Add(7,5677,1,5000000,0,5124,1,993,100,7448,200,904,100);
        //  Scuba Mask
    Add(7,5397,1,5000000,0,7325,5,2205,1,7355,1);
        // Scooter Helmet
    Add(7,5656,1,5000000,0,2271,1,2229,1,2225,1,6072,1);
        //  Selendang
    Add(7,5355,1,2000000,0,1059,200,7038,50,982,2,5126,1);
        //  Shaman Hat
    Add(7,5665,1,10000000,0,2255,1,5045,1,975,1);
        //  Shaman's Coif
    Add(7,5479,1,5000000,0,1059,50,5665,1);
        //  Shark Hat
    Add(7,5508,1,2000000,0,951,300,5014,1,1249,1,1053,50,624,10);
        //  Sigrun's Wings
    Add(7,5592,1,6000000,0,7441,100,5074,1);
        //  Sheila Hairnet
    Add(5,5213,1,4000000,0,949,100,7063,10,2210,1,1059,70);
        //  Shining Electric Bulb
    Add(5,5310,1,2000000,0,5034,1,7327,5,640,20,954,100);
        //  Shiny Wig
    Add(5,5274,1,2000000,0,1021,100,980,2,982,1,10005,1,969,5);
        //  Shower Cap
    Add(5,5510,1,2000000,0,2227,1,975,2,982,2,7200,100);
        //  Side Cap
    Add(5,5535,1,2000000,0,5122,1,919,100,6022,2,983,2,981,2,747,50);
        //  Silver Tiara
    Add(5,5149,1,2000000,0,7754,1,2233,1,675,5,2294,1);
        // Sky Hat
    Add(5,5465,1,3000000,0,7115,200,981,1,4006,1,4150,1,2245,1,6072,1);
        //  Sloth Hat
    Add(5,5761,1,5000000,0,754,1,2213,1,919,200);
        //  Small_Horn_Of_Devil
    Add(5,18503,1,1000000,0,4045,1,4019,1,4027,1,4006,1,4030,1,4196,2,969,5);
        //  Snake Head Hat
    Add(5,5388,1,2000000,0,10006,1,926,100,936,20,979,1,4117,1);
        //  Sniper Goggles
    Add(5,5748,1,2000000,0,2274,1,2296,1,2225,1,993,100,980,5);
        //  Solar Hat
    Add(5,5450,1,5000000,0,724,10,7938,25);
        //  Songkok
    Add(5,5354,1,2000000,0,1000,50,1001,50,1234,1,976,1,975,1,2227,1);
        //  Soul Ring
    Add(5,5257,1,5000000,0,2254,1,2282,1,7064,100,969,5);
        //  Spare_Card
    Add(5,5536,1,1000000,0,4247,2,4009,2,4041,2,4015,2,4040,2,969,5);
        //  Sting Hat
    Add(5,5509,1,5000000,0,7004,200,997,50,7020,2,687,20,2615,1);
        // Sunflower Hairpin
    Add(5,5103,1,3000000,0,2253,1,5061,1,976,1,4091,1);
    
//-------------34 out of 37 hats, shop is open----//
 
// ---------------- T Hats ------------- //
        //  Tanigumi Girl Doll
    Add(5,5526,1,5000000,0,634,5,2513,1,5061,1,7166,200,980,5,975,5);
        //  Taurus Crown
    Add(5,5550,1,5000000,0,2235,1,997,50,7106,100,7448,200,5066,1);
        //  Taurus Diadem
    Add(5,5549,1,5000000,0,5124,1,997,50,7106,100,7448,200,5072,1);
        //  Tiger Mask
    Add(5,5098,1,3000000,0,1029,10,2297,1,7267,50);
        // Item ID# 5682 (Triangle_Rune_Cap)
    Add(5,5682,1,5000000,0,5172,1,975,2,4042,1,7166,100,2226,1);
        //  Tiraya Bonnet
    Add(5,5395,1,5000000,0,983,5,978,5,5045,1,981,5);
        //  Torch Cap
    Add(5,5430,1,5000000,0,1133,1,2235,1,7122,200,724,20,7135,100,7097,100);
        //  Twin Pompom by JB
    Add(5,5384,1,2000000,0,5390,1,975,1);
 
// ---------------- U Hats ------------- //
    //  Umbrella Hat
    Add(5,5316,1,5000000,0,2221,1,2227,1,6075,5,12020,50);
    
    // ---------------- V Hats ------------- //
        //  Valkyrie Feather Band
    Add(6,5256,1,5000000,0,7510,1,2210,1,7063,50);
        //  Vanil Hat
    Add(6,5289,1,3000000,0,688,30,690,30,692,30,1131,1,1133,1);
        //  Victory Football Hat
    Add(6, 5858, 1, 5000000, 0, 2424, 1, 7194, 200, 520, 200, 7004, 100, 979, 10,969, 10);
        //  Victory Hairband
    Add(6,5301,1,2000000,0,5052,1,5049,1);
        //  Virgo Crown
    Add(6,5598,1,5000000,0,2235,1,997,50,726,50,1049,200);
        // Virgo Diadem
    Add(6,5599,1,5000000,0,5124,1,997,50,726,50,1049,100);
 
// ---------------- W Hats ------------- //
        //  Wanderer's Sakkat
    Add(6,5579,1,9000000,0,7446,100,6089,100,2280,1);
        //  Wandering Wolf Hat
    Add(6,5498,1,9000000,0,7030,400,626,5,5075,1);
        //  Whikebine's Black Cat Ears
    Add(6,5360,1,1000000,0,5057,1,7206,100);
        //  Whisper Mask
    Add(6,5294,1,3000000,0,7019,1,7567,50);
        // (White_Deviruchi_Cap)
    Add(6,5228,1,5000000,0,5038,1,982,1,983,1);
        //  White Petal
    Add(6,5206,1,3000000,0,2269,1,982,1,2207,10);
        //  Wild Rose Hat
    Add(6,5557,1,5000000,0,5382,1,7206,200,6020,100,983,5,969,10);
        // Wind Milestone
    Add(6,5466,1,3000000,0,5172,1,7447,100,7440,50,4040,1,4027,1,6072,1);
 
 
// ---------------- Y Hats ------------- //
        // ID# 5242 (Yellow_Mage_Hat)
    Add(6,5242,1,3000000,0,5027,1,976,5);
        //  Yellow Drooping Cat
    Add(6,5234,1,5000000,0,2213,1,638,1,1022,300,976,1);
        //  Yellow Sheila Hairnet
    Add(6,5783,1,5000000,0,976,3,5213,1,980,1);
        //  Yoyo Hat
    Add(6,5385,1,2000000,0,753,1,4044,1);
    
    //-------------27 out of 37 hats, shop is open----//
 
// --------------------------------------------------
    for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1)
        npcshopdelitem "qshop"+.@i,909;
    end;
}
 
// -------- Dummy data (duplicate as needed) --------
-   shop    qshop1  -1,909:-1
Viewed 832 times, submitted by Guest.