LightTenshimaru
LightTenshimaru
- Joined
- Mar 15, 2014
- Messages
- 28
- Reaction score
- 1
I'm making a script that when equipping [Wand + Shield], [Sword, Axe, Mace + Shield], [Crossbow] have an attribute bonus in [ML], [SWORD, AXE, MACE], [DISTANCE] respectively.
But I have a lot of problems, the first is that activation message
keeps repeating without stopping on the screen, the second is that when an attribute is applied when putting the item, when removed the stats do not return to normal, and the third is that I can not combine more than one item to work, I can only with one.
I also have no idea how to include two-handed weapons using the tag [slotType = "two-handed"]
I would be extremely grateful if anyone could help.
But I have a lot of problems, the first is that activation message
Lua:
creature: say ("Damage Bonus", TALKTYPE_MONSTER_SAY
I also have no idea how to include two-handed weapons using the tag [slotType = "two-handed"]
I would be extremely grateful if anyone could help.
Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORDPERCENT, 500)
function onThink(creature, cid)
if creature:isPlayer() and creature:getWeaponType() == WEAPON_SHIELD then
creature:say("Damage Bonus", TALKTYPE_MONSTER_SAY, 36)
creature:addCondition(condition)
else
creature:removeCondition(condition)
creature:say("Bonus Removed", TALKTYPE_MONSTER_SAY, 36)
return true
end
end
Last edited: