part 2 is something I would like to add to the script as well but not sure if it is possible and that is only allow the command to be used when solo and block someone from using it if they are in a party. I am going to paste my command and the allied status effect lua below. I am still learning how to understand the language any help is appreciated.
This is the command:
Code: Select all
cmdprops =
{
permission = 0,
parameters = "i"
};
function onTrigger(player)
player:addStatusEffect(dsp.effect.ALLIED_TAGS,0,0,0);
end
Code: Select all
-----------------------------------
-- Allied Tags
-- Effect: For Solo Play Buffs The Player
-----------------------------------
function onEffectGain(player,effect)
local LvL = player:getMainLvl();
if (LvL <= 50) then
player:addMod(dsp.mod.STR, 25)
player:addMod(dsp.mod.DEX, 25)
player:addMod(dsp.mod.VIT, 25)
player:addMod(dsp.mod.AGI, 25)
player:addMod(dsp.mod.INT, 25)
player:addMod(dsp.mod.MND, 25)
player:addMod(dsp.mod.CHR, 25)
player:addMod(dsp.mod.STORETP, 75)
player:addMod(dsp.mod.MATT, 25)
player:addMod(dsp.mod.MDEF, 25)
player:addMod(dsp.mod.DEFP, 100)
player:addMod(dsp.mod.HPP, 75)
player:addMod(dsp.mod.MPP, 75)
player:addMod(dsp.mod.ACC, 100)
player:addMod(dsp.mod.RACC, 100)
player:addMod(dsp.mod.ATTP, 100)
player:addMod(dsp.mod.RATTP, 100)
player:addMod(dsp.mod.MACC, 100)
player:addStatusEffect(dsp.effect.DRAIN_SAMBA,3,0,0);
player:addStatusEffect(dsp.effect.REFRESH,10,0,0);
player:addStatusEffect(dsp.effect.REGEN,25,0,0);
player:addStatusEffect(dsp.effect.REGAIN,10,0,0);
player:addStatusEffect(dsp.effect.HASTE,448,0,0);
player:addStatusEffect(dsp.effect.FAST_CAST,60,0,0);
player:PrintToPlayer("SOLO MODE ACTIVATED");
elseif (LvL > 50 and LvL <= 90) then
player:addMod(dsp.mod.STR, 50)
player:addMod(dsp.mod.DEX, 50)
player:addMod(dsp.mod.VIT, 50)
player:addMod(dsp.mod.AGI, 50)
player:addMod(dsp.mod.INT, 50)
player:addMod(dsp.mod.MND, 50)
player:addMod(dsp.mod.CHR, 50)
player:addMod(dsp.mod.STORETP, 75)
player:addMod(dsp.mod.MATT, 35)
player:addMod(dsp.mod.MDEF, 50)
player:addMod(dsp.mod.DEFP, 100)
player:addMod(dsp.mod.HPP, 75)
player:addMod(dsp.mod.MPP, 75)
player:addMod(dsp.mod.ACC, 250)
player:addMod(dsp.mod.RACC, 250)
player:addMod(dsp.mod.ATTP, 100)
player:addMod(dsp.mod.RATTP, 100)
player:addMod(dsp.mod.MACC, 250)
player:addStatusEffect(dsp.effect.DRAIN_SAMBA,3,0,0);
player:addStatusEffect(dsp.effect.REFRESH,10,0,0);
player:addStatusEffect(dsp.effect.REGEN,30,0,0);
player:addStatusEffect(dsp.effect.REGAIN,6,0,0);
player:addStatusEffect(dsp.effect.HASTE,448,0,0);
player:addStatusEffect(dsp.effect.FAST_CAST,60,0,0);
player:PrintToPlayer("SOLO MODE ACTIVATED");
elseif (LvL > 90) then
player:addMod(dsp.mod.STR, 75)
player:addMod(dsp.mod.DEX, 75)
player:addMod(dsp.mod.VIT, 75)
player:addMod(dsp.mod.AGI, 75)
player:addMod(dsp.mod.INT, 75)
player:addMod(dsp.mod.MND, 75)
player:addMod(dsp.mod.CHR, 75)
player:addMod(dsp.mod.STORETP, 75)
player:addMod(dsp.mod.MATT, 50)
player:addMod(dsp.mod.MDEF, 100)
player:addMod(dsp.mod.DEFP, 100)
player:addMod(dsp.mod.HPP, 75)
player:addMod(dsp.mod.MPP, 75)
player:addMod(dsp.mod.ACC, 500)
player:addMod(dsp.mod.RACC, 500)
player:addMod(dsp.mod.ATTP, 100)
player:addMod(dsp.mod.RATTP, 100)
player:addMod(dsp.mod.MACC, 500)
player:addStatusEffect(dsp.effect.DRAIN_SAMBA,3,0,0);
player:addStatusEffect(dsp.effect.REFRESH,10,0,0);
player:addStatusEffect(dsp.effect.REGEN,35,0,0);
player:addStatusEffect(dsp.effect.REGAIN,6,0,0);
player:addStatusEffect(dsp.effect.HASTE,448,0,0);
player:addStatusEffect(dsp.effect.FAST_CAST,60,0,0);
player:PrintToPlayer("SOLO MODE ACTIVATED");
end
end;