Page 1 of 1

Maid Pots in profile

Posted: Wed Sep 18, 2013 7:43 pm
by spyfromsiochain
I was wondering if it is possible to add, the potions (potion: lucky target for example) and foods of maids to the profile (default.xml for example)

ty

Re: Maid Pots in profile

Posted: Wed Sep 18, 2013 8:58 pm
by wps
<onLeaveCombat><![CDATA[
-- Additional Lua code to execute after killing an enemy
]]>
if not player:hasBuff(503479) then -- pet perfume 30 days
inventory:useItem(204514) -- 30 day
end
if not player:hasBuff(506684) then -- Unbridled Enthusiasm
inventory:useItem(207200)
end
if not player:hasBuff(506686) then -- clear thought
inventory:useItem(207202)
end
if not player:hasBuff(506687) then -- housemaid luck
inventory:useItem(207203)
end
-- house magic food
if not player:hasBuff(506680) then -- magic 8%
inventory:useItem(207216);
end
</onLeaveCombat>