Here is some events/function that will greatly improve the UI performance if they will be added:
EVENTS
EVENTS
- OnCastSpell(int spellID) - thrown when a spell casting request has been sent
- OnCastSpellFinish(int spellID, bool success) - thrown when the spell casting is over
- OnUseSkill(int skillID) - thrown when a skill use request has been sent
- OnUseSkillFinish(int skillID, bool success, float cooldown) - thrown when a skill has been used
- OnUseItem(int itemID) - thrown when a use item request has been sent
- OnUseItemFinish(int itemID, bool success) - thrown when an item has been used
- OnUseWeaponSpecial(int specialID) - thrown when a weapon special request has been sent
- OnUseWeaponSpecialFinish(int itemID, bool success) - thrown when a weapon special has been used
- GetTerrainType(int x, int y, int z) - return the terrain type on the given coordinates. Example "water", "snow", "dirt", "road", "grass", "rock", etc...
- GetDistanceFromPlayer(int x, int y) - return the distance in tiles from the given screen point and the player.
- GetRealDateTime() - return the current Date Time in the default system format.
- GetGameDateTime() - return the current Date Time of the game area where the player is located.
- SaveTextFile(string path, string text) - save the text into a txt file.
- PlaySoundByID(int ID) - play a game sound by id (client side only, only the player will hear it).
- PlaySound(string path) - play an mp3/wav sound (client side only, only the player will hear it).
- Resync() - resyncronize the client with the server. Useful when your character location is not right.