• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling (3884) loot amulet sources

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?
 
How to make it on sources 3884?

lua code
Code:
  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?
 
Back
Top