Mahdi10
New Member
- Joined
- Jan 27, 2023
- Messages
- 13
- Reaction score
- 2
TFS 1.5
Can someone help me convert this script to use hasOutfit instead of onChangeOutfit?
This script only assigns outfit bonuses when player is already using the outfit, but I need it to assign outfit bonuses when player already has the outfit.
So if the table has 10 outfits, and each outfit assigns 20 max HP and 20 max MP to player, and player has all 10 outfits with full addons, he gets 200 max HP and 200 max MP total bonuses without using any of the 10 outfits.
Can someone help me convert this script to use hasOutfit instead of onChangeOutfit?
This script only assigns outfit bonuses when player is already using the outfit, but I need it to assign outfit bonuses when player already has the outfit.
So if the table has 10 outfits, and each outfit assigns 20 max HP and 20 max MP to player, and player has all 10 outfits with full addons, he gets 200 max HP and 200 max MP total bonuses without using any of the 10 outfits.
CreatureEvent - [TFS 1.2] Outfit bonuses
inside of data/events/scripts/creature.lua (make sure onChangeOutfit is set to 1 in events.xml) function createBonusCondition(id, params) local condition = Condition(CONDITION_ATTRIBUTES, CONDITIONID_DEFAULT) condition:setParameter(CONDITION_PARAM_TICKS, -1)...
otland.net