Jump to content

Recommended Posts

Hi!

So i was messing with nirvana files and i got stuck on a bug where i've added a quest to only GMs to pick a mount, whenever i pick a mount it is supost to do "pc.mount()" and yey i'm riding the mount.

I have tested it on other server files, it works.

I'm now having problems with the pc.mount() functions that is not working/is diabled.. ( i've looked to the source over a day and i'm stuck at this point )

I had the same problem with the horse, i couldn't even call it, even when it was a success call, and i fixed it on the source. But i can't find where it can be bugged the pc.mount function.

 

Any help is much appreciated.

Thank you

It's all lies

Link to comment
https://metin2.dev/topic/19537-mounts-problem/
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

2 minutes ago, WeedHex said:

Show the function lol

This is the part of the function to use the mounts:

elseif menu_choice == 4 then
				say_title("Mount?")
				local mount_choice = select("WhiteLion", "Black Lion")
				
				if mount_choice == 1 then
					pc.mount( 20114, 600 )
				elseif mount_choice == 2 then
					pc.mount( 20115, 600 )
				else
					return
				end
			else
				return
			end

 

It's all lies

Link to comment
https://metin2.dev/topic/19537-mounts-problem/#findComment-106276
Share on other sites

40 minutes ago, displayjokes said:

This is the part of the function to use the mounts:


elseif menu_choice == 4 then
				say_title("Mount?")
				local mount_choice = select("WhiteLion", "Black Lion")
				
				if mount_choice == 1 then
					pc.mount( 20114, 600 )
				elseif mount_choice == 2 then
					pc.mount( 20115, 600 )
				else
					return
				end
			else
				return
			end

 

Solved, found the file on questlua_pc > on this function: int pc_mount(lua_State* L)

 

Now have another problem, when press ctrl+g it wont let me out of the mount, anyone knows this fix? :\

It's all lies

Link to comment
https://metin2.dev/topic/19537-mounts-problem/#findComment-106282
Share on other sites

  • Contributor
26 minutes ago, displayjokes said:

Solved, found the file on questlua_pc > on this function: int pc_mount(lua_State* L)

 

Now have another problem, when press ctrl+g it wont let me out of the mount, anyone knows this fix? :\

After :

	def	__PressFKey(self):

make sure there is this def:

	def __PressGKey(self):
		if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
			net.SendChatPacket("/ride")	
		else:
			if self.ShowNameFlag:
				self.interface.ToggleGuildWindow()
			else:
				app.PitchCamera(app.CAMERA_TO_POSITIVE)

If yes check your cmd_general.cpp for do_ride

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
https://metin2.dev/topic/19537-mounts-problem/#findComment-106287
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.