Jump to content

Recommended Posts

.gif

I am unsure if I took the best approach or not but I am open to feedback!

I only did it with yang in the tutorial/example but it should also for for objects.

So I would like to first mention that I made this work for the regular yang in game but I had other problems, dropping yang from inventory, mobs/stones would make the yang fall from the sky instead on the ground as it should normally. So I decided to make a new vnum for the yang that falls from the sky, I thought that would be the simplest way.

So before doing the tutorial go to your item_proto and copy the yang vnum line:

1	Yang	ITEM_ELK	0	1	NONE	NONE	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0

And paste it with a different vnum, my case 2 :

2	Yang	ITEM_ELK	0	1	NONE	NONE	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0

Only the ITEM_ELK Matters anyway. Then make sure to add to item names : 2 Yang

Clientside in item_list same story 

2	ETC	icon/item/money.tga	d:/ymir work/item/etc/money.gr2

I did hardcode the vnum for this example and ofc for multiple items I could hardcode an item range but I feel like the best approach would be to create an item_type for it and then do not have hardcoded values.
For objects it might be better but I havent tested, in my head instead of just dupping every item perhaps just make a vnum that points at it like theres with blessing marbles for example if you /i 39004 you will get an item with the vnum 70024 in your inventory, so perhaps we can make the 39004 blessing marble fall out of sky and the 70024 can drop nicely from metin stones or mob drop but again I havent tested it but I am just imagining, I might be wrong.

before you download the tutorial what I did is just basically modify serverside lua so that accepts a custom range for our quest, our quest is just spawning the vnum 2 yang around us and in client side the vnum 2 item has modified height that it falls from and speed from UserInterface/PythonItem.cpp  

I left comments regarding adjustments that you could bring for the rain in the lua quest and client PythonItem.cpp file

It's fun to see the yang fall out of sky 😄

Download: 

This is the hidden content, please

  • Metin2 Dev 4
  • Love 1
Link to comment
https://metin2.dev/topic/34542-yangobjects-rain/
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.