Register for your free account! | Forgot your password?

You last visited: Today at 12:27

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

 

[C++] Set speed for riding mounts

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 15
Received Thanks: 20
[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
4 Users
Reply



« Previous Thread | Next Thread »

Similar Threads
[C++] Set speed for riding mounts
#wrong topic, please delete
0 Replies - Metin2 PServer - Discussions / Questions
Teleported while riding horse and mounts
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...
0 Replies - Metin2 PServer - Discussions / Questions
Update 3 Weapon set Batman set Demon set and Barone set
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...
3 Replies - Metin2 PServer Guides & Strategies
Riding mounts on bridges in stranglethorn
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...
0 Replies - WoW Exploits, Hacks, Tools & Macros



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


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.