-
Posts
4,655 -
Joined
-
Last visited
-
Days Won
58
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by imthenewguy
-
Version 1.0.3
53 downloads
World Buffs is a plugin that allows for the creation of server-wide quests, allowing for players to work together to complete a common goal. Quests are comprised of any number of tasks, and will reward the entire server upon completion with a mixture of built-in buffs such as increased gather yields, bonus damage to NPCs etc, as well as the option for permissions and server commands. All players, regardless of their online status, will receive the built-in and permission based rewards. Tasks can be set based on the task type, along with a list of identifying features. For example, you can have a task that requires players to kill npcs using the KillNpc task type. If you only wanted certain npcs to count, you could then add further restrictions by listing the short prefab names of the npc, such as npc_tunneldweller & npc_underwaterdweller, if you only wanted Tunnel & Underwater dwellers to be considered towards the goal. The plugin supports the use of a quest queue (disabled by default). Quests in the queue are automatically started when the plugin loads. When the active quest is completed, the plugin will queue up the next quest after a short while. The identifier of a task depends on the task type itself. Some tasks work with item shortnames when considering quest progress, while others may use prefab shortnames.. Leaving the identifier field empty or set to null will consider any action that triggers the check to contribute towards the task. A list of item shortnames can be found here. A list of prefabs can be found here. TaskType: Woodcutting Identifier: Item shortname TaskType: Mining Identifier: Item shortname TaskType: Skinning Identifier: Item shortname TaskType: Collectible Identifier: Item shortname TaskType: Growable Identifier: Item shortname TaskType: Fishing Identifier: Item shortname TaskType: Growable Identifier: Item shortname TaskType: KillNpc Identifier: prefab shortname TaskType: KillNpcSpawn Identifier: Npc displayname [profile name] TaskType: KillAnimal Identifier: prefab shortname TaskType: KillBradleyApc Identifier: prefab shortname TaskType: LootCrates Identifier: prefab shortname TaskType: DestroyBarrels Identifier: prefab shortname TaskType: Dig Identifier: prefab shortname Reward types function similar to Task Types. They allow for identifiers to limit the sources that they impact. For example, you can specify "cloth" for the CollectibleYield RewardType, which would only boost the yield when collecting cloth, and not other items such as pumpkins or diesel. RewardType: WoodGatherBonus Identifier: Item shortname RewardType: MiningGatherBonus Identifier: Item shortname RewardType: SkinningGatherBonus Identifier: Item shortname RewardType: FishingBonus Identifier: Item shortname RewardType: CollectibleYield Identifier: Item shortname RewardType: GrowableYield Identifier: Item shortname RewardType: NpcDamageBonus Identifier: Prefab shortname RewardType: NpcSpawnDamageBonus Identifier: Prefab shortname RewardType: ScientistDefenceBonus Identifier: Prefab shortname RewardType: AnimalDefenceBonus Identifier: Prefab shortname RewardType: BradleyDamageBonus Identifier: Prefab shortname RewardType: BradleyDefenceBonus Identifier: Prefab shortname RewardType: NpcSpawnDamageBonus Identifier: Npc displayName [profile name] RewardType: XpBonus Identifier: None RewardType: UniversalSwipeCardsBonus Identifier: None RewardType: PvpDamageBonus Identifier: None RewardType: PvpDefenceBonus Identifier: None Command: wb.toggle Type: Chat command Description: Toggles the ui on and off. Command: wb.setquestqueueindex <index> Type: Console command Description: Set's the next quest in the queue to the specified index value Requires admin: Yes Command: wb.startnextquest Type: Console command Description: Starts the next quest in the queue if no quest is running. Requires admin: Yes Command: wb.cancelquest <true/false: start next quest in queue> Type: Console command Description: Cancels the current quest Requires admin: Yes Command: wb.completequest Type: Console command Description: Mark the current quest as complete (this gives players rewards from the quest) Requires admin: Yes Command: wb.startquest <quest name> <optional true/false: force cancel the current quest> Type: Console command Description: a Requires admin: Yes$19.99 -
- 472 comments
-
- 1
-
-
- #abilities
- #boss
- (and 16 more)
-
- 279 comments
-
- 1
-
-
- #enhanced
- #custom loot
-
(and 7 more)
Tagged with:
-
- 279 comments
-
- 1
-
-
- #enhanced
- #custom loot
-
(and 7 more)
Tagged with:
-
- 52 comments
-
- #competition
- #event
- (and 6 more)
-
- 199 comments
-
- 1
-
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 1,531 comments
-
- 1
-
-
- #leveling
- #progression
- (and 19 more)
-
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 non-null value prevents the xp gain. 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) // Add your xp gain modifier to the List<double> of hook mods to modify the xp gain. void OnXpGain(BasePlayer player, BaseEntity source, double xp, string source_string, List<double> HookMods)
-
- 93 comments
-
- #recycler
- #monetization
- (and 5 more)
-
- 1,531 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 199 comments
-
- 1
-
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 1,531 comments
-
- #leveling
- #progression
- (and 19 more)
