luccagomes
New Member
- Joined
- Jul 30, 2015
- Messages
- 153
- Reaction score
- 1
How to edit in 3884 sources to if amulet equiped (item id: 11393)
Loot change to loot_rates_config * 2?
Loot change to loot_rates_config * 2?
local slots = getPlayerSlotItem(cid, 2)
local loot = getConfigInfo('rateLoot')
local rateLoot, rateGoldLoot
if slots.itemid == 11393 then
loot = loot * 2
else
loot = loot
end
Use onEquip and onDeEquip a movements script, check your movements directory for sample or similar scripts or look in this section of the site.
https://otland.net/forums/actions-moveevents-talkactions.81/
Although I can tell you right now this is what you are looking for because it has 90% of the elements you need to construct the script.
https://otland.net/threads/0-3-6-8-6-custom-equipment-with-stat-attributes-based-on-vocation.242935/
I think don't have a function to change loot rates in LUA (0.4)
So cause it i want edit it on sources
Or have a function to change loot rates?
getConfigInfo('rateLoot')
Code:getConfigInfo('rateLoot')
yeah i know this, i show here
but its a get function...
there is a set function?
i've tried it, but remove loot from corpse..