viewing paste SistemaVIP | Athena

Posted on the | Last edited on
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
prontera,147,174,5  script  SistemaVIP  91,{
 
function Go; function Disp; function Pick; function Restrict;
 
function Go {
    lastwarp$ = getarg(0);
    lastwarpx = getarg(1,0);
    lastwarpy = getarg(2,0);
    warp getarg(0),getarg(1,0),getarg(2,0);
    end;
}
function Disp {
    if (getargcount() < 3)
        @menu$ = getarg(0);
    else {
        @menu$ = "";
        for (.@i = getarg(1); .@i <= getarg(2); .@i++)
            @menu$ = @menu$+getarg(0)+" "+.@i+":";
    }
    return;
}
function Pick {
    .@warp_block = @warp_block;
    @warp_block = 0;
    .@select = select(@menu$);
    if (getarg(0) == "") {
        .@i = .@select;
        .@map$ = getarg(.@i);
    } else {
        .@i = .@select-getarg(1,0);
        .@map$ = getarg(0)+((.@i<10)?"0":"")+.@i;
    }
    if (.@warp_block & (1<<.@select)) {
        message strcharinfo(0),"This map is not enabled in "+(RENEWAL?"":"Pre-")+"Renewal.";
        end;
    }
    .@x = @c[.@i*2];
    .@y = @c[.@i*2+1];
    deletearray @c[0],getarraysize(@c);
    Go(.@map$,.@x,.@y);
}
function Restrict {
    if ((getarg(0) == "RE" && !RENEWAL) || (getarg(0) == "Pre-RE" && RENEWAL)) {
        if (getarg(1,0)) {
            @warp_block = 0;
            for (.@i = 1; .@i < getargcount(); .@i++)
                @warp_block = @warp_block | (1<<getarg(.@i));
        } else {
            message strcharinfo(0),"This map is not enabled in "+(RENEWAL?"":"Pre-")+"Renewal.";
            end;
        }
    }
    return;
}
 
set @level,1;                       // Nivel VIP
set @nome$,"[SistemaVIP]";      // Nome do NPC
set @mapvip$,"prontera";            // Mapa da Sala VIP
set .@ResetStat,0// Zeny for stat reset
set .@ResetSkill,0; // Zeny for skill reset
set .@ResetBoth,0// Zeny for resetting both together
set .zenycost,0; // Set base cost in zeny of the card remover services
set .percardcost,0; // set cost per card of the card remover services
set .faildestroy,0; // Should the card remover have a chance of failure that destroys items? 1 = Yes, 0 = No.
 
if(getgroupid() >= @level){
 
    mes @nome$;
    mes "Olá "+strcharinfo(0)+", o que deseja?";
    next;
    switch(select("^FF3355Resetar Habilidades:Resetar Atributos:Removedora de Cartas:Buff VIP:Portal VIP^000000:Sair")) {
    case 1:
    sc_end SC_ALL;
        resetskill;
        mes "Pronto!";
        close;
    
    case 2:
        mes @nome$;
        resetstatus;
        mes "Pronto!";
        close;
    
    case 3:
        mes @nome$;
        mes "Muito bem. Qual item devo examinar para você?";
        next;
 
        setarray .@position$[1], "Cabeça","Armadura","Mão Esquerda","Mão Direita","Capa","Sapatos","Acessório 1","Acessório 2","Item Superior 1","Item Superior 2";
        set .@menu$,"";
        for( set .@i,1; .@i <= 10; set .@i,.@i+1 )
        {
            if( getequipisequiped(.@i) )
            set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
 
            set .@menu$, .@menu$ + ":";
        }
        set .@part,select(.@menu$);
        if(!getequipisequiped(.@part)) {
            mes "[Sistema VIP]";
            mes "Meu jovem... Você não está equipado com nenhum item deste tipo.";
            close;
        }
        if(getequipcardcnt(.@part) == 0) {
            mes "[Velha Sábia]";
            mes "Meu jovem... Nenhuma carta foi colocada neste item. Não posso fazer nada com isto.";
            close;
        }
        set .@cardcount,getequipcardcnt(.@part);
        
        if (!checkweight(1202,(.@cardcount+1))) { 
            mes "^3355FFAguarde um minuto!";
            mes "Não posso lhe oferecer meus serviços";
            mes "para você porque,";
            mes "você está carregando muita";
            mes "coisa. Coloque seus itens extras no";
            mes "armazém das Kafras e depois volte~";
            close;
        }
            
        mes "[Sistema VIP]";
        successremovecards .@part;
        mes "Facil demais!";
        close;
    
    case 4:
      specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,640000,10;
      specialeffect2 EF_BLESSING; sc_start SC_BLESSING,640000,10;
      specialeffect2 AL_ANGELUS; sc_start SC_ANGELUS,640000,10;
      specialeffect2 HP_ASSUMPTIO; sc_start SC_ASSUMPTIO,640000,10;
      specialeffect2 PR_IMPOSITIO; sc_start SC_IMPOSITIO,640000,10;
      sc_start SC_FOOD_STR,1200000,5;
      sc_start SC_FOOD_AGI,1200000,5;
      sc_start SC_FOOD_VIT,1200000,5;
      sc_start SC_FOOD_DEX,1200000,5;
      sc_start SC_FOOD_LUK,1200000,5;
      
      percentheal 100,100;
      atcommand "@repairall";
      close;
 
    case 5:
        mes @nome$;
        mes "Olá, selecione seu destino:";
        switch(select("Dungeons:Fields")) {
            case 1:
                // --------------------------------------------------
                // Dungeons:
                // --------------------------------------------------
                menu    "Abyss Lakes",D1, "Amatsu Dungeon",D2, "Anthell",D3,
                "Ayothaya Dungeon",D4, "Beach Dungeon",D5, "Bifrost Tower",D41,
                "Bio Labs",D6, "Brasilis Dungeon",D7, "Byalan Dungeon",D8, "Clock Tower",D9,
                "Coal Mines",D10, "Culvert",D11, "Cursed Abbey",D12, "Dewata Dungeon",D13,
                "Einbroch Dungeon",D14, "Gefenia",D15, "Geffen Dungeon",D16,
                "Glast Heim",D17, "Gonryun Dungeon",D18, "Hidden Dungeon",D19,
                "Ice Dungeon",D20, "Juperos",D21, "Kiel Dungeon",D22, "Louyang Dungeon",D23,
                "Magma Dungeon",D24, "Malangdo Dungeon",D25, "Moscovia Dungeon",D26,
                "Nidhogg's Dungeon",D27, "Odin Temple",D28, "Orc Dungeon",D29,
                "Payon Dungeon",D30, "Pyramids",D31, "Rachel Sanctuary",D32,
                "Scaraba Hole",D33, "Sphinx",D34, "Sunken Ship",D35, "Thanatos Tower",D36,
                "Thor Volcano",D37, "Toy Factory",D38, "Turtle Dungeon",D39, "Umbala Dungeon",D40;
 
                D1: setarray @c[2],261,272,275,270,116,27;
                    Disp("Abyss Lakes",1,3); Pick("abyss_");
                D2: setarray @c[2],228,11,34,41,119,14;
                    Disp("Amatsu Dungeon",1,3); Pick("ama_dun");
                D3: setarray @c[2],35,262,168,170;
                    Disp("Anthell",1,2); Pick("anthell");
                D4: setarray @c[2],275,19,24,26;
                    Disp("Ancient Shrine Maze:Inside Ancient Shrine"); Pick("ayo_dun");
                D5: setarray @c[2],266,67,255,244,23,260;
                    Disp("Beach Dungeon",1,3); Pick("","beach_dun","beach_dun2","beach_dun3");
                D6: Restrict("RE",4);
                    setarray @c[2],150,288,150,18,140,134,244,52;
                    Disp("Bio Lab",1,4); Pick("lhz_dun");
                D7: Restrict("RE");
                    setarray @c[2],87,47,262,262;
                    Disp("Brasilis Dungeon",1,2); Pick("bra_dun");
                D8: Restrict("RE",6);
                    setarray @c[0],168,168,253,252,236,204,32,63,26,27,141,187;
                    Disp("Byalan Dungeon",1,6); Pick("iz_dun",1);
                D9: setarray @c[2],199,159,148,283,65,147,56,155,297,25,127,169,277,178,268,74;
                    Disp("Clock Tower 1:Clock Tower 2:Clock Tower 3:Clock Tower 4:Basement 1:Basement 2:Basement 3:Basement 4");
                    Pick("","c_tower1","c_tower2","c_tower3","c_tower4","alde_dun01","alde_dun02","alde_dun03","alde_dun04");
                D10: setarray @c[2],52,17,381,343,302,262;
                    Disp("Coal Mines",1,3); Pick("mjo_dun");
                D11: setarray @c[2],131,247,19,19,180,169,100,92;
                    Disp("Culvert",1,4); Pick("","prt_sewb1","prt_sewb2","prt_sewb3","prt_sewb4");
                D12: setarray @c[2],51,14,150,11,120,10;
                    Disp("Cursed Abbey",1,3); Pick("abbey");
                D13: Restrict("RE");
                    setarray @c[2],285,160,299,29;
                    Disp("Dewata Dungeon",1,2); Pick("dew_dun");
                D14: setarray @c[2],22,14,292,290;
                    Disp("Einbroch Dungeon",1,2); Pick("ein_dun");
                D15: setarray @c[2],40,103,203,34,266,168,130,272;
                    Disp("Gefenia",1,4); Pick("gefenia",0);
                D16: setarray @c[0],104,99,115,236,106,132,203,200;
                    Disp("Geffen Dungeon",1,4); Pick("gef_dun",1);
                D17: setarray @c[2],370,304,199,29,104,25,150,15,157,287,147,15,258,255,108,291,171,283,68,277,156,7,12,7,133,271,224,274,14,70,150,14;
                    Disp("Entrance:Castle 1:Castle 2:Chivalry 1:Chivalry 2:Churchyard:Culvert 1:Culvert 2:Culvert 3:Culvert 4:St. Abbey:Staircase Dungeon:Underground Cave 1:Underground Cave 2:Underground Prison 1:Underground Prison 2");
                    Pick("","glast_01","gl_cas01","gl_cas02","gl_knt01","gl_knt02","gl_chyard","gl_sew01","gl_sew02","gl_sew03","gl_sew04","gl_church","gl_step","gl_dun01","gl_dun02","gl_prison","gl_prison1");
                D18: setarray @c[2],153,53,28,113,68,16;
                    Disp("Gonryun Dungeon",1,3); Pick("gon_dun");
                D19: setarray @c[2],176,7,93,20,23,8;
                    Disp("Hidden Dungeon",1,3); Pick("prt_maze");
                D20: setarray @c[2],157,14,151,155,149,22,33,158;
                    Disp("Ice Dungeon",1,4); Pick("ice_dun");
                D21: setarray @c[2],140,51,53,247,37,63,150,285;
                    Disp("Entrance:Juperos 1:Juperos 2:Core");
                    Pick("","jupe_cave","juperos_01","juperos_02","jupe_core");
                D22: setarray @c[2],28,226,41,198;
                    Disp("Kiel Dungeon",1,2); Pick("kh_dun");
                D23: setarray @c[2],218,196,282,20,165,38;
                    Disp("The Royal Tomb:Inside the Royal Tomb:Suei Long Gon"); Pick("lou_dun");
                D24: setarray @c[2],126,68,47,30;
                    Disp("Magma Dungeon",1,2); Pick("mag_dun");
                D25: Restrict("RE");
                    setarray @c[2],33,230;
                    Disp("Malangdo Dungeon",1,1); Pick("mal_dun");
                D26: setarray @c[2],189,48,165,30,32,135;
                    Disp("Moscovia Dungeon",1,3); Pick("mosk_dun");
                D27: setarray @c[2],61,239,60,271;
                    Disp("Nidhogg's Dungeon",1,2); Pick("nyd_dun");
                D28: setarray @c[2],298,167,224,149,266,280;
                    Disp("Odin Temple",1,3); Pick("odin_tem");
                D29: setarray @c[2],32,170,21,185;
                    Disp("Orc Dungeon",1,2); Pick("orcsdun");
                D30: setarray @c[0],21,183,19,33,19,63,155,159,201,204;
                    Disp("Payon Dungeon",1,5); Pick("pay_dun",1);
                D31: Restrict("RE",7,8);
                    setarray @c[2],192,9,10,192,100,92,181,11,94,96,192,8,94,96,192,8;
                    Disp("Pyramids 1:Pyramids 2:Pyramids 3:Pyramids 4:Basement 1:Basement 2:Basement 1 - Nightmare Mode:Basement 2 - Nightmare Mode");
                    Pick("","moc_pryd01","moc_pryd02","moc_pryd03","moc_pryd04","moc_pryd05","moc_pryd06","moc_prydn1","moc_prydn2");
                D32: setarray @c[2],140,11,32,21,8,149,204,218,150,9;
                    Disp("Rachel Sanctuary",1,5); Pick("ra_san");
                D33: Restrict("RE");
                    setarray @c[2],364,44,101,141;
                    Disp("Scaraba Hole",1,2); Pick("dic_dun");
                D34: setarray @c[2],288,9,149,81,210,54,10,222,100,99;
                    Disp("Sphinx",1,5); Pick("","in_sphinx1","in_sphinx2","in_sphinx3","in_sphinx4","in_sphinx5");
                D35: setarray @c[2],69,24,102,27;
                    Disp("Sunken Ship",1,2); Pick("treasure");
                D36: setarray @c[2],150,39,150,136,220,158,59,143,62,11,89,221,35,166,93,148,29,107,159,138,19,20,130,52;
                    Disp("Thanatos Tower",1,12); Pick("tha_t");
                D37: setarray @c[2],21,228,75,205,34,272;
                    Disp("Thor Volcano",1,3); Pick("thor_v");
                D38: setarray @c[2],205,15,129,133;
                    Disp("Toy Factory",1,2); Pick("xmas_dun");
                D39: setarray @c[2],154,49,148,261,132,189,100,192;
                    Disp("Entrance:Turtle Dungeon 1:Turtle Dungeon 2:Turtle Dungeon 3"); Pick("tur_dun");
                D40: Restrict("Pre-RE",1,2);
                    setarray @c[2],42,31,48,30,204,78;
                    Disp("Carpenter's Shop in the Tree:Passage to a Foreign World:Hvergermil's Fountain");
                    Pick("","um_dun01","um_dun02","yggdrasil01");
                D41: Restrict("RE");
                    setarray @c[2],57,13,64,88,45,14,26,23;
                    Disp("Bifrost Tower",1,4); Pick("ecl_tdun");
            case 2:
                // --------------------------------------------------
                // Fields:
                // --------------------------------------------------
                menu    "Amatsu Fields",F1, "Ayothaya Fields",F2, "Bifrost Fields", F3,
                        "Brasilis Fields",F4, "Comodo Fields",F5, "Dewata Fields",F6,
                        "Eclage Fields",F7, "Einbroch Fields",F8, "El Dicastes Fields",F9,
                        "Geffen Fields",F10, "Gonryun Fields",F11, "Hugel Fields",F12,
                        "Lighthalzen Fields",F13, "Louyang Field",F14, "Lutie Field",F15,
                        "Malaya Fields",F16, "Manuk Fields",F17, "Mjolnir Fields",F18,
                        "Moscovia Fields",F19, "Niflheim Fields",F20, "Payon Forests",F21,
                        "Prontera Fields",F22, "Rachel Fields",F23, "Sograt Deserts",F24,
                        "Splendide Fields",F25, "Umbala Fields",F26, "Veins Fields",F27,
                        "Yuno Fields",F28;
 
                F1: setarray @c[2],190,197;
                    Disp("Amatsu Field",1,1); Pick("ama_fild");
                F2: setarray @c[2],173,134,212,150;
                    Disp("Ayothaya Field",1,2); Pick("ayo_fild");
                F3: Restrict("RE");
                    setarray @c[2],193,220,220,187;
                    Disp("Bifrost Field",1,2); Pick("bif_fild");
                F4: Restrict("RE");
                    setarray @c[2],74,32;
                    Disp("Brasilis Field",1,1); Pick("bra_fild");
                F5: Restrict("Pre-RE",5);
                    setarray @c[2],180,178,231,160,191,172,228,194,224,203,190,223,234,177,194,175,172,172;
                    Disp("Comodo Field",1,9); Pick("cmd_fild");
                F6: Restrict("RE");
                    setarray @c[2],371,212;
                    Disp("Dewata Field",1,1); Pick("dew_fild");
                F7: Restrict("RE");
                    setarray @c[2],97,314;
                    Disp("Eclage Field",1,1); Pick("ecl_fild");
                F8: Restrict("Pre-RE",2,10);
                    setarray @c[2],142,225,182,141,187,228,185,173,216,173,195,148,272,220,173,214,207,174,196,200;
                    Disp("Einbroch Field",1,10); Pick("ein_fild");
                F9: Restrict("RE");
                    setarray @c[2],143,132,143,217;
                    Disp("El Dicastes Field",1,2); Pick("dic_fild");
                F10: Restrict("Pre-RE",13,15);
                    setarray @c[0],46,199,213,204,195,212,257,192,188,171,166,263,248,158,195,191,186,183,221,117,178,218,136,328,240,181,235,235,211,185;
                    Disp("Geffen Field",0,14); Pick("gef_fild",1);
                F11: setarray @c[2],220,227;
                    Disp("Gonryun Field",1,1); Pick("gon_fild");
                F12: Restrict("Pre-RE",3,7);
                    setarray @c[2],268,101,222,193,232,185,252,189,196,106,216,220,227,197;
                    Disp("Hugel Field",1,7); Pick("hu_fild");
                F13: setarray @c[2],240,179,185,235,240,226;
                    Disp("Lighthalzen Field",1,3); Pick("lhz_fild");
                F14: setarray @c[2],229,187;
                    Disp("Louyang Field",1,1); Pick("lou_fild");
                F15: setarray @c[2],115,145;
                    Disp("Lutie Field",1,1); Pick("xmas_fild");
                F16: Restrict("RE");
                    setarray @c[2],40,272,207,180;
                    Disp("Malaya Field",1,2); Pick("ma_fild");
                F17: setarray @c[2],35,236,35,262,84,365;
                    Disp("Manuk Field",1,3); Pick("man_fild");
                F18: setarray @c[2],204,120,175,193,208,213,179,180,181,240,195,270,235,202,188,215,205,144,245,223,180,206,196,208;
                    Disp("Mjolnir Field",1,12); Pick("mjolnir_");
                F19: setarray @c[2],82,104,131,147;
                    Disp("Moscovia Field",1,2); Pick("mosk_fild");
                F20: setarray @c[2],215,229,167,234;
                    Disp("Niflheim Field",1,2); Pick("nif_fild");
                F21: Restrict("Pre-RE",5,11);
                    setarray @c[2],158,206,151,219,205,148,186,247,134,204,193,235,200,177,137,189,201,224,160,205,194,150;
                    Disp("Payon Forest",1,11); Pick("pay_fild");
                F22: setarray @c[0],208,227,190,206,240,206,190,143,307,252,239,213,185,188,193,194,187,218,210,183,195,149,198,164;
                    Disp("Prontera Field",0,11); Pick("prt_fild",1);
                F23: Restrict("Pre-RE",2,7,9,10,11,13);
                    setarray @c[2],192,162,235,166,202,206,202,208,225,202,202,214,263,196,217,201,87,121,277,181,221,185,175,200,174,197;
                    Disp("Rachel Field",1,13); Pick("ra_fild");
                F24: setarray @c[2],219,205,177,206,194,182,224,170,198,216,156,187,185,263,206,228,208,238,209,223,85,97,207,202,31,195,38,195;
                    Disp("Sograt Desert 1:Sograt Desert 2:Sograt Desert 3:Sograt Desert 7:Sograt Desert 11:Sograt Desert 12:Sograt Desert 13:Sograt Desert 16:Sograt Desert 17:Sograt Desert 18:Sograt Desert 19:Sograt Desert 20:Sograt Desert 21:Sograt Desert 22");
                    Pick("","moc_fild01","moc_fild02","moc_fild03","moc_fild07","moc_fild11","moc_fild12","moc_fild13","moc_fild16","moc_fild17","moc_fild18","moc_fild19","moc_fild20","moc_fild21","moc_fild22");
                F25: setarray @c[2],175,186,236,184,188,204;
                    Disp("Splendide Field",1,3); Pick("spl_fild");
                F26: setarray @c[2],217,206,223,221,237,215,202,197;
                    Disp("Umbala Field",1,4); Pick("um_fild");
                F27: Restrict("Pre-RE",5);
                    setarray @c[2],186,175,196,370,222,45,51,250,202,324,150,223,149,307;
                    Disp("Veins Field",1,7); Pick("ve_fild");
                F28: Restrict("Pre-RE",5,10);
                    setarray @c[2],189,224,192,207,221,157,226,199,223,177,187,232,231,174,196,203,183,214,200,124,195,226,210,304;
                    Disp("Yuno Field",1,12); Pick("yuno_fild");
        }
    
    case 6:
        next;
        mes @nome$;
        mes "Certo, volte quando quiser!";
        close;
        }
    }
 
    // mensagem pra jogadores não vip
    mes @nome$;
    mes "Você não é um Jogador VIP!";
    mes "Este NPC é apenas para Jogadores VIP";
    mes "Adquira já o seu vip no nosso site www.google.com.br";
    close;
}
Viewed 2142 times, submitted by Envolvents.