• 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!

[Request] Aol System

Lopaskurwa

Active Member
Joined
Oct 6, 2017
Messages
873
Solutions
2
Reaction score
49
Using Tfs 1.2
Requirement:
1. If you are not wearing aol it should be item id:6300 if you wear aol it should change to id:6301
(I dont have function transformEquipTo and transformDeEquipTo so i cant do it by myself )
2. Slot
Untitled.png

3. If you die you lose aol but all items stays in bag and slot, so basically you dont lose anything just aol
 
Lua:
local PREVENT_LOSS_AMULETS = { 123, 156, 7811 }
if amulet and table.contains(PREVENT_LOSS_AMULETS, amulet.itemid) and not hasSkul then
 
Last edited:
Lua:
local PREVENT_LOSS_AMULETS = { 123, 156, 7811 }
if amulet and table.contains(PREVENT_LOSS_AMULETS, amulet.itemid) and not hasSkul thenl
boulder? you mean change these lines
local amulet = player:getSlotItem(CONST_SLOT_NECKLACE)
if amulet and amulet.itemid == ITEM_AMULETOFLOSS and not isInArray({SKULL_RED, SKULL_BLACK}, player:getSkull()) then
for this
local PREVENT_LOSS_AMULETS = { 123, 156, 7811 }
if amulet and table.contains(PREVENT_LOSS_AMULETS, amulet.itemid) and not hasSkul thenl
that's right?
but there is another line. leave it permanent or should I change it here too?
if not isPlayer or not player:hasBlessing(5) then
player:removeItem(ITEM_AMULETOFLOSS, 1, -1, false)
end
Thank you for your help
 
Back
Top