nefinoo
Carnage.flv
I need a bonus system for addons and mounts, so far this is what I have to check the amount of addons and mounts you have.
I clarify I am not a scripter, in short.
Now after checking addons and mounts.
Every certain amount of mounts and addons together, in this case we will say that 5, this will give you a permanent attribute as a reward, either in your case criticalchance, criticaldamage, lifeleechchance, lifeleechamount, manaleechanche, manaleechamount, +% exp, +% lootchance, +% hp,% mana, etc.
This of course configurable either gives me the opportunity to add other attributes and to configure the amount of the bonus.
Lua:
local Outfitss = Action()
function Outfitss.onUse(player, item, fromPosition, target, toPosition, isHotkey)
text = ""
outfits = player:getOwnedOutfits()
for outfitId, addons in pairs(outfits) do
text = text .. "(" .. outfitId .. ": " .. addons .. "), "
end
if text ~= "" then
-- Remove last ', '
text = text:sub(1, -3)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, text)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "No outfits.")
end
return true
end
Outfitss:id(5091)
Outfitss:register()
Now after checking addons and mounts.
Every certain amount of mounts and addons together, in this case we will say that 5, this will give you a permanent attribute as a reward, either in your case criticalchance, criticaldamage, lifeleechchance, lifeleechamount, manaleechanche, manaleechamount, +% exp, +% lootchance, +% hp,% mana, etc.
This of course configurable either gives me the opportunity to add other attributes and to configure the amount of the bonus.
Last edited: