• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

Events/Functions Request

Pinco

UOEC Modder
Stratics Veteran
Stratics Legend
Here is some events/function that will greatly improve the UI performance if they will be added:

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