Register for your free account! | Forgot your password?

You last visited: Today at 19:30

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


PHYTON - Metin 2 Listener

Reply
 
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 06/01/2017, 02:15   #2

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,876
Received Thanks: 2,723
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  
Thanks
1 User
Reply



« Server bauen auf Hamachi - Später auf Root? | Metin2 Private server creation but no hamachi? »

Similar Threads
Bukkit Listener sollen nur in einer bestimmten Map Arbeiten ?
06/10/2013 - Minecraft - 10 Replies
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 Helfen wollt schickt mir doch bitte eine ganze Zeile dann kann ich es viel besser nachvollziehen! ...
[S] Votifier Plugin + Listener [B] e*g
06/02/2013 - elite*gold Trading - 0 Replies
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
Plugin Programmieren: Probleme mit dem Listener
09/12/2012 - Minecraft - 6 Replies
Hallo, ich bin gerade dabei ein Bukkit Plugin zu programmieren.... Leider bekomme ich immer eine errormeldung wenn ich das plugin Starte: org.bukkit.plugin.IllegalPluginAccessException: Unable to find handler list fo r event...
Votifier listener
06/30/2012 - Minecraft - 7 Replies
Welchen Listener und was muss ich einstellen damit beim voten z.b ingame kommt: Komunx3 hat gevotet



All times are GMT +2. The time now is 19:30.


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.