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

Command Auto Loot ?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
are there any command like
"Auto loot ON"
and you get all loot from monster if you open it ...
and
"Auto loot OFF"
and its turn of ..
if you die auto loot goes off
 
It's possible to do for example using onDeath() then getContainerSize(corpse.uid), get all items from corpse, add to player, then remove from corpse :P
 
It's possible to do for example using onDeath() then getContainerSize(corpse.uid), get all items from corpse, add to player, then remove from corpse :P

Exactly... it's possible with creatureevents and storage value. (Of course, disabling the loot-message in config.lua)
 
So for every monster you have to add this event? Have fun, im not gonna make that :p
maybe in monsters.cpp above:
PHP:
if(readXMLInteger(root, "experience", intValue))
paste:
PHP:
	mType->scriptList.push_back("dropLootEvent");
and in creaturescript add onDeath event with this name :)
EDIT:
If you dont want edit tfs engine you can easy edit all monsters files in Notepad++
CTRL+F -> Find in files -> Search: '</monster>' , Replace with: '<script><event name="dropLootEvent" /></script></monster>' -> "Replace in files"
 
Last edited:
Back
Top