Author Topic: [Module | Unit] Events  (Read 5020 times)

0 Members and 1 Guest are viewing this topic.

Offline Crome969Topic starter

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
[Module | Unit] Events
« on: January 03, 2013, 08:11:14 AM »
+1
Unit Events

Header
Spoiler: show

[code]
=================================================================
 Script Name: Crome's Event Unit
 Author: Crome969 AKA Jan Siems
 Version: 1
 Shard OSI / FS: OSI
 Revision Dates: 01\03\2013
 Public Release: 01\03\2013
 Purpose: Unit with Samples of Events
 Credits: Endless Night & Trailmyx for Licence

=================================================================
 (c) 2005-2013 Crome696 - All Rights Reserved
  Please respect my property rights.. :)
=================================================================
 Disclaimer:  By downloading, copying, running or otherwise using
 this script, you accept the contents of this limited personal use
 licence agreement.
 This script is only authorized to be distributed on www.Scriptuo.com.
 If you purchase this script, or acquire it from any other source, it
 is not considered an authorized copy and should be deleted immediately.
 Crome969 AKA Jan Siems(Author) provides no warranty for use, function,
 or safe interaction with any software or hardware. User downloads and
 runs this script at his-her own risk. User shall hold Author and the
 distribution site www.scriptuo.com harmless for any loss of items,
 accounts, money, virtual currency or items associated with the use of
 this script. User shall hold the author harmless for any consequences
 that may result from the use of this script as intended.  Furthermore,
 you promise not to distribute or sell this script to anyone without
 the express permission of the author, Crome696 AKA Jan Siems.
 Violation of this agreement will result in one or more of the following:
 litigation, www.scriptuo.com account termination, bad karma for your
 next life, and most definitely causing a black mark placed on your soul.

 This Script will never become by any definition of the words "Abandon ware",
 this script will always remain the property of the author unless
 rights are transfered by auther in writing (not email Writing).

 I worked very hard to bring this script to you, so please use it
 responisibily and respectfully.  If you have any questions, please
 reach me at jsiems87@googlemail.com

 (c) 2005-2013 Crome696 - All Rights Reserved
 Please respect my property rights.. :)
===================================================================
 Additional Licence to Use Agreement: You are free to use this script for not
 for profit personal UO gameplay. You are *NOT* free to repost,
 modify and repost, post on other websites, post as part of a script
 or work you yourself have created, email or transfer to another
 person by any method, or otherwise distribute without written
 permision from the author. This Applies to the script as a whole and
 any given part of the script.
 This license to use can be changed at any time for any reason.
 If in doubt dont do it contact the author.

 Commercial usage of any kind requires written permission from the author.

 (c) 2005-2013 Crome696 - All Rights Reserved
 Please respect my property rights.. :)
===================================================================
===================================================================
 NOTE: My scripts or any derivative of them are *not* for use in other players script!
 EXCEPTION : This Unit can be used to handle & support your own Scripts.
             Modifying this Unit is probhited without written permission from Author!
===================================================================
===================================================================
[/code]

Introduction
Spoiler: show

Today i want to publish my small Unit to handle Events. This is not a final Version but gives the Opportunity
of handling Buff\Debuffs in Current Version.

Variables
Spoiler: show

[code]var PlayerBuff : TCharacter_Buffs;[/code]
Custom made Type assigned on the Variable PlayerBuff. Event will use [b]PlayerBuff[/b]
for read & write their states into it.

[code]
  Type TCharacter_Buffs = record
    Buff_Dismount : Boolean;
    Buff_Disarm : Boolean;
    Buff_Nightsight : Boolean;
    Buff_DeathStrike : Boolean;
    Buff_EvilOmen : Boolean;
    Buff_unknown : Boolean;
    Buff_Regeneration : Boolean;
    Buff_DivineFury : Boolean;
    Buff_EnemyOfOne : Boolean;
    Buff_Stealth: Boolean;
    Buff_ActiveMeditation : Boolean;
    Buff_BloodOathcaster : Boolean;
    Buff_BloodOathcurse : Boolean;
    Buff_CorpseSkin : Boolean;
    Buff_Mindrot : Boolean;
    Buff_PainSpike : Boolean;
    Buff_Strangle : Boolean;
    Buff_GiftofRenewal : Boolean;
    Buff_AttuneWeapon : Boolean;
    Buff_Thunderstorm : Boolean;
    Buff_EssenceofWind : Boolean;
    Buff_EtherealVoyage : Boolean;
    Buff_GiftOfLife : Boolean;
    Buff_ArcaneEmpowerment : Boolean;
    Buff_MortalStrike : Boolean;
    Buff_ReactiveArmor : Boolean;
    Buff_Protection : Boolean;
    Buff_ArchProtection : Boolean;
    Buff_MagicReflection : Boolean;
    Buff_Incognito : Boolean;
    Buff_Disguised : Boolean;
    Buff_AnimalForm : Boolean;
    Buff_Polymorph : Boolean;
    Buff_Invisibility : Boolean;
    Buff_Paralyze : Boolean;
    Buff_Poison : Boolean;
    Buff_Bleed : Boolean;
    Buff_Clumsy : Boolean;
    Buff_FeebleMind : Boolean;
    Buff_Weaken : Boolean;
    Buff_Curse : Boolean;
    Buff_MassCurse : Boolean;
    Buff_Agility : Boolean;
    Buff_Cunning : Boolean;
    Buff_Strength : Boolean;
    Buff_Bless : Boolean;
    Buff_WrathForm : Boolean;
    Buff_HorrificBeast : Boolean;
  end;
[/code]
Members you can read when using PlayerBuff.
[code]
AntiAFKTimer :TDateTime;
[/code]
Time when next anti AFK Handling will appear

Functions
Spoiler: show

[code]Procedure HandleBuff_Debuff(ID,Attribute_ID : Word; IsEnabled:Boolean );[/code]
Auto Activate itself, everytime a Buff or Debuff appear. Save state into known Buffs and print
current state onto Client. Also printing Informations when new Buff Appears. If you found those,
Contact me and i will add your found Buff and you as Helper to Credits!
[code]Procedure Register_BuffDebuff();[/code]
Function to Autoregister evBuff_DebuffSystem with the Procedure HandleBuff_Debuff
[code]HandleAnti_AFK();[/code]
Will Open your Backpack every 2 Minutes and Save next Timing into AntiAFKTimer
[code]RegisterAntiAFK();[/code]
Event to register EVTimer1 with HandleAnti_AFK. Event Autocheck itself every 100ms

Samples
Spoiler: show

  [code]Register_BuffDebuff();[/code]
  Then Cast a Buff\Debuff and Check what appears Ingame
[code]RegisterAntiAFK();[/code]
Preventing IdleGump on Osi

How to use it
Spoiler: show

1) Save the Attachment [b]Events.pas[/b] Into Your Stealth Folder\Scripts
2) Open your Script and below of your Programmname add :
[code]Uses Events;[/code]
3) Enjoy using my Unit :)


Version Update 4
- Added Vampire Embrance and Buff for Necromancy Effects to Buff\Debuff Event

Version Update 3
- Fixxing small Issue with Event AntiAFK Macro. Raised Event Timer to 5 Minutes instead of 2 Minutes

Version Update  2
Added Buff_WrathForm,Buff_HorrificBeast,Buff_UnknownMeditation,Buff_LichForm as Buff
Note : Buff_UnknownMeditation Appears on succesful Meditation using but disabled itself even when real Meditation is still active.
I have no clue what kind of Effect this apply but the time how long its enabled is controlled by Meditation Skill
Added Procedure HandleAnti_AFK() and RegisterAntiAFK() and Variable AntiAFKTimer as Datetime
Note : Useable for Skilling or such to Avoid "You are Idle" Blocking Ingame Gumps. Simple autoopen Backpack every 2 Minutes..

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Events.pas
« Last Edit: January 04, 2013, 05:11:15 AM by Crome969 »

Tags: