Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 16.53 KB | None | 0 0
  1. //モンブラン
  2. //ffg's edit
  3.  
  4. //some needed globals
  5. import global   u_char  globU8[8192]    = 0x0;
  6. import global   u_short globU16[4096]   = 0x0;
  7. import global   int     globU32[2048]   = 0x0;
  8.  
  9.  
  10. import global int       vaanLicLP           = 0x2198;
  11. import global int       asheLicLP           = 0x2360;
  12. import global int       franLicLP           = 0x2528;
  13. import global int       balthierLicLP       = 0x26f0;
  14. import global int       baschLicLP          = 0x28b8;
  15. import global int       peneloLicLP         = 0x2a80;
  16. import global u_char    allGlobal[65536]    = 0x0;
  17. import global int       cursorPos[6]        = 0x81c4;
  18.  
  19. script help_talk(6)
  20. {
  21.  
  22.     function init()
  23.     {
  24.         return;
  25.     }
  26.  
  27.     //some needed local variables, though I could just go with the available registers
  28.     u_char  retval;
  29.     u_char  doLoop;
  30.  
  31.     function message_loop()
  32.     {
  33.         モンブラン.setkutipakustatus(1);
  34.         モンブラン.setunazukistatus(1);
  35.        
  36.         //intro message
  37.         sysReqew(1, help_talk::welcome_message);
  38.  
  39.         doLoop = true;
  40.         while (doLoop)
  41.         {
  42.             //ask whether he needs something
  43.             sysReqew(1, help_talk::ask_help);
  44.  
  45.             switch (ucMBChoiceHelp)
  46.             {
  47.                 case 0:
  48.                     sysReqew(1, help_talk::handle_money);
  49.                     break;
  50.                 case 1:
  51.                     sysReqew(1, help_talk::handle_items);
  52.                     break;
  53.                 case 2:
  54.                     sysReqew(1, help_talk::handle_license);
  55.                     break;
  56.                 case 3:
  57.                     sysReqew(1, help_talk::handle_ngplus);
  58.                     break;
  59.                 default:
  60.                     doLoop = false;
  61.                     continue;
  62.             }
  63.             if (retval) sysReqew(1, help_talk::confirm_message);
  64.         }
  65.  
  66.         モンブラン.setkutipakustatus(0);
  67.         モンブラン.setunazukistatus(0);
  68.         wait(10);
  69.         return;
  70.     }
  71.    
  72.     function welcome_message()
  73.     {
  74.         amese(0, 0x10000f6);
  75.         messync(0, 1);
  76.         return;
  77.     }
  78.  
  79.     u_char  ucMBChoiceHelp;
  80.    
  81.     function ask_help()
  82.     {
  83.         askpos(0, 0, 4);
  84.         ucMBChoiceHelp = aaske(0, 0x10000f7);
  85.         mesclose(0);
  86.         messync(0, 1);
  87.         return;
  88.     }
  89.  
  90.     u_char  ucMBChoiceGil;
  91.     function handle_money()
  92.     {
  93.         askpos(0, 0, 3);
  94.         ucMBChoiceGil = aaske(0, 0x10000f8);
  95.         mesclose(0);
  96.         messync(0, 1);
  97.        
  98.         switch (ucMBChoiceGil)
  99.         {
  100.             case 0:
  101.                 addgill(1000);
  102.                 break;
  103.             case 1:
  104.                 addgill(10000);
  105.                 break;
  106.             case 2:
  107.                 addgill(1000000);
  108.                 break;
  109.             default:
  110.                 retval = false;
  111.                 return;
  112.         }
  113.         retval = true;
  114.         return;
  115.     }
  116.  
  117.     u_char  ucMBChoiceIt;
  118.    
  119.     function handle_items()
  120.     {
  121.         askpos(0, 0, 7);
  122.         ucMBChoiceIt = aaske(0, 0x10000f9);
  123.         mesclose(0);
  124.         messync(0, 1);
  125.        
  126.         switch (ucMBChoiceIt)
  127.         {
  128.             case 0:
  129.                 btlAtelGetAllItems();
  130.                 break;
  131.             case 1:
  132.                 btlAtelGetAllEquips();
  133.                 break;
  134.             case 2:
  135.                 btlAtelGetAllMagics();
  136.                 break;
  137.             case 3:
  138.                 btlAtelGetAllTechs();
  139.                 break;
  140.             case 4:
  141.                 btlAtelGetAllTgtChips(); //gambits
  142.                 break;
  143.             case 5:
  144.                 btlAtelGetAllMistCarts(); //espers
  145.                 break;
  146.             case 6:
  147.                 btlAtelGetAllPrecious(); //key items
  148.                 break;
  149.             default:
  150.                 retval = false;
  151.                 return;
  152.         }
  153.    
  154.         retval = true;
  155.         return;
  156.     }
  157.  
  158.     u_char  ucMBChoiceLic;
  159.     u_char  lastEntry;
  160.  
  161.     int     licenseArr[6]       = {
  162.         0x219c, //vaan
  163.         0x2364, //ashe
  164.         0x252c, //fran
  165.         0x26f4, //balthier
  166.         0x28bc, //basch
  167.         0x2a84  //penelo
  168.     };
  169.    
  170.     u_char  levelOffset         = 46;
  171.     u_char  firstJobOffset      = 47;
  172.     u_char  secondJobOffset     = 48;
  173.     u_char  selectedJobOffset   = 49;
  174.  
  175.    
  176.  
  177.     u_char  licensesCost[362]   = {
  178.          50,  75, 100, 125,   0,   0,   0,   0, //quickenings and unused
  179.           0,   0,   0,   0,   0,   0,   0,   0, //unused
  180.           0,   0,  20,  30,  35,  50,  50, 100, //belias-famfrit
  181.          30,  50, 100,  65,  65, 115, 200,   1, //zalera-starting
  182.          15,  25,  35,  50,  55,  60,  70,  50, //swords1-bloodsword
  183.          50,  70,  80, 135, 225,  35,  50,  70, //greatswords-katana3
  184.          90, 130, 100, 120, 180,  20,  25,  35, //katana4-spears3
  185.          60,  40,  70, 240,  20,  30,  35,  40, //spears4-poles4
  186.          50,  90,  20,  30,  35,  45,  60,  70, //poles5-bows6
  187.         130,  25,  40,  60, 115,  30,  50,  60, //sagittarius-guns3
  188.          70,  90, 100,  20,  25,  35,  50,  60, //guns4-axes5
  189.          65,  85,  15,  20,  35,  45,  60, 220, //axes6-mina
  190.          20,  30,  40,  50, 130,  15,  25,  30, //rods1-staves3
  191.          40, 115,  30,  40,  60,  65,  50,  40, //staves4-measures1
  192.          50,  70,  35,  55,  75,  15,  20,  25, //measures2-shields3
  193.          30,  35,  40, 100,  90, 235,  25,  30, //shields4-heavy2
  194.          35,  40,  50,  55,  60,  65,  70,  80, //heavy3-heavy10
  195.         190,  10,  15,  20,  25,  30,  40,  50,
  196.          60,  70,  75,  80,  90,  10,  15,  20,
  197.          25,  30,  40,  50,  60,  70,  75,  80,
  198.          90,   5,  20,  25,  35,  35,  35,  40,
  199.          45,  30,  40,  45,  60,  60,  70,  70,
  200.          70,  80,  80, 100, 115, 215,  15,  20,
  201.          25,  30,  40,  50,  60,  70,  15,  20,
  202.          25,  30,  40,  50,  60,  70,  20,  30,
  203.          40,  50,  60,  70,  80,  40,  50,  90,
  204.          90, 100, 110, 155,  40,  50, 110, 100,
  205.         120, 165, 100,  30,  30,  30,  30,  65,
  206.          65,  70,  70,  70,  30,  90,  25,  45,
  207.          75,  30,  50,  80,  30,  50,  80,  20,
  208.          30,  70,  20,  35,  70,  20,  35,  70,
  209.          90,  50,  30,  30,  30,  30,  30,  50,
  210.          30,  30,  30,  30,  50,  20,  30,  40,
  211.          50,  60,  15,  20,  25,  30,  35,  40,
  212.          45,  50,  70, 100,  20,  25,  20,  30,
  213.          30,  50,  35,  50,  40,  50,  40,  30,
  214.          30,  40,  30,  50,  30,  70,  40,  50,
  215.          40,  40,  50,  80,  70,  80,  90, 100,
  216.         115, 130, 220,  50,  50,  50,  70,  70,
  217.          70,  70, 100, 100, 100, 100,  50,  50,
  218.          50,  70,  70,  70,  70, 100, 100, 100,
  219.         100,  80,  90,  80, 100, 150, 100, 200,
  220.         120, 100,  60, 180,  90, 200, 190, 175,
  221.          80,  65, 100, 105,  65,  90, 110, 110,
  222.         110, 130, 160,  80,  90,  90,  90, 125,
  223.          30,   0
  224.     };
  225.  
  226.     function handle_license()
  227.     {
  228.         /*askpos(0, 0, 2);
  229.         ucMBChoiceLic = aaske(0, 0x10000fe);
  230.         mesclose(0);
  231.         messync(0, 1);
  232.        
  233.         if (ucMBChoiceLic != 0)
  234.         {
  235.             retval = false;
  236.             return;
  237.         }*/
  238.  
  239.         lastEntry = 0;
  240.         for (regI0 = 0; regI0 < 6; regI0++)
  241.         {
  242.             if (ispartymember(regI0))
  243.                 lastEntry++;
  244.             else
  245.                 setaskselectignore(0, regI0);  
  246.         }
  247.  
  248.         askpos(0, 0, lastEntry);
  249.         ucMBChoiceLic = aaske(0, 0x10000ff);
  250.         mesclose(0);
  251.         messync(0, 1);
  252.  
  253.         if (ucMBChoiceLic > 5)
  254.         {
  255.             retval = false;
  256.             return;
  257.         }
  258.  
  259.         regI2 = 0; //cost to refund
  260.         for (regI0 = 0; regI0 < 46; regI0++)
  261.         {
  262.             for (regI1 = 0; (regI1 < 8) && (regI0*8 + regI1 < 362); regI1++)
  263.             {
  264.                 if ((allGlobal[licenseArr[ucMBChoiceLic] + regI0] >> regI1) & 1)
  265.                     regI2 = regI2 + licensesCost[regI0*8 +regI1];
  266.             }
  267.             allGlobal[licenseArr[ucMBChoiceLic] + regI0] = 0;
  268.         }
  269.  
  270.         allGlobal[licenseArr[ucMBChoiceLic] +  3] = 0x80; //starting license
  271.         allGlobal[licenseArr[ucMBChoiceLic] +  firstJobOffset]      = 0xff;
  272.         allGlobal[licenseArr[ucMBChoiceLic] +  secondJobOffset]     = 0xff;
  273.         allGlobal[licenseArr[ucMBChoiceLic] +  selectedJobOffset]   = 0xff;
  274.         cursorPos[ucMBChoiceLic] = 32; //set cursor to starting license
  275.  
  276.         switch (ucMBChoiceLic)
  277.         {
  278.             case 0:
  279.                 regI2 = regI2 - 46; //cost of starting licenses
  280.                 allGlobal[licenseArr[ucMBChoiceLic] + 11] = 0x04;
  281.                 allGlobal[licenseArr[ucMBChoiceLic] + 17] = 0x02;
  282.                 allGlobal[licenseArr[ucMBChoiceLic] + 34] = 0x10;
  283.                 vaanLicLP = vaanLicLP + regI2;
  284.                 if (vaanLicLP > 99999) vaanLicLP = 99999;
  285.                 break;
  286.             case 1:
  287.                 regI2 = regI2 - 111; //cost of starting licenses
  288.                 allGlobal[licenseArr[ucMBChoiceLic] +  4] = 0x02;
  289.                 allGlobal[licenseArr[ucMBChoiceLic] + 14] = 0x20;
  290.                 allGlobal[licenseArr[ucMBChoiceLic] + 15] = 0x40;
  291.                 allGlobal[licenseArr[ucMBChoiceLic] + 20] = 0x04;
  292.                 allGlobal[licenseArr[ucMBChoiceLic] + 22] = 0x40;
  293.                 asheLicLP = asheLicLP + regI2;
  294.                 if (asheLicLP > 99999) asheLicLP = 99999;
  295.                 break;
  296.             case 2:
  297.                 regI2 = regI2 - 86; //cost of starting licenses
  298.                 allGlobal[licenseArr[ucMBChoiceLic] +  8] = 0x04;
  299.                 allGlobal[licenseArr[ucMBChoiceLic] + 17] = 0x04;
  300.                 allGlobal[licenseArr[ucMBChoiceLic] + 22] = 0x40;
  301.                 allGlobal[licenseArr[ucMBChoiceLic] + 23] = 0x40;
  302.                 allGlobal[licenseArr[ucMBChoiceLic] + 34] = 0x10;
  303.                 franLicLP = franLicLP + regI2;
  304.                 if (franLicLP > 99999) franLicLP = 99999;
  305.                 break;
  306.             case 3:
  307.                 regI2 = regI2 - 86; //cost of starting licenses
  308.                 allGlobal[licenseArr[ucMBChoiceLic] +  9] = 0x20;
  309.                 allGlobal[licenseArr[ucMBChoiceLic] + 17] = 0x04;
  310.                 allGlobal[licenseArr[ucMBChoiceLic] + 34] = 0x50;
  311.                 balthierLicLP = balthierLicLP + regI2;
  312.                 if (balthierLicLP > 99999) balthierLicLP = 99999;
  313.                 break;
  314.             case 4:
  315.                 regI2 = regI2 - 96; //cost of starting licenses
  316.                 allGlobal[licenseArr[ucMBChoiceLic] +  4] = 0x02;
  317.                 allGlobal[licenseArr[ucMBChoiceLic] + 14] = 0x20;
  318.                 allGlobal[licenseArr[ucMBChoiceLic] + 15] = 0x40;
  319.                 allGlobal[licenseArr[ucMBChoiceLic] + 34] = 0x20;
  320.                 baschLicLP = baschLicLP + regI2;
  321.                 if (baschLicLP > 99999) baschLicLP = 99999;
  322.                 break;
  323.             case 5:
  324.                 regI2 = regI2 - 61; //cost of starting licenses
  325.                 allGlobal[licenseArr[ucMBChoiceLic] + 11] = 0x04;
  326.                 allGlobal[licenseArr[ucMBChoiceLic] + 18] = 0x20;
  327.                 allGlobal[licenseArr[ucMBChoiceLic] + 22] = 0x40;
  328.                 allGlobal[licenseArr[ucMBChoiceLic] + 34] = 0x40;
  329.                 peneloLicLP = peneloLicLP + regI2;
  330.                 if (peneloLicLP > 99999) peneloLicLP = 99999;
  331.                 break;
  332.             default:
  333.                 retval = false;
  334.                 return;
  335.         }
  336.  
  337.         retval = true;
  338.         return;
  339.     }
  340.  
  341.     u_char  ucMBChoiceNgPlus;
  342.     u_char  ucMBResetHunt;
  343.     u_char  ucMBRemoveParty;
  344.  
  345.     function handle_ngplus()
  346.     {
  347.         //ask if he is sure
  348.         askpos(0, 0, 1);
  349.         ucMBChoiceNgPlus = aaske(0, 0x10000fb);
  350.         mesclose(0);
  351.         messync(0, 1);
  352.        
  353.         if (ucMBChoiceNgPlus != 0)
  354.         {//cancel
  355.             retval = false;
  356.             return;
  357.         }
  358.  
  359.         //ask about hunts
  360.         askpos(0, 0, 1);
  361.         ucMBResetHunt = aaske(0, 0x10000fc);
  362.         mesclose(0);
  363.         messync(0, 1);
  364.  
  365.         //ask about party
  366.         askpos(0, 0, 1);
  367.         ucMBRemoveParty = aaske(0, 0x10000fd);
  368.         mesclose(0);
  369.         messync(0, 1);
  370.    
  371.         //perform_new_game_start
  372.         モンブラン.setkutipakustatus(0);
  373.         モンブラン.setunazukistatus(0);
  374.         wait(10);
  375.  
  376.         ucon();
  377.         fadeout(15);
  378.         stopspotsound();
  379.         pausesestop();
  380.         voicestopall();
  381.         fadesync();
  382.         hideparty();
  383.  
  384.         //here resetting stuff
  385.         sysReqew(0, ngplus_resets::reset_basic);
  386.        
  387.         if (ucMBResetHunt == 0)
  388.             sysReqew(0, ngplus_resets::reset_hunts);
  389.        
  390.         sysReqew(0, ngplus_resets::reset_fix);
  391.  
  392.         if (ucMBRemoveParty == 0)
  393.             sysReqew(0, ngplus_resets::reset_party);
  394.         else
  395.             sysReqew(0, ngplus_resets::reset_battle);
  396.        
  397.         //end resetting
  398.         シナリオフラグ = 0x19;
  399.         mapjump(0x479, 1, 0);
  400.        
  401.         retval = false;
  402.         return;
  403.     }
  404.  
  405.     function confirm_message()
  406.     {
  407.         amese(0, 0x10000fa);
  408.         messync(0, 1);
  409.         mesclose(0);
  410.         return;
  411.     }
  412. }
  413.  
  414. script ngplus_resets(6)
  415. {
  416.     function init()
  417.     {
  418.         return;
  419.     }
  420.    
  421.     function reset_basic()
  422.     {
  423.         globU8[0x302] = 0;
  424.         globU8[0x305] = 0;
  425.         globU8[0x309] = 0;
  426.         globU8[0x310] = 0;
  427.         globU8[0x31a] = 0;
  428.         globU8[0x685] = 0;
  429.        
  430.         //index = 9a0
  431.         globU32[0x268] = 0;
  432.        
  433.         //index = 9a4
  434.         globU32[0x269] = 0;
  435.        
  436.         //index - ash dragon
  437.         globU8[0xa03] = 0;
  438.        
  439.         //index = a04 - mimc queen, flan, firemane, hydra
  440.         globU32[0x281] = 0;
  441.        
  442.         //index = a08 - tiamat, daedalus, tyrant, metadragon
  443.         globU32[0x282] = 0;
  444.        
  445.         //index = a0c - ahriman, rafflesia, mandragoras, humbaba
  446.         globU32[0x283] = 0;
  447.        
  448.         //index = a10 - fury, elder dragon, gilgamesh1, gilgamesh2
  449.         globU32[0x284] = 0;
  450.        
  451.         //index = a14 - daemon wall 1, daemon wall 2, bomb king, heavenly dragon
  452.         globU32[0x285] = 0;
  453.        
  454.         //index = a18 - magic dragon, belias, chaos, zodiark
  455.         globU32[0x286] = 0;
  456.        
  457.         //index = a1c - cuchulainn, zalera, ffamfrit, hashmal
  458.         globU32[0x287] = 0;
  459.        
  460.         //index = a20 - shemhazai, matheus, zaromus, exodus
  461.         globU32[0x288] = 0;
  462.        
  463.         //index = a24 - altema, adramelech, bagamnon, judge
  464.         globU32[0x289] = 0;
  465.        
  466.         //index = a28 - ghis, cid draklor, cid tower, gabranth tower
  467.         globU32[0x28a] = 0;
  468.        
  469.         //index = a2c - vayne, hyper vayne, last vayne, antlion
  470.         globU32[0x28b] = 0;
  471.        
  472.         //index = a30 - gabranth bahamut, mimic crystal green, mimic crystal blue, mimic crystal red - setting crystals to done, since we'll have access to teleport
  473.         globU32[0x28c] = 0;
  474.        
  475.         //index = a34 - gembu, old dragon, blight, suzaku
  476.         globU32[0x28d] = 0;
  477.        
  478.         //index = a38 - jing yang, seeq prisoner, garamsythe imperial, vossler
  479.         globU32[0x28e] = 0;
  480.        
  481.         //index = a3c - judge bergan, darkfire, soul of darkness, soul of saint
  482.         globU32[0x28f] = 0;
  483.        
  484.         //index = a40 - deathgaze, remora, mice, rogue tomato
  485.         globU32[0x290] = 0;
  486.        
  487.         //index -  reset rogue tomato hunt quest
  488.         globU8[0x1030] = 0xfe;
  489.        
  490.         //index = a6a
  491.         globU16[0x535] = 1;
  492.        
  493.         //index = a6c
  494.         globU16[0x536] = 1;
  495.        
  496.         //index
  497.         globU8[0xa6e] = 1;
  498.        
  499.         //index - FIXME: test this one completion
  500.         globU8[0xcc7] = 0;
  501.        
  502.         return;
  503.     }
  504.    
  505.     function reset_hunts()
  506.     {
  507.         //index - reset hunt quests completion
  508.         globU8[0x1030] = 0;
  509.        
  510.         //index - reset hunt quests completion
  511.         globU8[0x1031] = 0;
  512.        
  513.         //index - reset hunt quests completion
  514.         globU8[0x1032] = 0;
  515.        
  516.         //index - reset hunt quests completion
  517.         globU8[0x1033] = 0;
  518.        
  519.         //index - reset hunt quests completion
  520.         globU8[0x1034] = 0;
  521.        
  522.         //index - reset hunt quests completion
  523.         globU8[0x1035] = 0;
  524.        
  525.     //reset more hunt quest progress -
  526.         //index - reset hunt quest taken
  527.         globU8[0x1010] = 0;
  528.        
  529.         //index - reset hunt quest taken
  530.         globU8[0x1011] = 0;
  531.        
  532.         //index - reset hunt quest taken
  533.         globU8[0x1012] = 0;
  534.        
  535.         //index - reset hunt quest taken
  536.         globU8[0x1013] = 0;
  537.        
  538.         //index - reset hunt quest taken
  539.         globU8[0x1014] = 0;
  540.        
  541.         //index - reset hunt quest taken
  542.         globU8[0x1015] = 0;
  543.        
  544.         //index = 10e4 - hunt progress
  545.         globU32[0x439] = 0;
  546.        
  547.         //index = 10e8 - hunt progress
  548.         globU32[0x43a] = 0;
  549.        
  550.         //index = 10ec - hunt progress
  551.         globU32[0x43b] = 0;
  552.        
  553.         //index = 10f0 - hunt progress
  554.         globU32[0x43c] = 0;
  555.        
  556.         //index = 10f4 - hunt progress
  557.         globU32[0x43d] = 0;
  558.        
  559.         //index = 10f8 - hunt progress
  560.         globU32[0x43e] = 0;
  561.        
  562.         //index = 10fc - hunt progress
  563.         globU32[0x43f] = 0;
  564.        
  565.         //index = 1100 - hunt progress
  566.         globU32[0x440] = 0;
  567.        
  568.         //index = 1104 - hunt progress
  569.         globU32[0x441] = 0;
  570.        
  571.         //index = 1108 - hunt progress
  572.         globU32[0x442] = 0;
  573.        
  574.         //index = 110c - hunt progress
  575.         globU32[0x443] = 0;
  576.        
  577.         //index = 1110 - hunt progress
  578.         globU32[0x444] = 0;
  579.    
  580.     //reset hunt enemy spawns: 0 - not yet (have to pick quest), 1 - spawned, 2 - killed
  581.         //index = a44
  582.         globU32[0x291] = 0;
  583.        
  584.         //index = a48
  585.         globU32[0x292] = 0;
  586.        
  587.         //index = a4c
  588.         globU32[0x293] = 0;
  589.        
  590.         //index = a50
  591.         globU32[0x294] = 0;
  592.        
  593.         //index = a54
  594.         globU32[0x295] = 0;
  595.        
  596.         //index = a58
  597.         globU32[0x296] = 0;
  598.        
  599.         //index = a5c
  600.         globU32[0x297] = 0;
  601.        
  602.         //index = a60
  603.         globU32[0x298] = 0;
  604.        
  605.         //index = a64
  606.         globU32[0x299] = 0;
  607.        
  608.         //index = a68
  609.         globU16[0x534] = 0;
  610.        
  611.         return;
  612.     }
  613.    
  614.     function reset_fix()
  615.     {
  616.         //index
  617.         globU8[0x1067] = 0;
  618.        
  619.         //index - tomato progress
  620.         globU8[0x10e4] = 0;
  621.        
  622.         //index
  623.         globU8[0x10ea] = 0;
  624.        
  625.         //index
  626.         globU8[0x1101] = 0;
  627.        
  628.     //barheim mimic fix
  629.         //index = 9c0
  630.         globU32[0x270] = 0;
  631.        
  632.         //index = 9c4
  633.         globU32[0x271] = 0;
  634.        
  635.         //index = 9c8
  636.         globU32[0x272] = 0;
  637.        
  638.         //index = 9cc
  639.         globU32[0x273] = 0;
  640.        
  641.         //index = 9d0
  642.         globU32[0x274] = 0;
  643.        
  644.         //index = 9d4
  645.         globU32[0x275] = 0;
  646.        
  647.         //index = 9d8
  648.         globU32[0x276] = 0;
  649.        
  650.         //index = 9dc
  651.         globU8[0x9dc] = 0;
  652.        
  653.     //leviathan fix
  654.         //index
  655.         globU8[0xa28] = 0;
  656.  
  657.     //jahara fix
  658.         globU8[0x1104] = 100;
  659.        
  660.         return;
  661.     }
  662.    
  663.     function reset_party()
  664.     {
  665.         if (ispartymember(1) == 1)
  666.             removepartymember(1);
  667.        
  668.         if (ispartymember(2) == 1)
  669.             removepartymember(2);
  670.        
  671.         if (ispartymember(3) == 1)
  672.             removepartymember(3);
  673.        
  674.         if (ispartymember(4) == 1)
  675.             removepartymember(4);
  676.  
  677.         if (ispartymember(5) == 1)
  678.             removepartymember(5);
  679.        
  680.         removeguestbattlemember(0);
  681.         removeguestbattlemember(1);
  682.         removeguestbattlemember(2);
  683.         removeguestbattlemember(3);
  684.         removeguestbattlemember(4);
  685.         removeguestbattlemember(5);
  686.         removeguestbattlemember(6);
  687.         removeguestbattlemember(7);
  688.         removeguestbattlemember(8);
  689.         removeguestbattlemember(9);
  690.         removeguestbattlemember(10);
  691.         removeguestbattlemember(11);
  692.         removeguestbattlemember(12);
  693.         removeguestbattlemember(13);
  694.         removeguestbattlemember(14);
  695.         removeguestbattlemember(15);
  696.         removeguestbattlemember(16);
  697.         removeguestbattlemember(17);
  698.         removeguestbattlemember(18);
  699.         removeguestbattlemember(19);
  700.         removeguestbattlemember(20);
  701.         removeguestbattlemember(21);
  702.         removeguestbattlemember(22);
  703.         removeguestbattlemember(23);
  704.        
  705.         setbattlemember(-1, 0, -1); //set van
  706.         showparty();
  707.         return;
  708.     }
  709.    
  710.     function reset_battle()
  711.     {
  712.         setbattlemember(-1, 0, -1); //set van
  713.        
  714.         removebattlemember(1);
  715.         removebattlemember(2);
  716.         removebattlemember(3);
  717.         removebattlemember(4);
  718.         removebattlemember(5);
  719.  
  720.         showparty();
  721.         return;
  722.     }
  723. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement