strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,391
- Solutions
- 7
- Reaction score
- 550
Hello again Otland!
I have made an easy to use on on death system! With it you can make players lose a percentage of their money from their bank when killed by a player, add more items to prevent money loss/item loss plus more!
Information on the system
It has an easy config section for you to customize it how you would like it! You just need to fill out the config table found in the action script (pictured below)
Installation
1) Replace your droploot.lua (Typicaly found at /data/creaturescripts/scripts/others/droploot.lua) with this:
http://pastebin.com/pKcXgvv4
https://otland.net/threads/tfs-1-2-modal-window-helper-lib.238773/
Thats it!
Enjoy =)
P.S This hasn't been thoroughly tested so if you encounter any bugs please comment them here.
Regards,
strutZ
I have made an easy to use on on death system! With it you can make players lose a percentage of their money from their bank when killed by a player, add more items to prevent money loss/item loss plus more!
Information on the system
It has an easy config section for you to customize it how you would like it! You just need to fill out the config table found in the action script (pictured below)
Code:
--- Config ---
local config = {
noMoneyLoss = false, -- Set this to true if you dont want players to lose money by being killed by a player
noItemLoss = false, -- Set this to true if you dont want players to lose any items.
noVocLoss = true, -- If this is set to true, and the player has no vocation dont lose any items
realAOL = true, -- Set this to true if you want AOL to be ignored if player has skull (Make it work like Real Tibia)
bankLossPercent = 10, -- This is the percent of the players totoal bank balance they will lose
-- You can add extra items here that can prevent item loss
itemProtection = {
-- Amulet of loss
[1] = {
item = {
id = 2173, -- The ID of any the item
slot = CONST_SLOT_NECKLACE, -- Slot that the item must be in
},
},
},
-- You can add extra items here that can prevent item Money loss
moneyProtection = {
-- Amulet of loss
[1] = {
item = {
id = 2173, -- The ID of any the item
slot = CONST_SLOT_NECKLACE, -- Slot that the item must be in
},
},
},
}
-- End Config
Installation
1) Replace your droploot.lua (Typicaly found at /data/creaturescripts/scripts/others/droploot.lua) with this:
http://pastebin.com/pKcXgvv4
https://otland.net/threads/tfs-1-2-modal-window-helper-lib.238773/
Thats it!
Enjoy =)
P.S This hasn't been thoroughly tested so if you encounter any bugs please comment them here.
Regards,
strutZ