Jump to content

Search the Community

Showing results for tags 'hookmethod'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Plugins
  • Carbon
  • Harmony
  • Maps
  • Monuments
  • Prefabs
  • Arenas
  • Bases
  • Tools
  • Discord Bots
  • Customizations
  • Extensions
  • Graphics

Forums

  • CF Hub
    • Announcements
  • Member Hub
    • General
    • Show Off
    • Requests
  • Member Resources
    • For Hire
    • Creators
    • Creators Directory
  • Community Hub
    • Feedback
  • Support Hub
    • Support
    • Site Support
    • Help Center

Product Groups

  • Creator Services
  • Host Services
  • Memberships

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Steam


Github

Found 1 result

  1. Hook Methods // Temporarily disable all buffs for the target public void DisableBuffs(ulong id) // Enable disabled buffs for the target public void EnableBuffs(ulong id) // Temporarily disable xp gain for the target public void DisableXP(ulong id) // Enable xp gain for the target public void EnableXP(ulong id) // Returns if xp gain is disabled for the target public bool IsXPDisabled(ulong id) // Allows external plugins to roll loot using the Loot_Pickup buff. Returns true if successful. public bool RolledLootPickup(BasePlayer player) // Give skill points to the target public void GiveSkillPoints(BasePlayer player, int amount) // Add a global xp modifier. Only the highest value is used. public void AddGlobalXPModifier(string pluginName, float modifier) // Removes a global xp modifier. public void RemoveGlobalXPModifier(string pluginName) // Give the player xp. noMod is whether the xp amount should be modified by permissions, nighttime xp bonuses, rested xp etc. public void AwardXP(BasePlayer player, double value, string plugin, bool noMod = false) // Returns a double representing the total respec cost. public double GetTotalRespecCost(BasePlayer player) // Respecs the player void RespecPlayer(BasePlayer player, PlayerInfo playerData = null) // Returns a list<object[]> of items inside of the players pouch_items. object[] is made from the itemInfo class. /* public class ItemInfo { public string shortname; public ulong skin; public int amount; public float condition; public float maxCondition; public int ammo; public string ammotype; public int position; public int frequency; public Item.Flag flags; public KeyInfo instanceData; public class KeyInfo { public int dataInt; public int blueprintTarget; public int blueprintAmount; } public int contentsSlots; public List<ItemInfo> item_contents; public string text; public string name; public List<ItemOwnershipShare> ownershipShares; public int armorSlots; public object[] ToObject() { return new object[] { shortname, skin, amount, condition, maxCondition, ammo, ammotype, position, frequency, flags, instanceData, instanceData?.dataInt, instanceData?.blueprintTarget, instanceData?.blueprintAmount, contentsSlots, text, name, ownershipShares, armorSlots }; } } */ List<object[]> STGetExtraPocketsItems(ulong id) // Returns the max level. public int STGetMaxLevel() // Returns name, xp, prestige level, current level and xpdebt as a Dictionary<ulong, (string Name, double XP, int PrestigeLevel, int CurrentLevel, double XPDebt)> public object GetSkillTreeData() // Remotely updates player stats. public void RemoteUpdatePlayerStats(string userid, string json) // Returns a float with the buff value of the specified buff. float GetBuffValue(BasePlayer player, string skill) /* Returns: - Current level (int) - Current total xp (double) - XP value that the currently level started at (double) - XP value that the next level will start at (double) - XP Debt - PrestigeLevel */ object[] GetXPStats(ulong id) // Returns the current prestige level of the player object GetPrestigeLevel(ulong id) // Returns the xp amount for the specified level. public double GetLevelExp(int level) // Returns the player level public int GetPlayerLevel(BasePlayer player) // Forces the players pouch to be dropped. public void ForceDropPouch(BasePlayer player, bool bypassPerm) // Remotely set the yields for skill tree's yield system public void SetSkillTreeYields(Dictionary<int, float> dict) // Remote set the yield for the specified yield type. public void SetSkillTreeYield(int type, float multiplier) // Returns a string[] with the players levle and xp. public string[] ST_GetPlayerLevel(BasePlayer player) // Returns xp over and above the players current level. private double GetExcessXP(BasePlayer player) // Removes xp from a player (cannot go below level xp). private void RemoveXP(BasePlayer player, double value) // Returns the horse stats as a float or null if the horse isnt modified. private object STGetHorseStats(BasePlayer player, ulong id) // Returns if the container uid is an extra pockets container. public object IsExtraPocketsContainer(ulong uid) // Adds a skill from a plugin. public void AddNode(string tree, string node, bool enabled, int max_Level, int tier, float value_Per_Buff, string _buff, string _buffType, string icon_url, object[] _perms = null, ulong skin = 0, bool overwrite = false) Hook Calls // Returning non-null prevents yield from the Harvest_Grown_Yield skill. object STCanReceiveYield(BasePlayer player, GrowableEntity entity) object STCanReceiveYield(BasePlayer player, GrowableEntity entity, Item item) // Returning non-null prevents SkillTree from increasing the yield for dispensers (trees/rocks/animals). object STCanReceiveYield(BasePlayer player, BaseEntity entity, Item item) // Prevents skill tree from increasing the gather yield for collectible entities. object STCanReceiveYield(BasePlayer player, CollectibleEntity entity) // Returning non-null prevents the Lock_Picker skill from running. object STOnLockpickAttempt(BasePlayer player, BaseLock baseLock) // Returning non-null prevents SkillTree from handling dispenser gather skills. object OnSkillTreeHandleDispenser(BasePlayer player, BaseEntity entity, Item item) // Returning non-null prevents instant gather from triggering. object OnInstantGatherTrigger(BasePlayer player, ResourceDispenser dispenser, string pluginName) // Triggered when an instant gather skill creates a new item (before it is given to the player). void OnInstantGatherTriggered(BasePlayer player, ResourceDispenser dispenser, Item newItem, string pluginName) // Returning non-null prevents the item repair from happening. object STOnItemRepairWithMaxRepair(Item item) // Returning non-null prevents the Rationer from running. object STOnRationTrigger(BasePlayer player, Item item) // Returning non-null prevents the horses stats from being modified by the Riding_Speed skill. object STCanModifyHorse(BasePlayer player, RidableHorse horse, float value) // Returning non-null prevents the pouch from dropping. object STOnPouchDrop(BasePlayer player) // Returning non-null prevents the player from losing xp. object STOnLoseXP(BasePlayer player) // Returning non-null prevents the boats speed from being modified by the Boat_Speed skill. object STOnModifyBoatSpeed(BasePlayer player, MotorRowboat boat) // Returning non-null prevents bonus loot from being added to the container. object STCanReceiveBonusLootFromContainer(BasePlayer player, LootContainer container) // Triggered when the player levels up. void STOnPlayerLevel(BasePlayer player, int currentLevel, int newLevel) // Returning a bool prevents the xp gain. Returning a double overwrites the xp amount to the value of the double. object STCanGainXP(BasePlayer player, string plugin, double xp) object STCanGainXP(BasePlayer player, BaseEntity source, double xp, string source_string) object STCanGainXP(ulong userid, string plugin, double xp) // Returning non-null prevents the pouch from being opened. object STOnPouchOpen(BasePlayer player) // Triggered when the pouch is opened. void STOnPouchOpened(BasePlayer player, StorageContainer container) // Returning non-null prevents xp gain from a swipe card object OnGainXPFromSwipeCard(BasePlayer player, int cardLevel, ulong cardReaderID) // Returning non-null prevents the swipe card from being bypassed with the Build_Craft_Ultimate. object OnSwipeAccessLevelBypass(BasePlayer player, CardReader cardReader, Keycard card) // Returning non-null prevents the Raiding_Ultimate from acquiring a target. object OnRaidingUltimateTargetAcquire(BasePlayer player, Vector3 pos) // Triggered when a player advances a prestige levels void STOnPlayerPrestigeLevelled(BasePlayer player, int newPrestigeLevel) // Returning non-null will prevent the skill from triggering object STOnRespawnTree(BasePlayer player, ResourceEntity dispenser)
2.2m

Downloads

Total number of downloads.

10.1k

Customers

Total customers served.

146.3k

Files Sold

Total number of files sold.

3.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.