Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,767
- Solutions
- 5
- Reaction score
- 769
Hello,
I looked around but couldn't find anything relevant. The majority of released scripts are creaturescripts, and none of them function as intended.
This was the only approach that worked properly for me without any problems, so I thought I'd share it with others.
What is this?
Amulet ID = 2131 --> Skull amulet, has infinity charges and protects all your items from being dropped even if you have WS, RS or BS
Amulet ID = 2198 --> Just like normal AOL, but has infinite charges
Go to player.cpp
Find:
Add this above it:
Again in player.cpp , replace
with
Compile and you are good to go
Shoutout to Roddet for helping out
I looked around but couldn't find anything relevant. The majority of released scripts are creaturescripts, and none of them function as intended.
This was the only approach that worked properly for me without any problems, so I thought I'd share it with others.
What is this?
Amulet ID = 2131 --> Skull amulet, has infinity charges and protects all your items from being dropped even if you have WS, RS or BS
Amulet ID = 2198 --> Just like normal AOL, but has infinite charges
Go to player.cpp
Find:
Lua:
uint32_t itemLoss = (uint32_t)std::floor((5. + loss) * lossPercent[LOSS_ITEMS] / 1000.);
Code:
Item* item = getInventoryItem(SLOT_NECKLACE);
if (item && item->getID() == 2131)
return;
Again in player.cpp , replace
Code:
if(preventDrop && preventDrop != preventLoss)
Code:
if(preventDrop && preventDrop != preventLoss && (preventDrop->getID() != 2131 && preventDrop->getID() != 2198))
Compile and you are good to go
Shoutout to Roddet for helping out