Mod tutorial - MCPadak/XPlay GitHub Wiki

Add a spell

Sample spell : Clothes removal (lvl3 spell), move target's armor/clothes to inventory.

Let's create constants : -> Inner name = PIMP_CLOTHES_REMOVAL -> UUID -> e550be4b-6897-4fd9-9086-3bc95a5f30b4 -> Handle -> hc9130e83g4929g41e0ga41cg0539a0622aab

Let's edit files :

BootsrapServer.lua

Ext.Osiris.RegisterListener("UsingSpellOnTarget", 6, "before", function (caster, target, spell, _, _, _)
    if (spell == "Target_RemoveClothes") then
		Osi.ApplyStatus(caster, "EXTRA_ATTACK_BLOCK_SCAGTRIPS",6.0,1,caster)
    end
end)