ZoriaRPG

Game->LoadQuest

Oct 24th, 2019
149
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FFScript::do_loadquest()
  2. {
  3.  
  4.     long arrayptr = get_register(sarg1) / 10000;
  5.     string name;
  6.     ArrayH::getString(arrayptr, str, 4096);
  7.  
  8.     game->Clear();
  9.  
  10.     game->set_name(name);
  11.     game->set_quest(quest);
  12.     game->set_deaths(deaths);
  13.     game->set_maxlife(3*HP_PER_HEART);
  14.     game->set_life(3*HP_PER_HEART);
  15.     game->set_maxbombs(8);
  16.     game->set_hasplayed(true);
  17.     game->set_continue_dmap(zinit.start_dmap);
  18.     game->set_continue_scrn(0x77);
  19.     resetItems(game,&zinit,true);
  20.     load_quest(game);
  21.     load_game_icon_to_buffer(false,currgame);
  22.     load_game_icon(game,false,currgame);
  23. }
RAW Paste Data