Jump to content

Cant ride mount with ctrl+g


Recommended Posts

  • Developer

In cmd_general.cpp search and post here this function:

ACMD(do_ride)
{
  ...
}

It is in this function that what you say happens, in fact the CTRL + G command starts this command from player.

Edited by Mitachi
  • Good 1


Join

Link to comment
Share on other sites

  • Developer
1 minute ago, dexolus said:

Hi, im sorry i found it like 10 minutes before u write me here. THanks for response. My problem was bad type and subtype in database. When  i set it corectly it works now ? Thank you and have a nice day ?

My mistake, I read that you had inserted a new mount system, not a new mount.
This is why I thought the problem stemmed from the code. Anyway well, you have solved


Join

Link to comment
Share on other sites

  • Developer

Because the various types are linked to subtypes, such as in Srcs/Server/db/ProtoReader.cpp

int get_Item_SubType_Value(int type_value, string inputString) 
{
...
	static string arSub16[] = { "UNIQUE_NONE", "UNIQUE_BOOK", "UNIQUE_SPECIAL_RIDE", ...

You probably use UNIQUE_SPECIAL_RIDE, which is a subtype that is part of array number arSub16


Join

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


×
×
  • 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.