viewing paste Unknown #5946 | Diff

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 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
Index: src/config/core.h
===================================================================
--- src/config/core.h   (revision 17330)
+++ src/config/core.h   (working copy)
@@ -29,7 +29,7 @@
 
 /// Uncomment to disable rAthena's anonymous stat report
 /// We kindly ask you to consider keeping it enabled, it helps us improve rAthena.
-//#define STATS_OPT_OUT
+//define STATS_OPT_OUT
 
 /// uncomment to enable query_sql script command and mysql logs to function on it's own thread
 /// be aware this feature is under tests and you should use at your own risk, we however
Index: src/map/pc.c
===================================================================
--- src/map/pc.c    (revision 17330)
+++ src/map/pc.c    (working copy)
@@ -519,7 +519,7 @@
    if(!battle_config.save_clothcolor)
        sd->status.clothes_color=0;
 
-   //Only copy the Cart/Peco/Falcon options, the rest are handled via
+   //Only copy the Cart/Peco/Falcon options, the rest are handled via
    //status change load/saving. [Skotlex]
 #ifdef NEW_CARTS
    sd->status.option = sd->sc.option&(OPTION_INVISIBLE|OPTION_FALCON|OPTION_RIDING|OPTION_DRAGON|OPTION_WUG|OPTION_WUGRIDER|OPTION_MADOGEAR|OPTION_MOUNTING);
@@ -4044,7 +4044,7 @@
        }
        else
        if(fitem->second_get_charid > 0 && fitem->second_get_charid != sd->status.char_id)
-       {
+       {
            second_sd = map_charid2sd(fitem->second_get_charid);
            if(DIFF_TICK(tick, fitem->second_get_tick) < 0) {
                if(!(p && p->party.item&1 &&
@@ -6573,10 +6573,8 @@
 {
    TBL_PC *sd = map_id2sd(id);
    if(sd) pc_close_npc(sd,data);
-
    return 0;
 }
-
 /*
  *  Method to properly close npc for player and clear anything related
  * @flag == 1 : produce close button
@@ -7815,7 +7813,7 @@
                clif_cartlist(sd);
            clif_updatestatus(sd, SP_CARTINFO);
            sc_start(&sd->bl,&sd->bl, SC_PUSH_CART, 100, type, 0);
-           clif_status_load_notick(&sd->bl, SI_ON_PUSH_CART,   2 , type, 0, 0);
+           clif_status_load_notick(&sd->bl, SI_ON_PUSH_CART, 2 , type, 0, 0);
            if( sd->sc.data[SC_PUSH_CART] )/* forcefully update */
                sd->sc.data[SC_PUSH_CART]->val1 = type;
            break;
@@ -9231,7 +9229,7 @@
 static int pc_daynight_timer_sub(struct map_session_data *sd,va_list ap)
 {
    if (sd->state.night != night_flag && map[sd->bl.m].flag.nightenabled)
-   {   //Night/day state does not match.
+   {   //Night/day state does not match.
        clif_status_load(&sd->bl, SI_NIGHT, night_flag); //New night effect by dynamix [Skotlex]
        sd->state.night = night_flag;
        return 1;
Index: src/map/buyingstore.c
===================================================================
--- src/map/buyingstore.c   (revision 17330)
+++ src/map/buyingstore.c   (working copy)
@@ -44,10 +44,8 @@
 }
 
 
-bool buyingstore_setup(struct map_session_data* sd, unsigned char slots)
-{
-   if( !battle_config.feature_buying_store || sd->state.vending || sd->state.buyingstore || sd->state.trading || slots == 0 )
-   {
+bool buyingstore_setup(struct map_session_data* sd, unsigned char slots){
+   if (!battle_config.feature_buying_store || sd->state.vending || sd->state.buyingstore || sd->state.trading || slots == 0) {
        return false;
    }
 
Index: src/map/unit.c
===================================================================
--- src/map/unit.c  (revision 17330)
+++ src/map/unit.c  (working copy)
@@ -798,7 +798,7 @@
    }
 
    if (x<0 || y<0)
-   {   //Random map position.
+   {   //Random map position.
        if (!map_search_freecell(NULL, m, &x, &y, -1, -1, 1)) {
            ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y);
            return 2;
Index: src/map/clif.c
===================================================================
--- src/map/clif.c  (revision 17330)
+++ src/map/clif.c  (working copy)
@@ -2815,10 +2815,10 @@
        WFIFOL(fd,4)=sd->battle_status.cri/10;
        break;
    case SP_MATK1:
-            WFIFOL(fd,4)=pc_rightside_matk(sd);
+       WFIFOL(fd,4)=pc_rightside_matk(sd);
        break;
    case SP_MATK2:
-            WFIFOL(fd,4)=pc_leftside_matk(sd);
+       WFIFOL(fd,4)=pc_leftside_matk(sd);
        break;
 
 
@@ -11579,7 +11579,7 @@
 /// 0100
 void clif_parse_LeaveParty(int fd, struct map_session_data *sd)
 {
-   if(map[sd->bl.m].flag.partylock) { //Guild locked.
+   if(map[sd->bl.m].flag.partylock) { //part locked.
        clif_displaymessage(fd, msg_txt(sd,227));
        return;
    }
@@ -11591,7 +11591,7 @@
 /// 0103 <account id>.L <char name>.24B
 void clif_parse_RemovePartyMember(int fd, struct map_session_data *sd)
 {
-   if(map[sd->bl.m].flag.partylock) { //Guild locked.
+   if(map[sd->bl.m].flag.partylock) { //party locked.
        clif_displaymessage(fd, msg_txt(sd,227));
        return;
    }
Index: src/map/clif.h
===================================================================
--- src/map/clif.h  (revision 17330)
+++ src/map/clif.h  (working copy)
@@ -783,4 +783,5 @@
 
 #define clif_menuskill_clear(sd) (sd)->menuskill_id = (sd)->menuskill_val = (sd)->menuskill_val2 = 0;
 
+
 #endif /* _CLIF_H_ */
Index: src/map/chrif.c
===================================================================
--- src/map/chrif.c (revision 17330)
+++ src/map/chrif.c (working copy)
@@ -1230,7 +1230,7 @@
 
    for (i = 0; i < count; i++) {
        data = (struct status_change_data*)RFIFOP(fd,14 + i*sizeof(struct status_change_data));
-       status_change_start(NULL,&sd->bl, (sc_type)data->type, 10000, data->val1, data->val2, data->val3, data->val4, data->tick, 15);
+       status_change_start(NULL,&sd->bl, (sc_type)data->type, 10000, data->val1, data->val2, data->val3, data->val4, data->tick, 1|2|4|8);
    }
 #endif
 
Index: src/map/atcommand.c
===================================================================
--- src/map/atcommand.c (revision 17330)
+++ src/map/atcommand.c (working copy)
@@ -676,7 +676,7 @@
            memcpy(player_name, pl_sd->status.name, NAME_LENGTH);
            for (j = 0; player_name[j]; j++)
                player_name[j] = TOLOWER(player_name[j]);
-           // search with no case sensitive
+           // search with no case sensitive
            if (strstr(player_name, match_text) == NULL)
                continue;
        }
@@ -2492,8 +2492,7 @@
 /*==========================================
  *
  *------------------------------------------*/
-ACMD_FUNC(guildlevelup)
-{
+ACMD_FUNC(guildlevelup) {
    int level = 0;
    short added_level;
    struct guild *guild_info;
@@ -2533,8 +2532,7 @@
 /*==========================================
  *
  *------------------------------------------*/
-ACMD_FUNC(makeegg)
-{
+ACMD_FUNC(makeegg) {
    struct item_data *item_data;
    int id, pet_id;
    nullpo_retr(-1, sd);
@@ -2573,8 +2571,7 @@
 /*==========================================
  *
  *------------------------------------------*/
-ACMD_FUNC(hatch)
-{
+ACMD_FUNC(hatch) {
    nullpo_retr(-1, sd);
    if (sd->status.pet_id <= 0)
        clif_sendegg(sd);
@@ -2589,8 +2586,7 @@
 /*==========================================
  *
  *------------------------------------------*/
-ACMD_FUNC(petfriendly)
-{
+ACMD_FUNC(petfriendly) {
    int friendly;
    struct pet_data *pd;
    nullpo_retr(-1, sd);
@@ -3707,8 +3703,8 @@
        packetdb_readdb();
        clif_displaymessage(fd, msg_txt(sd,1477)); // Packet database has been reloaded.
    }
-       
 
+
    return 0;
 }
 
@@ -3776,15 +3772,20 @@
    clif_displaymessage(fd, msg_txt(sd,1041)); // ------ Map Flags ------
    if (map[m_id].flag.town)
        clif_displaymessage(fd, msg_txt(sd,1042)); // Town Map
+   if (map[m_id].flag.restricted){
+       sprintf(atcmd_output, msg_txt(sd,1106),map[m_id].zone);
+       clif_displaymessage(fd, atcmd_output); //restricted
+   }
 
    if (battle_config.autotrade_mapflag == map[m_id].flag.autotrade)
        clif_displaymessage(fd, msg_txt(sd,1043)); // Autotrade Enabled
    else
        clif_displaymessage(fd, msg_txt(sd,1044)); // Autotrade Disabled
 
-   if (map[m_id].flag.battleground)
-       clif_displaymessage(fd, msg_txt(sd,1045)); // Battlegrounds ON
-
+   if (map[m_id].flag.battleground){
+       sprintf(atcmd_output, msg_txt(sd,1106),map[m_id].zone);
+       clif_displaymessage(fd, atcmd_output); // Battlegrounds ON type=%d
+   }
    strcpy(atcmd_output,msg_txt(sd,1046)); // PvP Flags:
    if (map[m_id].flag.pvp)
        strcat(atcmd_output, msg_txt(sd,1047)); // Pvp ON |
@@ -3897,6 +3898,22 @@
        strcat(atcmd_output, msg_txt(sd,1096)); // PartyLock |
    if (map[m_id].flag.guildlock)
        strcat(atcmd_output, msg_txt(sd,1097)); // GuildLock |
+   if (map[m_id].flag.loadevent)
+       strcat(atcmd_output, msg_txt(sd,1098)); //Loadevent |
+   if (map[m_id].flag.src4instance)
+       strcat(atcmd_output, msg_txt(sd,1099)); // Src4instance |
+   if (map[m_id].flag.chmautojoin)
+       strcat(atcmd_output, msg_txt(sd,1100)); // Chmautojoin |
+   if (map[m_id].flag.nousecart)
+       strcat(atcmd_output, msg_txt(sd,1101)); // nousecart |
+   if (map[m_id].flag.noitemconsumption)
+       strcat(atcmd_output, msg_txt(sd,1102)); // noitemconsumption |
+   if (map[m_id].flag.nosumstarmiracle)
+       strcat(atcmd_output, msg_txt(sd,1103)); // nosumstarmiracle |
+   if (map[m_id].flag.nomineeffect)
+       strcat(atcmd_output, msg_txt(sd,1104)); // nomineeffect |
+   if (map[m_id].flag.nolockon)
+       strcat(atcmd_output, msg_txt(sd,1105)); // nolockon |
    clif_displaymessage(fd, atcmd_output);
 
    switch (list) {
@@ -3904,12 +3921,12 @@
        // Do nothing. It's list 0, no additional display.
        break;
    case 1:
-       clif_displaymessage(fd, msg_txt(sd,1098)); // ----- Players in Map -----
+       clif_displaymessage(fd, msg_txt(sd,480)); // ----- Players in Map -----
        iter = mapit_getallusers();
        for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
        {
            if (pl_sd->mapindex == m_index) {
-               sprintf(atcmd_output, msg_txt(sd,1099), // Player '%s' (session #%d) | Location: %d,%d
+               sprintf(atcmd_output, msg_txt(sd,481), // Player '%s' (session #%d) | Location: %d,%d
                        pl_sd->status.name, pl_sd->fd, pl_sd->bl.x, pl_sd->bl.y);
                clif_displaymessage(fd, atcmd_output);
            }
@@ -3917,33 +3934,33 @@
        mapit_free(iter);
        break;
    case 2:
-       clif_displaymessage(fd, msg_txt(sd,1100)); // ----- NPCs in Map -----
+       clif_displaymessage(fd, msg_txt(sd,482)); // ----- NPCs in Map -----
        for (i = 0; i < map[m_id].npc_num;)
        {
            nd = map[m_id].npc[i];
            switch(nd->ud.dir) {
-           case 0:  strcpy(direction, msg_txt(sd,1101)); break; // North
-           case 1:  strcpy(direction, msg_txt(sd,1102)); break; // North West
-           case 2:  strcpy(direction, msg_txt(sd,1103)); break; // West
-           case 3:  strcpy(direction, msg_txt(sd,1104)); break; // South West
-           case 4:  strcpy(direction, msg_txt(sd,1105)); break; // South
-           case 5:  strcpy(direction, msg_txt(sd,1106)); break; // South East
-           case 6:  strcpy(direction, msg_txt(sd,1107)); break; // East
-           case 7:  strcpy(direction, msg_txt(sd,1108)); break; // North East
-           case 9:  strcpy(direction, msg_txt(sd,1109)); break; // North
-           default: strcpy(direction, msg_txt(sd,1110)); break; // Unknown
+           case 0:  strcpy(direction, msg_txt(sd,491)); break; // North
+           case 1:  strcpy(direction, msg_txt(sd,492)); break; // North West
+           case 2:  strcpy(direction, msg_txt(sd,493)); break; // West
+           case 3:  strcpy(direction, msg_txt(sd,494)); break; // South West
+           case 4:  strcpy(direction, msg_txt(sd,495)); break; // South
+           case 5:  strcpy(direction, msg_txt(sd,496)); break; // South East
+           case 6:  strcpy(direction, msg_txt(sd,497)); break; // East
+           case 7:  strcpy(direction, msg_txt(sd,498)); break; // North East
+           case 9:  strcpy(direction, msg_txt(sd,491)); break; // North
+           default: strcpy(direction, msg_txt(sd,499)); break; // Unknown
            }
            if(strcmp(nd->name,nd->exname) == 0)
-               sprintf(atcmd_output, msg_txt(sd,1111), // NPC %d: %s | Direction: %s | Sprite: %d | Location: %d %d
+               sprintf(atcmd_output, msg_txt(sd,490), // NPC %d: %s | Direction: %s | Sprite: %d | Location: %d %d
                    ++i, nd->name, direction, nd->class_, nd->bl.x, nd->bl.y);
            else
-               sprintf(atcmd_output, msg_txt(sd,1112), // NPC %d: %s::%s | Direction: %s | Sprite: %d | Location: %d %d
-                   ++i, nd->name, nd->exname, direction, nd->class_, nd->bl.x, nd->bl.y);
+               sprintf(atcmd_output, msg_txt(sd,489), // NPC %d: %s::%s | Direction: %s | Sprite: %d | Location: %d %d
+               ++i, nd->name, nd->exname, direction, nd->class_, nd->bl.x, nd->bl.y);
            clif_displaymessage(fd, atcmd_output);
        }
        break;
    case 3:
-       clif_displaymessage(fd, msg_txt(sd,1113)); // ----- Chats in Map -----
+       clif_displaymessage(fd, msg_txt(sd,483)); // ----- Chats in Map -----
        iter = mapit_getallusers();
        for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
        {
@@ -3951,18 +3968,18 @@
                pl_sd->mapindex == m_index &&
                cd->usersd[0] == pl_sd)
            {
-               sprintf(atcmd_output, msg_txt(sd,1114), // Chat: %s | Player: %s | Location: %d %d
-                       cd->title, pl_sd->status.name, cd->bl.x, cd->bl.y);
+               sprintf(atcmd_output, msg_txt(sd,484), // Chat: %s | Player: %s | Location: %d %d
+                   cd->title, pl_sd->status.name, cd->bl.x, cd->bl.y);
                clif_displaymessage(fd, atcmd_output);
-               sprintf(atcmd_output, msg_txt(sd,1115), //    Users: %d/%d | Password: %s | Public: %s
-                       cd->users, cd->limit, cd->pass, (cd->pub) ? msg_txt(sd,1116) : msg_txt(sd,1117)); // Yes / No
+               sprintf(atcmd_output, msg_txt(sd,485), //    Users: %d/%d | Password: %s | Public: %s
+                   cd->users, cd->limit, cd->pass, (cd->pub) ? msg_txt(sd,486) : msg_txt(sd,487)); // Yes / No
                clif_displaymessage(fd, atcmd_output);
            }
        }
        mapit_free(iter);
        break;
    default: // normally impossible to arrive here
-       clif_displaymessage(fd, msg_txt(sd,1118)); // Please enter at least one valid list number (usage: @mapinfo <0-3> <map>).
+       clif_displaymessage(fd, msg_txt(sd,488)); // Please enter at least one valid list number (usage: @mapinfo <0-3> <map>).
        return -1;
        break;
    }
@@ -8429,8 +8446,7 @@
        slen = strlen(cmd->command);
 
        // flush the text buffer if this command won't fit into it
-       if ( slen + cur - line_buff >= CHATBOX_SIZE )
-       {
+        if (slen + cur - line_buff >= CHATBOX_SIZE) {
            clif_displaymessage(fd,line_buff);
            cur = line_buff;
            memset(line_buff,' ',CHATBOX_SIZE);
@@ -9053,6 +9069,7 @@
        ACMD_DEF2("reloadquestdb", reload),
        ACMD_DEF2("reloadmsgconf", reload),
        ACMD_DEF2("reloadpacketdb", reload),
+       ACMD_DEF(reloadpacketdb),
        ACMD_DEF(mapinfo),
        ACMD_DEF(dye),
        ACMD_DEF2("hairstyle", hair_style),
Index: src/map/skill.c
===================================================================
--- src/map/skill.c (revision 17330)
+++ src/map/skill.c (working copy)
@@ -919,17 +919,12 @@
        break;
 
    case MG_FROSTDIVER:
-#ifndef RENEWAL
-   case WZ_FROSTNOVA:
-#endif
        sc_start(src,bl,SC_FREEZE,skill_lv*3+35,skill_lv,skill_get_time2(skill_id,skill_lv));
        break;
 
-#ifdef RENEWAL
    case WZ_FROSTNOVA:
        sc_start(src,bl,SC_FREEZE,skill_lv*5+33,skill_lv,skill_get_time2(skill_id,skill_lv));
        break;
-#endif
 
    case WZ_STORMGUST:
    /**
@@ -9579,7 +9574,7 @@
            if(sc->data[SC_SPIRIT] &&
                sc->data[SC_SPIRIT]->val2 == SL_WIZARD &&
                sc->data[SC_SPIRIT]->val3 == ud->skill_id &&
-               ud->skill_id != WZ_WATERBALL)
+               ud->skill_id != WZ_WATERBALL)
                sc->data[SC_SPIRIT]->val3 = 0; //Clear bounced spell check.
 
            if( sc->data[SC_DANCING] && skill_get_inf2(ud->skill_id)&INF2_SONG_DANCE && sd )
@@ -9600,7 +9595,7 @@
 
    //Skill failed.
    if (ud->skill_id == MO_EXTREMITYFIST && sd && !(sc && sc->data[SC_FOGWALL]))
-   {   //When Asura fails... (except when it fails from Fog of Wall)
+   {   //When Asura fails... (except when it fails from Fog of Wall)
        //Consume SP/spheres
        skill_consume_requirement(sd,ud->skill_id, ud->skill_lv,1);
        status_set_sp(src, 0, 0);
@@ -17582,7 +17577,7 @@
                        static const int dx[] = {-1,-1,-1,-1, 0, 0, 0, 0, 1, 1, 1, 1,
                                     -5,-5,-5,-5,-4,-4,-4,-4,-3,-3,-3,-3,-2,-2,-2,-2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5,
                                     -1,-1,-1, 0, 0, 0, 1, 1, 1};
-                       static const int dy[] = { 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 
+                       static const int dy[] = { 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3,
                                      0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3, 0,-1,-2,-3,
                                     -4,-5,-6,-4,-5,-6,-4,-5,-6};
                        skill_unit_layout[pos].count = 53;
Index: src/map/map.h
===================================================================
--- src/map/map.h   (revision 17330)
+++ src/map/map.h   (working copy)
@@ -553,12 +553,12 @@
        unsigned sakura : 1; // [Valaris]
        unsigned leaves : 1; // [Valaris]
        unsigned nogo : 1; // [Valaris]
-       unsigned nobaseexp  : 1; // [Lorky] added by Lupus
-       unsigned nojobexp   : 1; // [Lorky]
-       unsigned nomobloot  : 1; // [Lorky]
-       unsigned nomvploot  : 1; // [Lorky]
+       unsigned nobaseexp : 1; // [Lorky] added by Lupus
+       unsigned nojobexp : 1; // [Lorky]
+       unsigned nomobloot : 1; // [Lorky]
+       unsigned nomvploot : 1; // [Lorky]
        unsigned nightenabled :1; //For night display. [Skotlex]
-       unsigned restricted : 1; // [Komurka]
+       unsigned restricted : 1; // [Komurka]
        unsigned nodrop : 1;
        unsigned novending : 1;
        unsigned loadevent : 1;
Index: src/char/char.c
===================================================================
--- src/char/char.c (revision 17330)
+++ src/char/char.c (working copy)
@@ -1223,7 +1223,7 @@
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 46, SQLDT_INT,    &p->mother, 0, NULL, NULL)
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 47, SQLDT_INT,    &p->child, 0, NULL, NULL)
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 48, SQLDT_INT,    &p->fame, 0, NULL, NULL)
-   ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 49, SQLDT_SHORT,  &p->rename, 0, NULL, NULL)
+   ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 49, SQLDT_SHORT,  &p->rename, 0, NULL, NULL)
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 50, SQLDT_UINT32, &p->delete_date, 0, NULL, NULL)
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 51, SQLDT_SHORT,  &p->robe, 0, NULL, NULL)
    ||  SQL_ERROR == SqlStmt_BindColumn(stmt, 52, SQLDT_UINT32, &p->character_moves, 0, NULL, NULL)
@@ -1242,6 +1242,18 @@
    p->last_point.map = mapindex_name2id(last_map);
    p->save_point.map = mapindex_name2id(save_map);
 
+   if( p->last_point.map == 0 ) {
+       p->last_point.map = mapindex_name2id(MAP_DEFAULT);
+       p->last_point.x = MAP_DEFAULT_X;
+       p->last_point.y = MAP_DEFAULT_Y;
+   }
+
+   if( p->save_point.map == 0 ) {
+       p->save_point.map = mapindex_name2id(MAP_DEFAULT);
+       p->save_point.x = MAP_DEFAULT_X;
+       p->save_point.y = MAP_DEFAULT_Y;
+   }
+
    strcat(t_msg, " status");
 
    if (!load_everything) // For quick selection of data when displaying the char menu
@@ -1906,6 +1918,13 @@
 
    return 106+offset;
 }
+/* Made Possible by Yommy~! <3 */
+void mmo_char_send099d(int fd, struct char_session_data *sd) {
+   WFIFOHEAD(fd,4 + (MAX_CHARS*MAX_CHAR_BUF));
+   WFIFOW(fd,0) = 0x99d;
+   WFIFOW(fd,2) = mmo_chars_fromsql(sd, WFIFOP(fd,4)) + 4;
+   WFIFOSET(fd,WFIFOW(fd,2));
+}
 
 //----------------------------------------
 // Function to send characters to a player
@@ -4345,7 +4364,11 @@
                return 0;
 
            moveCharSlot( fd, sd, RFIFOW(fd, 2), RFIFOW(fd, 4) );
-
+#if PACKETVER >= 20130000
+           mmo_char_send099d(fd, sd);
+#else
+           mmo_char_send006b(fd, sd);
+#endif
            RFIFOSKIP(fd,8);
        break;
 
Index: src/common/socket.c
===================================================================
--- src/common/socket.c (revision 17330)
+++ src/common/socket.c (working copy)
@@ -1163,7 +1163,7 @@
        if(session[i])
            do_close(i);
 
-   // session[0] �̃_�~�[�f�[�^���폜
+   // session[0]
    aFree(session[0]->rdata);
    aFree(session[0]->wdata);
    aFree(session[0]);
Index: src/common/mapindex.h
===================================================================
--- src/common/mapindex.h   (revision 17330)
+++ src/common/mapindex.h   (working copy)
@@ -47,6 +47,11 @@
 #define MAP_MALAYA "malaya"
 #define MAP_ECLAGE "eclage"
 
+// When a map index search fails, return results from what map? default:prontera
+#define MAP_DEFAULT MAP_PRONTERA
+#define MAP_DEFAULT_X 150
+#define MAP_DEFAULT_Y 150
+
 const char* mapindex_getmapname(const char* string, char* output);
 const char* mapindex_getmapname_ext(const char* string, char* output);
 unsigned short mapindex_name2id(const char*);
Index: src/common/mmo.h
===================================================================
--- src/common/mmo.h    (revision 17330)
+++ src/common/mmo.h    (working copy)
@@ -47,8 +47,8 @@
 // 20120307 - 2012-03-07aRagexeRE+ - 0x970
 
 #ifndef PACKETVER
-   #define PACKETVER 20120410
-   //#define PACKETVER 20130320
+   //#define PACKETVER 20120410
+   #define PACKETVER 20130320
    //#define PACKETVER 20111116
 #endif
 
Index: src/common/core.c
===================================================================
--- src/common/core.c   (revision 17330)
+++ src/common/core.c   (working copy)
@@ -55,8 +55,7 @@
 #ifndef POSIX
 #define compat_signal(signo, func) signal(signo, func)
 #else
-sigfunc *compat_signal(int signo, sigfunc *func)
-{
+sigfunc *compat_signal(int signo, sigfunc *func) {
    struct sigaction sact, oact;
 
    sact.sa_handler = func;
@@ -77,10 +76,8 @@
  * CORE : Console events for Windows
  *--------------------------------------*/
 #ifdef _WIN32
-static BOOL WINAPI console_handler(DWORD c_event)
-{
-    switch(c_event)
-    {
+static BOOL WINAPI console_handler(DWORD c_event) {
+    switch(c_event) {
     case CTRL_CLOSE_EVENT:
     case CTRL_LOGOFF_EVENT:
     case CTRL_SHUTDOWN_EVENT:
@@ -95,8 +92,7 @@
     return TRUE;
 }
 
-static void cevents_init()
-{
+static void cevents_init() {
    if (SetConsoleCtrlHandler(console_handler,TRUE)==FALSE)
        ShowWarning ("Unable to install the console handler!\n");
 }
@@ -105,8 +101,7 @@
 /*======================================
  * CORE : Signal Sub Function
  *--------------------------------------*/
-static void sig_proc(int sn)
-{
+static void sig_proc(int sn) {
    static int is_called = 0;
 
    switch (sn) {
@@ -139,8 +134,7 @@
    }
 }
 
-void signals_init (void)
-{
+void signals_init (void) {
    compat_signal(SIGTERM, sig_proc);
    compat_signal(SIGINT, sig_proc);
 #ifndef _DEBUG // need unhandled exceptions to debug on Windows
@@ -158,13 +152,11 @@
 #endif
 
 #ifdef SVNVERSION
-   const char *get_svn_revision(void)
-   {
+const char *get_svn_revision(void) {
        return EXPAND_AND_QUOTE(SVNVERSION);
    }
 #else// not SVNVERSION
-const char* get_svn_revision(void)
-{
+const char* get_svn_revision(void) {
    static char svn_version_buffer[16] = "";
    FILE *fp;
 
@@ -199,12 +191,10 @@
        fclose(fp);
 
        // parse buffer
-       for( i = prefix_len + 1; i + postfix_len <= len; ++i )
-       {
+       for( i = prefix_len + 1; i + postfix_len <= len; ++i ) {
            if( buffer[i] != postfix[0] || memcmp(buffer + i, postfix, postfix_len) != 0 )
                continue; // postfix missmatch
-           for( j = i; j > 0; --j )
-           {// skip digits
+           for( j = i; j > 0; --j ) {// skip digits
                if( !ISDIGIT(buffer[j - 1]) )
                    break;
            }
Index: src/common/cbasetypes.h
===================================================================
--- src/common/cbasetypes.h (revision 17330)
+++ src/common/cbasetypes.h (working copy)
@@ -177,6 +177,7 @@
 // integer with exact processor width (and best speed)
 //////////////////////////////
 #include <stddef.h> // size_t
+//#include <stdbool.h> //boolean
 
 #if defined(WIN32) && !defined(MINGW) // does not have a signed size_t
 //////////////////////////////
@@ -276,7 +277,7 @@
 #undef swap
 #endif
 // hmm only ints?
-//#define swap(a,b) { int temp=a; a=b; b=temp;} 
+//#define swap(a,b) { int temp=a; a=b; b=temp;}
 // if using macros then something that is type independent
 //#define swap(a,b) ((a == b) || ((a ^= b), (b ^= a), (a ^= b)))
 // Avoid "value computed is not used" warning and generates the same assembly code
Index: conf/msg_conf/map_msg.conf
===================================================================
--- conf/msg_conf/map_msg.conf  (revision 17330)
+++ conf/msg_conf/map_msg.conf  (working copy)
@@ -451,9 +451,29 @@
 463: Message configuration has been reloaded.
 464: ---- Available languages:
 
+480: ----- Players in Map -----
+481: Player '%s' (session #%d) | Location: %d,%d
+482: ----- NPCs in Map -----
+483: ----- Chats in Map -----
+484: Chat: %s | Player: %s | Location: %d %d
+485:    Users: %d/%d | Password: %s | Public: %s
+486: Yes
+487: No
+488: Please enter at least one valid list number (usage: @mapinfo <0-3> <map>).
+489: NPC %d: %s::%s | Direction: %s | Sprite: %d | Location: %d %d
+490: NPC %d: %s | Direction: %s | Sprite: %d | Location: %d %d
+491: North
+492: North West
+493: West
+494: South West
+495: South
+496: South East
+497: East
+498: North East
+499: Unknown
+
 // Messages of others (not for GM commands)
 // ----------------------------------------
-
 //500 free
 501: Your account time limit is: %d-%m-%Y %H:%M:%S.
 502: Day Mode is activated
@@ -848,7 +868,7 @@
 1042: Town Map
 1043: Autotrade Enabled
 1044: Autotrade Disabled
-1045: Battlegrounds ON
+1045: Battlegrounds ON type=%d
 1046: PvP Flags:
 1047: Pvp ON |
 1048: NoGuild |
@@ -901,27 +921,15 @@
 1095: NoMVPLoot |
 1096: PartyLock |
 1097: GuildLock |
-1098: ----- Players in Map -----
-1099: Player '%s' (session #%d) | Location: %d,%d
-1100: ----- NPCs in Map -----
-1101: North
-1102: North West
-1103: West
-1104: South West
-1105: South
-1106: South East
-1107: East
-1108: North East
-1109: North
-1110: Unknown
-1111: NPC %d: %s | Direction: %s | Sprite: %d | Location: %d %d
-1112: NPC %d: %s::%s | Direction: %s | Sprite: %d | Location: %d %d
-1113: ----- Chats in Map -----
-1114: Chat: %s | Player: %s | Location: %d %d
-1115:    Users: %d/%d | Password: %s | Public: %s
-1116: Yes
-1117: No
-1118: Please enter at least one valid list number (usage: @mapinfo <0-3> <map>).
+1098: Loadevent |
+1099: Src4instance |
+1100: Chmautojoin |
+1101: nousecart |
+1102: noitemconsumption |
+1103: nosumstarmiracle |
+1104: nomineeffect |
+1105: nolockon |
+1106: Restricted zone=%d
 
 // @mount
 1119: You have mounted your Dragon.
Viewed 1203 times, submitted by lighta.