Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 09:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement


Access Holiday outposts

Discussion on Access Holiday outposts within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 95
Received Thanks: 9
Access Holiday outposts

Hey guys,

i'm currently playing around with gwca and it's awesome (thanks to all the developers, you guys rock ).

Now i want to know if its possible to change the map you're loading in to say Kamadan wintersday (MapID: 819) when you would normally move to Kamadan.

i tested changing the contents of the "InstanceLoadInfo" Packet (header: 411) but these are only kinda?! working.
Changing:
  • the district only changes the district dropdown label
  • the language leads to crashing
  • the map_id seems to do nothing
  • is_explorable leads to crashing when using a skill (kindof understandable^^)
  • is_observer changes to observer mode but you can only observer your own party (so i can not "fly" to other characters)

Do i use the wrong approach or do i change the wrong packet?
I found the packet here:

I know its a StoC Packet so maybe i need to send my own CtoS Packet to tell the server i want to join kama wintersday?


One more thing. I started by trying out the zaishen title example from . But when i use "FreeLibraryAndExitThread(hModule, EXIT_SUCCESS);" after pressing "VK_END" (see code below) the game crashes. I thought this would only exit my dll thead created by the "CreateThread" method?
I'm "only" a Javascript developer with minor knowledge in C++ and maybe this is the expected behaviour but it seems strange to me.


Code:
#include <Windows.h>

#include <functional>
#include <stdlib.h>
#include <stdint.h>

#include <GWCA/GWCA.h>
#include <GWCA/GameContainers/GamePos.h>
#include <GWCA/Utilities/Export.h>

#include <GWCA/Packets/StoC.h>
#include <GWCA/Managers/StoCMgr.h>
#include <GWCA/Managers/CtoSMgr.h>
#include <GWCA/GameEntities/Agent.h>
#include <GWCA/Managers/AgentMgr.h>
#include <GWCA/Constants/Maps.h>

FILE *stream;


void init(HMODULE hModule) {

	// open console and redirect stdout into it
	AllocConsole();
	freopen_s(&stream, "CONOUT$", "w", stdout);

	GW::Initialize();
		
	GW::StoC::AddCallback<GW::Packet::StoC::InstanceLoadInfo>([](GW::Packet::StoC::InstanceLoadInfo* pak) -> bool {
		printf("InstanceLoadInfo loaded\n");
		if (GetAsyncKeyState('S') & 1) {
			printf("Value changed!\n");
			pak->map_id = static_cast<uint32_t>(GW::Constants::MapID::Kamadan_Jewel_of_Istan_Wintersday_outpost);
		}
		return false;
	});



	while (1) {
		Sleep(100);

		// Get Player Agent Structure.
		GW::Agent* player = GW::Agents::GetPlayer();

		if (GetAsyncKeyState(VK_SPACE) & 1) {
			if (player != NULL) {
				printf("Player: %ls: %f %f\n", GW::Agents::GetAgentName(player).c_str(), player->pos.x, player->pos.y);
			}
		}

		if (GetAsyncKeyState(VK_END) & 1) {
			break;
		}
	}

	GW::Terminate();
	FreeConsole();
	FreeLibraryAndExitThread(hModule, EXIT_SUCCESS); // crashes here
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
		DisableThreadLibraryCalls(hModule);
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)init, hModule, 0, 0);
	}
	return TRUE;
}
~ Skippster
Skippster is offline  
Old 04/03/2019, 22:59   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 81
Received Thanks: 60
From my understanding, ATM the game servers are gate keepers of the seasonal maps, when the map is supposed to halloween it will redirect you to halloween map instead of normal map. as far as i know is impossible to map travel to seasonal maps, but im still very green to manipulating the GW client using the API's. i know there is(or was) a way to load pvp maps with you alone but dont have the faintiest idea of how to do it
afmart is offline  
Old 04/04/2019, 17:45   #3
 
elite*gold: 0
Join Date: May 2014
Posts: 263
Received Thanks: 318
It's possible but not public, sry.
DerMoench14 is offline  
Old 04/12/2019, 22:09   #4
 
elite*gold: 0
Join Date: Jun 2013
Posts: 39
Received Thanks: 25
canthan new year lions arch map is open year round, other than that nope
4D1 is offline  
Old 04/18/2019, 12:24   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 81
Received Thanks: 60
Quote:
Originally Posted by DerMoench14 View Post
It's possible but not public, sry.
can you load the holiday npcs too?
afmart is offline  
Reply


Similar Threads Similar Threads
Silkroad-R - Asia Minor Outposts 2 Quests [Video Tutorial]
08/13/2018 - SRO Guides & Templates - 3 Replies
Hi guys! Silkroad-R play will be sharing my friends do their duty as a video game with you. I think you will be very relieved at this task I offer you the part you can not make the game ready. 1. Quest https://www.youtube.com/watch?v=xZKWzJ71y14 2. Quest
$2.80 Full-Access Premium Minecraft accounts [semi FULL ACCESS] and Full access
07/17/2017 - Minecraft Trading - 1 Replies
★★ Full-Access Premium Minecraft accounts ★★ To buy add me on skype: xXWaffleFaceXx Hey guys, I'm selling Semifull and Full-access Unmigrated Minecraft accounts. That means you can do the following things: ✔ Change Skin ✔ Change Username ✔ Change Password ✔ Change E-mail ✔ And much more! WITH THE ACCOUNTS I SELL YOU YOU CAN CHNAGE ANYTHING INCLUDING USERNAME AND EVEN EMAIL, its like normal mojang account
$2.88 Full-Access Premium Minecraft accounts [FULL ACCESS] [NON-MIGRATED] [CHEAPEST]
08/02/2015 - Minecraft Trading - 1 Replies
$2.88 Full-Access Premium Minecraft accounts ★★ Full-Acces Premium Minecraft accounts ★★ Hey guys, I'm selling Full-acces Unmigrated Minecraft accounts. That means you can do the following things: ✔ Change Skin ✔ Change Username ✔ Change Password ✔ Change E-mail ✔ And much more!
[BRAND NEW] EDENCRAFT PVP SERVER JOBS OUTPOSTS MCMMO (GER/ENG)
05/04/2013 - Minecraft Server Advertising - 0 Replies
(beta) Edencraft 1.5.1 Welcome to Edencraft - join today! minehost21.host-unlimited.de:25615



All times are GMT +2. The time now is 09:27.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.