Ruster.NET Addons v1.0.2
Hooks & API for Ruster.NET v4.2.1API
Browser
General
string IsBlockedTonite ( bool isJamieLeeOrJackieChan )
It does or does not answer our humanity's most asked question.
Template:
Returns: Game crash.
Example:
ulong GetCommunityFeedId ( )
Used for grabbing the Community feed setup.
Template:
Returns: Returns the Community Feed-ID.
ulong GetMarketplaceFeedId ( )
Used for grabbing the Marketplace feed setup.
Template:
Returns: Returns the Marketplace Feed-ID.
ulong GetBlackmarketFeedId ( )
Used for grabbing the Blackmarket feed setup.
Template:
Returns: Returns the Blackmarket Feed-ID.
ulong GetRedRoomFeedId ( )
Used for grabbing the RedRoom feed setup.
Template:
Returns: Returns the RedRoom Feed-ID.
ulong GetRusterSkinId ( )
Used for grabbing the Ruster workshop skin ID.
Template:
Returns: Returns the Ruster workshop skin ID.
ulong GetRusterMarketplace24hAdvertSkinId ( )
Used for grabbing the Ruster Marketplace 24h Advert workshop skin ID.
Template:
Returns: Returns the Ruster Marketplace 24h Advert workshop skin ID.
ulong GetRusterMarketplace1wAdvertSkinId ( )
Used for grabbing the Ruster Marketplace 1w Advert workshop skin ID.
Template:
Returns: Returns the Ruster Marketplace 1w Advert workshop skin ID.
ulong GetRusterBusinessCardSkinId ( )
Used for grabbing the Ruster Business Card workshop skin ID.
Template:
Returns: Returns the Ruster Business Card workshop skin ID.
ulong GetRusterShortFlipbookSkinId ( )
Used for grabbing the Ruster Short Flipbook workshop skin ID.
Template:
Returns: Returns the Ruster Short Flipbook workshop skin ID.
ulong GetRusterMediumFlipbookSkinId ( )
Used for grabbing the Ruster Medium Flipbook workshop skin ID.
Template:
Returns: Returns the Ruster Medium Flipbook workshop skin ID.
ulong GetRusterLongFlipbookSkinId ( )
Used for grabbing the Ruster Long Flipbook workshop skin ID.
Template:
Returns: Returns the Ruster Long Flipbook workshop skin ID.
ulong GetRusterLegitLotteryTicketSkinId ( )
Used for grabbing the Ruster Legit Lottery Ticket workshop skin ID.
Template:
Returns: Returns the Ruster Legit Lottery Ticket workshop skin ID.
ulong GetRusterLuckyCharmLotteryTicketSkinId ( )
Used for grabbing the Ruster Lucky-Charm Lottery Ticket workshop skin ID.
Template:
Returns: Returns the Ruster Lucky-Charm Lottery Ticket workshop skin ID.
User
bool IsAdmin ( ulong userId )
Checks if an user is an administrator on Ruster.NET.
Template:
Returns: Is user an admin?
bool IsModerator ( ulong userId )
Checks if an user is a moderator on Ruster.NET.
Template:
Returns: Is user a moderator?
bool IsVerified ( ulong userId )
Checks if an user is verified on Ruster.NET.
Template:
Returns: Is user verified?
bool IsDeveloper ( ulong userId )
Checks if an user is a developer on Ruster.NET.
Template:
Returns: Is user a developer?
bool IsBot ( ulong userId )
Checks if an user is a bot on Ruster.NET.
Template:
Returns: Is user a bot?
bool IsDead ( ulong userId )
Checks if an user is marked as dead on Ruster.NET.
Template:
Returns: Is user dead?
bool IsOnline ( ulong userId )
Checks if an user is marked as online on Ruster.NET.
Template:
Returns: Is user online?
bool IsFriend ( ulong userId, ulong otherUserId )
Checks if two users are friends on Ruster.NET.
Template:
Returns: Are users friends?
string GetDisplayName ( ulong userId, bool coloured )
Properly formatted user display name as seen on Ruster.NET.
Template:
Returns: The display name of an user.
string GetUsername ( ulong userId )
Username as seen on Ruster.NET.
Template:
Returns: The username of an user.
string GetLanguage ( ulong userId )
Language an user has set for their account on Ruster.NET.
Template:
Returns: The language of an user.
ulong[] GetFriends ( ulong userId )
Gets a list of SteamIDs of an user's friends on Ruster.NET.
Template:
Returns: The friends list of an user.
ulong[] GetBlockedUsers ( ulong userId )
Gets a list of SteamIDs of an user's blocked accounts on Ruster.NET.
Template:
Returns: The blocked list of an user.
int[] GetPosts ( ulong userId )
Gets a list of IDs of published posts for an user on Ruster.NET.
Template:
Returns: The posts list of an user.
int[] GetStorePosts ( ulong userId )
Gets a list of IDs of published store posts for an user on Ruster.NET.
Template:
Returns: The store posts list of an user.
int[] GetMarketplacePosts ( ulong userId )
Gets a list of IDs of published Marketplace posts for an user on Ruster.NET.
Template:
Returns: The Marketplace posts list of an user.
int[] GetAdvertPosts ( ulong userId )
Gets a list of IDs of published Advert posts for an user on Ruster.NET.
Template:
Returns: The Advert posts list of an user.
ulong[] GetReceivedFriendRequests ( ulong userId )
Gets a list of SteamIDs for an user's received friend requests on Ruster.NET.
Template:
Returns: The received friend requests SteamID list of an user.
ulong[] GetSentFriendRequests ( ulong userId )
Gets a list of SteamIDs for an user's sent friend requests on Ruster.NET.
Template:
Returns: The sent friend requests SteamID list of an user.
bool HasBlocked ( ulong userId, ulong otherUserId )
Checks if an user blocked another user on Ruster.NET.
Template:
Returns: Is other user blocked by user?
bool HasBlockedCommunication ( ulong userId, ulong otherUserId )
Checks if two users have their communication blocked on Ruster.NET.
Template:
Returns: Are two users communication blocked?
bool AddFriend ( ulong userId, ulong otherUserId )
If an user isn't friends with someone, a request will be sent their way and will be notified.
Template:
Returns: Request sent or not.
bool HandleFriendRequest ( ulong userId, ulong otherUserId, bool doAccept )
Handling a friend request, will accept/reject an existent friend request sent by the user.
Template:
Returns: Request sent or not.
bool RemoveFriend ( ulong userId, ulong otherUserId )
If an user is friends with someone, they'll be removed from both users' lists.
Template:
Returns: Has removed friend or not.
Bot
Post
bool IsAdvert ( int postId )
Checks if a post provided with an ID is an advertisment in Ruster.NET.
Template:
Returns: Is post an advert or not?
bool IsMarketplaceListing ( int postId )
Checks if a post provided with an ID is a Marketplace listing in Ruster.NET.
Template:
Returns: Is post a Marketplace listing or not?
bool IsOverdue ( int postId )
When the post is an advertisment, checks if a post provided with an ID is overdue its duration in Ruster.NET.
Template:
Returns: Is advert overdue or not?
bool IsReply ( int postId )
Checks if a post provided with an ID a reply to a parent thread or not.
Template:
Returns: Is post a reply or not?
bool HasLiked ( int postId, ulong userId )
Checks if an user has liked a post provided with the ID or not.
Template:
Returns: Has user liked the post or not?
bool HasDisliked ( int postId, ulong userId )
Checks if an user has disliked a post provided with the ID or not.
Template:
Returns: Has user disliked the post or not?
string GetContent ( int postId )
Gets the content of a post.
Template:
Returns: The content of a post.
int GetAdvertTimeLeft ( int postId )
If the post is an advertisment, it'll return the time left 'till it's overdue.
Template:
Returns: The advert time left 'till it's overdue.
JObject[] GetHashtags ( int postId )
Gets all the hashtags (custom or auto-generated) of a post.
Template:
Returns: Post hashtags.
ulong[] GetLikes ( int postId )
Gets a list the like Steam IDs of a post.
Template:
Returns: Post likes.
ulong[] GetDislikes ( int postId )
Gets a list the dislike Steam IDs of a post.
Template:
Returns: Post dislikes.
JObject GetAuthor ( int postId )
Gets the author of a post with the provided post ID.
Template:
Returns: Database user.
ulong GetFeed ( int postId )
Gets the parent feed of a post with the provided post ID.
Template:
Returns: The feed ID of where the post has been published into.
string GetPostType ( int postId )
Gets the parent feed type of a post with the provided post ID.
Template:
Returns: The feed type of where the post has been published into.
bool CanGetForFree ( int postId, ulong userId )
Can the given user get the listing post item for free?
Template:
bool LikePost ( int postId, ulong userId )
Attemtps to like a post with the given user.
Template:
Returns: The post has been liked.
bool LikePost ( JObject post, ulong userId )
Attemtps to like a post with the given user.
Template:
Returns: The post has been liked.
bool DislikePost ( int postId, ulong userId )
Attemtps to dislike a post with the given user.
Template:
Returns: The post has been disliked.
bool DislikePost ( JObject post, ulong userId )
Attemtps to dislike a post with the given user.
Template:
Returns: The post has been disliked.
bool RemoveLikeOrDislikePost ( int postId, ulong userId )
Attemtps to remove a like or dislike from a post with the given user.
Template:
Returns: Has removed like or dislike from post.
bool RemoveLikeOrDislikePost ( JObject post, ulong userId )
Attemtps to remove a like or dislike from a post with the given user.
Template:
Returns: Has removed like or dislike from post.
bool PinPost ( int postId, ulong userId )
Attempts to pin a post on the parent feed.
Template:
Returns: The post has been pinned.
bool PinPost ( JObject post, ulong userId )
Attempts to pin a post on the parent feed.
Template:
Returns: The post has been pinned.
Feed
string GetFeedTitle ( ulong feedId )
Gets the title of a feed with id.
Template:
Returns: Feed title.
bool CanPost ( ulong feedId, ulong userId )
Checks if the user can post in a feed or not.
Template:
Returns: Can post in the feed or not.
bool CanDelete ( ulong feedId, ulong userId, int postId )
Can user delete the post or not.
Template:
Returns: User can delete.
JObject GetOwner ( ulong feedId )
Get the owner of the feed (if any).
Template:
Returns: Feed owner.
JObject[] GetHashtags ( ulong feedId )
Get all the hashtags from feed with id.
Template:
Returns: Feed hashtags.
bool IsMarketplace ( ulong feedId )
Is a marketplace feed or not.
Template:
Returns: Is marketplace feed.
DM
int GetOrCreateConversation ( ulong creatorId, ulong otherId )
Gets or creates a conversation with someone.
Template:
Returns: Returns the ID of the conversation created / found.
ulong[] GetConversationUserIds ( int conversationId )
Get all users in the conversation.
Template:
Returns: Returns users.
JObject[] GetConversationUsers ( int conversationId )
Get all users in the conversation.
Template:
Returns: Returns users.
JObject SendMessage ( int conversationId, JObject message )
Sends a message into a conversation, notifying viewers of the conversation.
Template:
Returns: Returns the published message.
int[] GetMessages ( int conversationId, int amount )
Gets messages with an amount from a conversation. Use -1 amount to get ALL messages.
Template:
Returns: Message IDs.
bool DeleteMessage ( int conversationId, int messageId )
Deletes a message from a conversation.
Template:
Returns: Returns true if the message has been removed.
Hooks
Browser
General
void OnLanguageChange ( ulong userId, string language, string previousLanguage )
Called whenever an user modifies their Ruster.NET language.
Template:
Returns: User ID, pdated language and previous language.
void OnCustomNameChange ( ulong userId, string oldName, string newName )
Called whenever an user changes their nickname in Ruster.NET.
Template:
Returns: User ID, older nickname and newer nickname.
void OnWithdraw ( ulong userId, int amountWithdrawn )
Called whenever an user withdrawed their wallet in Ruster.NET.
Template:
Returns: User ID, amount withdrawn.
void OnRestock ( ulong userId, RusterPost[] postsRestocked )
Called whenever an user restocks one or more posts.
Template:
Returns: User ID, an array of posts that have been restocked.
Post
void OnPostCreated ( RusterPost post, bool silent )
Called when a new post has been created / published.
Template:
Returns: The post and if it has been a silent publish or not.
void OnPostDeleted ( RusterPost post, bool silent )
Called when a post has been deleted / unpublished.
Template:
Returns: The post and if it has been a silent deletion/unpublish or not.
void OnPostOpen ( ulong userId, RusterPost post )
Called whenever a post has been opened by an user.
Template:
Returns: User ID and the post.
void OnPostClose ( ulong userId, RusterPost post )
Called whenever a post has been closed by an user.
Template:
Returns: User ID and the post.
void OnPostPinned ( ulong userId, ulong feedId, RusterPost post )
Called whenever a post has been pinned.
Template:
Returns: User ID and the pinned post.
void OnPostUnpinned ( ulong userId, ulong feedId, RusterPost post )
Called whenever a post has been unpinned.
Template:
Returns: User ID and the unpinned post.
DM
Types