Register for your free account! | Forgot your password?

You last visited: Today at 02:25

  • Please register to post and access all features, it's quick, easy and FREE!


PHYTON - Metin 2 Listener

Old   #1
elite*gold: 0
Join Date: May 2017
Posts: 1
Received Thanks: 0
Post PHYTON - Metin 2 Listener

Hello, i want learn how to listening activity in metin 2 ?
I try "sleep", "time" but metin 2 stop working

İ want do this

If Low Hp -> Do This
İf inventory full -> Do This

Thank you

muhammedkalender is offline  
Old   #2

elite*gold: 83
Join Date: Nov 2013
Posts: 2,874
Received Thanks: 2,716
Calling the sleep function blocks the current thread for at least the given time (time accuracy depends on the system-clock).

If you don't want the application to freeze during that time you have to
a) sleep and check your condition in another thread
b) check your condition in a repeatedly called method (such as "OnUpdate" in UI-Components) without using sleep

If you decide to go with option a), keep in mind that shared objects may bei changed by the main thread during your condition check and action

If you decide to go with option b), keep in mind that the condition check and the following action will also block the application during execution

rollback is offline  
1 User

« Previous Thread | Next Thread »

Similar Threads
Bukkit Listener sollen nur in einer bestimmten Map Arbeiten ?
Hey Leute, Ich will das in meinem Plugin die Listener nur in bestimmten Welten Arbeiten aber wie mache ich das am besten ? Wenn ihr mir dabei...
10 Replies - Minecraft
[S] Votifier Plugin + Listener [B] e*g
ja suche Votifier plugin für bukkit. wer votet sollte 1 dia schwert + 32 exp flaschen + 32 heal potts zahle dafür max. 26 e*g lg
0 Replies - elite*gold Trading
Plugin Programmieren: Probleme mit dem Listener
Hallo, ich bin gerade dabei ein Bukkit Plugin zu programmieren.... Leider bekomme ich immer eine errormeldung wenn ich das plugin Starte: ...
6 Replies - Minecraft
Votifier listener
Welchen Listener und was muss ich einstellen damit beim voten z.b ingame kommt: Komunx3 hat gevotet
7 Replies - Minecraft

All times are GMT +2. The time now is 02:25.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.