Register for your free account! | Forgot your password?

You last visited: Today at 23:00

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

Advertisement



[C++] Set speed for riding mounts

Discussion on [C++] Set speed for riding mounts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1

 
elite*gold: 97
Join Date: Mar 2017
Posts: 72
Received Thanks: 64
[C++] Set speed for riding mounts

Open questlua_pc.cpp and search for the pc_mount function.

Overwrite the whole function with this:
Code:
	int pc_mount(lua_State* L)
	{
		if (!lua_isnumber(L, 1))
			return 0;

		int length = 60;

		if (lua_isnumber(L, 2))
			length = (int)lua_tonumber(L, 2);

		DWORD mount_vnum = (DWORD)lua_tonumber(L, 1);

		if (length < 0)
			length = 60;

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		ch->RemoveAffect(AFFECT_MOUNT);
		ch->RemoveAffect(AFFECT_MOUNT_BONUS);

		// ¸»ŔĚ ĽŇČŻµÇľî µű¶ó´Ů´Ď´Â »óŶó¸é ¸»şÎĹÍ ľřľÚ
		if (ch->GetHorse())
			ch->HorseSummon(false);

		int ertek = 0;
			
		if (lua_isnumber(L, 3))
			ertek = (int)lua_tonumber(L, 3);
		
		if (ertek <= 0)
			ertek = 0;
			
		ch->AddAffect(AFFECT_MOUNT, POINT_MOV_SPEED, ertek, AFF_NONE, length, 0, true, true);
		
		
		return 0;
	}
Then you can use it in quests like
Code:
pc.mount(ID, duration, speed)
ericblck is offline  
Thanks
5 Users
Reply


Similar Threads Similar Threads
Update 3 Weapon set Batman set Demon set and Barone set
03/21/2020 - Metin2 PServer Designs, Websites & Scripts - 5 Replies
Update my 3 Set weapon new claw weapon for lycan Barone Set Screen : http://djxm2m.com/photo/BaroneDjx.png : http://djxm2m.com/photo/barone.jpg Demon Set Screen: http://i.imgur.com/FRan59H.gif http://djxm2m.com/photo/game.jpg : http://djxm2m.com/photo/DemonDjx.png
[C++] Set speed for riding mounts
08/08/2017 - Metin2 Private Server - 0 Replies
#wrong topic, please delete
Teleported while riding horse and mounts
01/10/2016 - Metin2 Private Server - 0 Replies
When a character is riding horse or mount it is teleported back to different coordinates on the same map.And because of this character gets stuck on some rocks or cliff. I thought it due to speed .So i limited the speed to 175.But its of no use. What is the problem and where I have to look for it to solve it.
Riding mounts on bridges in stranglethorn
01/09/2005 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
when you first run up onto the steps, hold forward and constantly press jump, I can usually make it all the way off the bridge on the other end, but when I touch regular ground, I lose mount. (still saves some times imo) This might also work on other non-mountable areas.



All times are GMT +1. The time now is 23:00.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.