romegames 1
romegames
Krutzo 1
Krutzo
shrpnl 1
shrpnl
Best Studio 1
Best Studio
D 1
delimuratt
Aliyldrim 1
Aliyldrim
Mt2Hizmet 1
Mt2Hizmet
noisiv 1
noisiv
Manwe Work 1
Manwe Work
melankolıa18 1
melankolıa18
Agora Metin2 1
Agora Metin2
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Yang & Object Rain Metin2

Shadow69

Level 1
Üye
Katılım
8 Nis 2026
Konular
2
Mesajlar
4
Online süresi
1h 54m
Reaksiyon Skoru
2
Altın Konu
0
TM Yaşı
1 Ay 27 Gün
Başarım Puanı
7
MmoLira
266
DevLira
3
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Yang & Object Rain
Metin2​

In this repo yang rain is an example but you can easily extend it to objects if you feel like it

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

1780519104046.png


How it works​

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. Client side the vnum 2 item has modified height that it falls from and speed from UserInterface/PythonItem.cpp

Adjustments​

I left comments where what you can adjust, either the speed of the objects spawned, for how long and amount in the lua quest And for the height and speed of the fall in client UserInterface/PythonItem.Cpp

Additional Info​

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 haven't tested, in my head instead of just dupping every item perhaps just make a vnum that points at it. 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. I haven't tested it but I am just imagining, I might be wrong.

Needless to say you can adjust it for objects but element of the best approach.

Good luck and have fun my friends. Download:

Discord : shadowofthelove
 

Şu an konuyu görüntüleyenler (Toplam : 2, Üye: 0, Misafir: 2)

Geri
Üst