Resource icon

Bittiez Utilities 1.0.3

Author
Bittiez
Downloads
88
Views
1,835
First release
Last update
Rating
5.00 star(s) 2 ratings
No permission to download Join the discussion

More resources from Bittiez

What Is This?
This is a collection of Utilities/Tools that I have found useful time and time again, rather than re coding them each time I am going to keep them in this script, making them easily reusable and saving time.


Installation and ServUO version
To install simply unzip the file to /Scripts/Custom/

Tested with ServUO Publish 54

Usage:

Method 1:
Use
C#:
Bittiez.Tools.<The Method You Want To Use Here>
Method 2:
Place this line at the top of your script(s):
C#:
using Bittiez;
And use
C#:
Tools.<The Method You Want To Use Here>

Note: This is currently a very small amount of methods, but ill be adding to it often.




Current Methods

This method will return a List of items at the specific location
Usage ex:
C#:
Mobile from = <Mobile here>;
List<Item> Items = Bittiez.Tools.Find_Items_At_Location(from.Location, from.Map);
This method will call a method(CallBack) after the specified delay.
Usage ex:
C#:
Start_Timer_Delayed_Call(TimeSpan.FromSeconds(1), Test)
public void Test(){
//Run some code here after 1 second
}
This will return a List of all connected players
Usage ex:
C#:
List<Mobile> Online_Players = Bittiez.Tools.List_Connected_Players();
This will write a line to the console with a specific color
Usage ex:
C#:
Bittiez.Tools.ConsoleWrite(ConsoleColor.Blue, "Some line here");
This will return a List-SkillName- of all skills in the system.
EX:
C#:
List<SkillName> Skillz = Bittiez.Tools.List_All_Skills();
This will return a list of all items in a container, if Search_Sub_Containers is true, it will recursevly search all containers recursevly.
Ex:
C#:
List<Item> Items = List_Items_In_Container((BaseContainer)Mobile.Backpack, true);
  • Like
Reactions: sircapted

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back