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

Distance weapon's

mordinja

New Member
Joined
Feb 23, 2009
Messages
7
Reaction score
0
i was wondering how it's possible to change hitchanse and damage formula on ex. assassin star's. was testing them on my server and the damage is pretty decent but some times hits upto 500+ in pvp... and is missing the target 60% of the time, would be greatfull for awnswers
 
i was wondering how it's possible to change hitchanse and damage formula on ex. assassin star's. was testing them on my server and the damage is pretty decent but some times hits upto 500+ in pvp... and is missing the target 60% of the time, would be greatfull for awnswers

you can always change the attack and hit chance in the items.xml as stated above or if you are really bored you can edit the source and just change the formula all together..i believe its weapons.cpp
 
im totally noob at all this but sure i can edit items.xml but i dont want to edit the 65atk, so i guess i need to go into the source code, but i've never tried to edit one. whats necessary to do so?
 
Add this line in under the assasin star at item.xml
Code:
<attribute key="hitChance" value="50"/> //50% hitchance

Code:
	<item id="7368" article="an" name="assassin star" plural="assassin stars">
		<attribute key="weight" value="200"/>
		<attribute key="attack" value="80"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="redstar"/>
		<attribute key="range" value="6"/>
		<attribute key="hitChance" value="50"/>
		<attribute key="breakChance" value="0"/>
		<attribute key="ammoAction" value="moveback"/>
 
Add this line in under the assasin star at item.xml
Code:
<attribute key="hitChance" value="50"/> //50% hitchance

Code:
	<item id="7368" article="an" name="assassin star" plural="assassin stars">
		<attribute key="weight" value="200"/>
		<attribute key="attack" value="80"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="redstar"/>
		<attribute key="range" value="6"/>
		<attribute key="hitChance" value="50"/>
		<attribute key="breakChance" value="0"/>
		<attribute key="ammoAction" value="moveback"/>

that much i knew allready but could anyone tell me about source codes? would be thankfull, i could rep++ all u who feel like u have a need of that :P
 
in weapons.cpp

search for
PHP:
int32_t Weapons::getMaxWeaponDamage(int32_t level, int32_t attackSkill, int32_t attackValue, float attackFactor)
and edit that

you are probably better off just making a completely new function just for distance since that one controls all weapon damages
 
Back
Top