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

Paladin weapond shootype help!!

Eternal Life

New Member
Joined
May 15, 2011
Messages
148
Reaction score
1
Location
Aguadilla,Puerto Rico
Hey guys i need some help in how to change the shoottype becouse i try some shoottype like infernalbolt,powerbolt,arrow etc. etc.and they work but when i try making it look like an assassin star or a viper star or other ones they wont work! here i have this example on the items.xml

PHP:
	<item id="7368" article="an" name="assassin star" plural="assassin stars">
		<attribute key="weight" value="200"/>
		<attribute key="attack" value="65"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="throwingstar"/>
		<attribute key="range" value="24"/>
	</item>

in here as you can see it looks like a throwing star but i want it to look like an assassin star, so i need help on how to change it becouse i write redstar or assassinstar and it looks like a lance :( if there is a list of the shoottype please post it or if you know a way to fix please tell me :) ill rep!+


BTW my server is kind of old but am sure something can be done. Its 8.10 Tiko OT


What i do know is that you can make a script of the wepond like making a wand on weapond file but idk how to make it for pally :/
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_REDSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)

function onUseWeapon(cid, var)
	local ret = doCombat(cid, combat, var)
	if(ret == false) then
		return false
	end
	return ret
end
make a new lua file in your weapons/scripts file and add that name it assassin_star

Then go to your weapons.xml file and open it then find the line used for your assassin star and replace it with this line.
XML:
	<distance id="7368" level="80" event="script" value="assassin_star">
			<vocation name="Paladin"/><vocation name="Royal Paladin" showInDescription="0"/>

Idk if it will work but try it
 
I just changed the xml code to one that works for my version

<distance id="7368" range="6" enabled="1" exhaustion="0" hitchance="80" script="assassinstar.lua"></distance>

and it works perfectly but how do i edit it to hit harder?

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)


I know it has something to do with that but what those numbers mean??, how do I edit it?
 
setCombatFormula(combat, type, mina, minb, maxa, maxb)
setCombatFormula(combat, type, 1.0, 1.2, 3.1, 2.9)
idk if that would hit hard xd
never did something with the hitting xd
 
Depends on how hard you are trying to hit. All you gota do is up the numbers til you get the assassin star to hit like you want it to also you can itegrate it into using players level and skill to cause the damage.

Assassinstar.lua
Code:
 local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_REDSTAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 5, 9, 8.0, 5)

local xCombat = createCombatObject()
setCombatParam(xCombat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 4, 2000, -200)
addDamageCondition(condition, 6, 2000, -100)
setCombatCondition(xCombat, condition)

function onUseWeapon(cid, var)
	local ret = doCombat(cid, combat, var)
	if(ret == LUA_ERROR) then
		return LUA_ERROR
	end

	local target = variantToNumber(var)
	if(target ~= 0) then
		-- chance to poison the enemy
		local chance = math.random(50, 100)
		if(chance > 90) then
			ret = doCombat(cid, xCombat, var)
		end
	end
	return ret
end
Insert this into your weapons.xml and replace your current assassin star distance id!
Code:
<distance id="7368" level="80" event="function" script="Assassinstar.lua"/> <!-- Assassin Star -->

This should work report if errors rep++if i helped. EDIT=====Added poison damage like in viperstar and made it hit harder.Tested and works fine level 34 hits in 300-450 with 14 distance skill.
 
Last edited:
Back
Top