08.02.2016, 01:04
(This post was last modified: 08.02.2016, 01:08 by Profesores.)
(07.02.2016, 17:18)KimiorV Wrote: Chwalisz się czy żalisz tym? Mogę Ci wysłać lepsze "skrypty". :/





C++
- void CCore::InitGame()
- {
- this->isInitiated = true;
-
- this->GetGameWindow()->SetGameWindowTitle(GO_TITLE);
-
- oCGame* game = oCGame::GetGame();
- game->LoadWorldStartup(zSTRING("world.zen"));
- game->EnterWorld(0, 1, *(zSTRING*)(0x00869978));
-
- game->GetSpawnManager()->SetSpawningEnabled(0);
-
- game->SetTime(0, 8, 0);
-
- this->GetChat()->Initialize();
- this->GetChat()->Show(true);
-
- //Messages
- this->GetChat()->AddLine("Gothic Online", zCOLOR(0, 255, 255, 255));
- this->GetChat()->AddLine("Game initialized! Loading network game...", zCOLOR(255,255,0,255));
- this->GetNetworkGame()->Initalize();
- this->GetNetworkGame()->Connect(this->GetConfiguration()->GetServerAddress(), this->GetConfiguration()->GetServerPort());
-
- };