vSRO Çözüldü Online / Offline Player trigger for events

Marwan Hussein

.
Aktiflik: 2%
1 Mesaj
Katılım
2 Nis 2026
Mesajlar
177
Çözümler
1
Tepkime puanı
3
Puan
18
Thread owner
where exactly the log of the online / offline players in maxiguard, in situation case like LastManStanding if a player logged off how do i notify the proced this account elimitnated from the event and continue the proced with the rest player ??
 
Çözüm
There is no need for any additional action on the Guard side for this.
You can track the entry and exit status of the relevant character through the EventID = 4 and EventID = 6 controls.
Then, with a small check added to the _AddLogChar procedure, you can verify whether the character is in the event zone and automatically disqualify the character who violates the rules from the event.

The problem Fixed after the hints from above thats alot guys

Bunun için Guard tarafında ek bir işlem yapılmasına gerek yok.
İlgili karakterin EventID = 4 ve EventID = 6 kontrolleri üzerinden etkinliğe giriş ve çıkış durumunu takip edebilirsiniz.
Ardından _AddLogChar prosedürüne eklenecek küçük bir kontrol ile karakterin etkinlik bölgesinde bulunup bulunmadığını doğrulayabilir, kuralları ihlal eden karakteri otomatik olarak etkinlikten diskalifiye edebilirsiniz.
 
Oyla 0
Oyuncuların online/offline durumu SRO_VT_LOG.._AddLogChar prosedürü üzerinden takip edilmektedir. Oyuncu oyundan çıktığında veya bağlantısı koptuğunda @EventID = 6 (logout/disconnect) tetiklenir.
Örnek tablo

Kod:
İçeriği görebilmek için Giriş yap ya da üye ol.


Charname
isAlive
Player11

Player2
1


Burada isAlive = 1 oyuncunun halen LMS içerisinde aktif olduğunu ifade eder.

Logout sırasında aşağıdaki kontrol yapılmaktadır:

örnek:
Kod:
İçeriği görebilmek için Giriş yap ya da üye ol.

Eğer disconnect olan oyuncu LMS içerisinde aktif ise Bartu_Event.._Event_LMS_Disqualify prosedürü otomatik olarak çalıştırılır.

Bu prosedür oyuncuyu LMS'den çıkarır:
örnek:
Kod:
İçeriği görebilmek için Giriş yap ya da üye ol.
Örnek olarak Player2 oyundan çıkarsa:



Charname
isAlive
Player11

Player2
0

Daha sonra prosedür:

Kod:
İçeriği görebilmek için Giriş yap ya da üye ol.

ile hayatta kalan oyuncu sayısını yeniden hesaplar. Eğer sadece bir oyuncu kalmışsa kazanan belirlenir ve event normal şekilde sonlandırılır.
 
Oyla 0
Thread owner
There is no need for any additional action on the Guard side for this.
You can track the entry and exit status of the relevant character through the EventID = 4 and EventID = 6 controls.
Then, with a small check added to the _AddLogChar procedure, you can verify whether the character is in the event zone and automatically disqualify the character who violates the rules from the event.

The problem Fixed after the hints from above thats alot guys

 
Oyla 0
Çözüm

Bu konuyu görüntüleyen kullanıcılar

Geri
Üst Alt