Jump to content

Recommended Posts

I have add Costume Mount Slot ( i don't know if code is right but still working) https://metin2.download/picture/n4K80kjaQw37AyFUmGC7lpv29mzPo76S/.png

But i have 1 or 2 little problems

1st: When i unmount mount_item slow(little) to unslot(go to my invetory) i don't know if it's problem of code or not

2st: When i am mount and i teleport then i'm unmount and the item_mount is state on mount_slot

 

tell me if you need more informations

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

For the second problem try using one of this quests:

 

quest mount_bug begin
	state start begin
		when login with pc.is_mount() begin
			pc.unmount()
			pc.mount(vnum)
		end
	end
end
quest mount_bug begin
	state start begin
		when item.use begin
			if pc.is_mount() then pc.setqf("is_mount", 0)
			else pc.setqf("is_mount", 1) end
		end
		when login with pc.getqf("is_mount") == 1 begin
			pc.unmount()
			pc.mount(vnum)
		end
	end
end

 

Im not sure if the first quest will work , because i dont know if when the player teleports he still has the is_mount() information so try both quests.

Dont forget to change the item and the vnum in the quest.

Link to comment
Share on other sites

22 minutes ago, Frozen said:

Im not sure if the first quest will work , because i dont know if when the player teleports he still has the is_mount() information so try both quests.

you can say after teleport mount again the previoulsy mount, just i don't know the fuction and syntax of lua and if you can prefer C++ fix.

Don't worked.

Thanks you for the reply! 

Link to comment
Share on other sites

20 minutes ago, BackPlayer said:

you can say after teleport mount again the previoulsy mount, just i don't know the fuction and syntax of lua and if you can prefer C++ fix.

Thanks you for the reply!

You just need to put the mob item vnum(item) and the mount vnum (vnum). 

 

quest mount_bug begin
	state start begin
		when item.use begin
			local mountNum = {
			[item] = vnum
			}
			if pc.is_mount() then pc.setqf("mount", 0)
			else pc.setqf("mount", mountNum[item.get_vnum()]) end
		end
		when login with pc.getqf("mount") > 0 begin
			pc.mount(pc.getqf("mount"), 60*60*24*60) --time set for 60 days
		end
	end
end

 
Link to comment
Share on other sites

5 minutes ago, Frozen said:

You just need to put the mob item vnum(item) and the mount vnum (vnum). 

 


quest mount_bug begin
	state start begin
		when item.use begin
			local mountNum = {
			[item] = vnum
			}
			if pc.is_mount() then pc.setqf("mount", 0)
			else pc.setqf("mount", mountNum[item.get_vnum()]) end
		end
		when login with pc.getqf("mount") > 0 begin
			pc.mount(pc.getqf("mount"), 60*60*24*60) --time set for 60 days
		end
	end
end


 

not worked i will you the source code wait

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

      ImperiaWorld2 - SpeedServer - Opening 03/05/2024 - NewSchool - New Graphics M2 1.0.4b Terrain depth - International

    2. 2

      Very strange bug, when creating new char

    3. 6

      Voooxy aka m2core.tech scammer

    4. 117

      Ulthar SF V2 (TMP4 Base)

    5. 0

      UI types and attributes

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