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

Lua how to fix thgat item

Spo teh pro

New Member
Joined
Jan 3, 2008
Messages
319
Reaction score
1
this is a item I got atm

Code:
	<item id="10309" article="a" name="claw of the noxious spawn">
		<attribute key="description" value="It's like a glove and you can't wear a ring on it. You are not sure if you should really put it on."/>
		<attribute key="weight" value="500"/>
		<attribute key="slotType" value="ammo"/>
		<attribute key="healthGain" value="-100"/>
		<attribute key="duration" value="1000"/>
		<attribute key="stopduration" value="1"/>
		<attribute key="showduration" value="0"/>

Thats what I got yet, tho it doesnt show any effect
I already try to ask for almost a week now and nobody answers me :(

Would be really nice if someone could fix this script;
If someone didn't understand what I want the script to do, here we go:

It has 10 minutes, when you wear it on your arrow/ammo slot it takes 100hp / second from you and also it increase your meleeskill by 35%

Thanks for reading and help
 
About your meleeskill.
Add lines like this, example:
Code:
<attribute key="skillfist" value="35"

This line would give you +35 skills, i dont know how to do it by percentage. Also you need an Equip,DeEquip in your movement.xml.

Rep me++
 
Well yea I know about that
I thought about it in my last case, tho I think its cooler to have 35% of melee skill.. anyway
Do you know how to set losing 100 HP per sec?
 
Code:
<attribute key="healthGain" value="-100"/>
<attribute key="healthTicks" value="1000"/>
also you need to add it in movements as DeEquip and Equip
 
I haven't visit this thread for a long time because somebody told me it's not possible to do it!

And now when i tryed it again, it worked!
Thanks guys :)

Tho I have a new request, that has something to do with it

How to add that when you wear the claw, blood splashs on the ground like a normal hit?
I mean it splashs every time you lose HP

Also does nobody know how to fix that you can make it percentage?
Like the spell utito tempo for knights?

Something like this;
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 135)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, -100)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
So nobody knows how to fix that item by percentage?

And does anybody know if its possible to make it able when you wear that claw that you get fast atk?

is any of those 2 options possible?
 
Back
Top