• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Speed how to fix that (?) and Ice Rapier (?)

Zool

Banned User
Joined
Jun 9, 2009
Messages
742
Reaction score
5
Location
Poland/St Wola
wanted me to do a slower players.


How do it ?


Second Question.

I have :
removeWeaponAmmunition = false
But i want to Viper Star + Ice rapier End.

How do it =]


rep + + for any important information




@Down
thx rep++(wtf must spend some other pll reputatnion.. I'll give u later ;p)

know second question ;p ?
 
Last edited:
onLogin script, or source edit. :p

in onLogin you would need doChangeSpeed(cid, -100) and storage :p


second would probably be source edit only :S
weapons.cpp:
Code:
void Weapon::onUsedAmmo(Player* player, Item* item, Tile* destTile) const
{
	if(!g_config.getBool(ConfigManager::REMOVE_WEAPON_AMMO)[B][COLOR="red"] && item->getID() != 2396 && item->getID() != 7366[/COLOR][/B])
		return;

	switch(ammoAction)
	{
		case AMMOACTION_REMOVECOUNT:
			g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getItemCount()) - 1));
			break;

		case AMMOACTION_REMOVECHARGE:
			g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getCharges()) - 1));
			break;

		case AMMOACTION_MOVE:
			g_game.internalMoveItem(player, item->getParent(), destTile, INDEX_WHEREEVER, item, 1, NULL, FLAG_NOLIMIT);
			break;

		case AMMOACTION_MOVEBACK:
			break;

		default:
			if(item->hasCharges())
				g_game.transformItem(item, item->getID(), std::max((int32_t)0, ((int32_t)item->getCharges()) - 1));

			break;
	}
}
 
Last edited:
Aff why Ice rapier never end ;o ?
How to do remove on use?

i have
removeWeaponAmmunition = true

<attribute key="ammoAction" value="removecount" /> (DONT WORK)
<attribute key="breakChance" value="100" /> (DONT WORK)
 
Last edited:
@Up yes i have that ...
and its not remove :/

I tried :
<item id="2396" article="an" name="ice rapier">
<attribute key="description" value="A deadly but fragile weapon." />
<attribute key="weight" value="5500" />
<attribute key="attack" value="50" />
<attribute key="defense" value="1" />
<attribute key="weaponType" value="sword" />
<attribute key="ammoAction" value="removecount" />
<attribute key="breakChance" value="100" />
<attribute key="charges" value="1" />
</item>
 
onLogin script, or source edit. :p

in onLogin you would need doChangeSpeed(cid, -100) and storage :p


I have problem with speed
All time when i make (item - 50 speed)
or this onLogin -300speed on 250+lv

When some one paralyze who's 250+lv (or have items -50 speed)
Him have Mega Power paralyze ;/ 10sec or more :O (normal is 2sec)
(i use rl paralyze)

Any idea ?
 
Back
Top