Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Permanent mount seal (nightmare & unicorn)


CantSt0p

Question

Dear M2.Devs

I'm currently kinda struggling with mounts (Unicorn and Nightmare) using TMP4 40k files (huge shoutout for his work)

I'm trying to make them permanent (ID 71171, 71172 - NPC 20227, 20226). I tried to change the "ride.quest" remain_time from item.get_socket(2)*60 to 60*60*24*365, i also tried to change that value to some random times, but without any success. The seal time remains on 3 hours.

In item_proto (both, txt an db) there is no limitation in limittype.

Am I missing something? Is there anything else, that needs to be changed? 

Item_proto

71171	ĻťņĮīŌń‹ľ“»Į∆–	ITEM_UNIQUE	UNIQUE_SPECIAL_RIDE	1	ANTI_STACK	QUEST_USE_MULTIPLE | LOG	WEAR_SHIELD	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	180	0	0	0	0	0	0	0	0

mysql db

71171	¹éÀ¯´ÏÄܼÒȯÆÐ	Unicorn Seal	16	2	0	1	32768	9216	128		0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	180	0	0	0	0	0	-1	-1	-1	-1	-1	-1	0	0	0

ride.quest - it default quest, since i does not succeed I have changed value (except bonus) back to the default

quest ride begin
	state start begin
		function Ride( vnum, remain_time )
			ride_info = {
				[71114] = { 20110,	5*60,					apply.DEF_GRADE_BONUS,	75,		75,	true	},
				[71115] = { 20110,	item.get_socket(2)*60,	apply.DEF_GRADE_BONUS,	100,	75,	false	},
				[71116] = { 20111,	5*60,					apply.DEF_GRADE_BONUS,	100,	80,	true	},
				[71117] = { 20111,	item.get_socket(2)*60,	apply.DEF_GRADE_BONUS,	150,	80,	false	},
				[71118] = { 20112,	5*60,					apply.DEF_GRADE_BONUS,	125,	85,	true	},
				[71119] = { 20112,	item.get_socket(2)*60,	apply.DEF_GRADE_BONUS,	200,	85,	false	},
				[71120] = { 20113,	5*60,					apply.ATT_GRADE_BONUS,	200,	85,	true	},
				[71121] = { 20113,	item.get_socket(2)*60,	apply.ATT_GRADE_BONUS,	300,	85,	false	},
				[71171] = { 20227,	item.get_socket(2)*60,	apply.ATT_GRADE_BONUS,	350,	1,	false,	false,	false},
				[71172] = { 20226,	item.get_socket(2)*60,	apply.ATT_GRADE_BONUS,	350,	1,	false,	false,	false},
				}

			if pc.level < ride_info[vnum][5] then
				say("")
				say(gameforge.ride._010_say)
				say("")
			else
				if 112 == pc.get_map_index() then
					return
				end
				if ride_info[vnum][2] == 0 and remain_time != 0 then
					pc.mount( ride_info[vnum][1], remain_time*60 )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
				else
					pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
				end

				if true == ride_info[vnum][6] then
					pc.remove_item(vnum, 1)
				end	
			end	
		end

		when login begin
			local vnum, remain_time = pc.get_special_ride_vnum()
			if vnum <=  71113 or vnum >71121 then
				return
			end
			if 0 != vnum then
				ride.Ride(vnum, remain_time)
			end
		end

		when 71114.use or 71115.use or 71116.use or 71117.use or 71118.use or 71119.use or 71120.use or 71121.use 
				or 71171.use or 71172.use begin
			 if pc.is_polymorphed() then
				 say("")
				 say(gameforge.ride._020_say)
				 say("")
			elseif false == pc.is_riding() then
			 	if true == horse.is_summon() then
					horse.unsummon()
				end
				 ride.Ride(item.vnum, 0)
			 else
				say("")
				 say(gameforge.ride._030_say)
				 say("")
			 end
		end
	end
end

Thanks in advance.

Edited by CantSt0p
typo
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Update. Its handled by value0. ("180" at this example in item_proto and mysql db)

But I still could not figured out, how to make it permanent 🤷🏻‍♂️ It would be nice to know. Same thing is happening with hairs.

Edited by CantSt0p
typo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    2. 3

      Biologist Manager (C++ & LUA)

    3. 3

      Visual studio 2022 compiling issue

    4. 63

      Metin2 | Mount System Renewal

    5. 58

      Metin2 2004 Beta Client

    6. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

    7. 0

      Please help here ( Sush system problem )

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