1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice
  3. Greetings Guest, Having Login Issues? Check this thread!
    Dismiss Notice
  4. Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
    Dismiss Notice
  5. Author Wes Locher has teamed up with Stratics for a giveaway of his new book Braving Britannia. This book explores the history and impact of Ultima Online and includes interviews from current and past dev team members as well as many UO and Stratics community members. Click here for more details!
    Dismiss Notice

Events/Functions Request

Discussion in 'UO Enhanced Client Discussion' started by Pinco, Mar 28, 2012.

  1. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Jul 25, 2005
    Likes Received:
    Here is some events/function that will greatly improve the UI performance if they will be added:

    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
    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.