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

[Mod] Random Item Stats

Now it works, thank you and repped :D

edit

--[[ // not available without source edit

attr['farsight'] = {

attr = 'shootRange',

name = 'Shoot Range',

percent = {17, 34},

types = {DISTANCE, WAND}

}

]]

Could you post the sources edit here ?
 
Last edited:
item.cpp
Code:
		case ATTR_HITCHANCE:
		{
			int32_t hitChance;
			if(!propStream.GET_ULONG((uint32_t&)hitChance))
				return ATTR_READ_ERROR;

			setAttribute("hitchance", hitChance);
			break;
		}

[B][COLOR="#FF0000"]		case ATTR_SHOOTRANGE:
		{
			int32_t shootRange;
			if(!propStream.GET_ULONG((uint32_t&)shootRange))
				return ATTR_READ_ERROR;

			setAttribute("shootrange", shootRange);
			break;
		}[/COLOR][/B]
weapons.cpp
Code:
	if(it.weaponType == WEAPON_AMMO)
		range = player->getShootRange();
[B][COLOR="#FF0000"]	else if(it.weaponType == WEAPON_WAND && player->getWeapon())
		range = player->getWeapon()->getShootRange();[/COLOR][/B]
	else
		range = it.shootRange;
 
its your own fault. you need to update your monsters. Monsters no longer drop bags once you remove all the bags it will work.
 
Shut up, nobody asked your opinion, I'm good at talking to soul4soul, and did not know that the MOD does not support container. your rude.
 
this script support bags. out and inside a bag

20:35 Loot of a demon: a bag, a stealth ring, 2 assassin stars, a purple tome, an orb, a might ring, a demon horn, a demon dust, a magic plate armor, a quick fire axe, a mastermind shield, a giant sword, 23 gold coins, a two handed sword, a demonrage sword, a golden sickle, a surprise bag, a demon shield, golden legs, a deadly double axe, a platinum amulet, 3 small emeralds, a devil helmet, 4 talons, 75 gold coins, 2 coconuts, a fire mushroom, a gold ring, an ice rapier, a ring of healing
 
It doesn't work with bags in TFS 0.4 and he have said that he won't fix it in some previous post.
 
why would I be lying?

I don't care if you are or not. But why bother posting a screenshot that did not demonstrate that you successfully looted items from inside containers while this loot extension mod is active. It looked like plain-jane demon loot in your screenshot.
 
Back
Top