Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 13:11

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

Advertisement



PHYTON - Metin 2 Listener

Discussion on PHYTON - Metin 2 Listener within the Metin2 Private Server forum part of the Metin2 category.

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,891
Received Thanks: 2,764
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


Similar Threads 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! Danke an alle die mir Helfen. MfG
[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 org.bukkit.event.block.BlockEvent at org.bukkit.plugin.SimplePluginManager.getRegistrat ionClass(SimplePl uginManager.java:564) at org.bukkit.plugin.SimplePluginManager.getRegistrat ionClass(SimplePl uginManager.java:562) at...
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 +1. The time now is 13:11.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.