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
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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Multi Language System

    2. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    3. 4

      Feeding game source to LLM

    4. 0

      Quest 6/7 Problem

    5. 5

      Effect weapons

    6. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    7. 3

      Crystal Metinstone

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.