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

[TFS 1.2] Monster Attack 'Strength'

Lyky

Well-Known Member
Joined
May 27, 2014
Messages
291
Solutions
8
Reaction score
89
Hi,
I'm trying to replicate old Dharalion elf boss.


In virgin Cip files there was attack as follows:
Victim (7, 15, 21) -> Strength (2, -80, 10, 15) : 8,

as I understand it would reduce resistances to -80% (how should I go about it? Is there a var like I can change speed using speedchange="" in attack value to go after resistance or certain skills?


XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dharalion" nameDescription="Dharalion" race="blood" experience="380" speed="240" manacost="0">
   <health now="390" max="390"/>
   <look type="203" corpse="2979"/>
   <targetchange interval="1000" chance="7"/>
   <targetstrategies nearest="10" health="10" damage="20" random="60"/>
   <flags>
       <flag summonable="0"/>
       <flag attackable="1"/>
       <flag hostile="1"/>
       <flag illusionable="0"/>
       <flag convinceable="0"/>
       <flag pushable="0"/>
       <flag canpushitems="1"/>
       <flag canpushcreatures="1"/>
       <flag targetdistance="4"/>
       <flag staticattack="80"/>
       <flag runonhealth="0"/>
   </flags>
   <attacks>
       <attack name="melee" skill="30" attack="28"/>
       <attack name="manadrain" chance="15" range="7" min="-467" max="-557"/>
       <attack name="energy" chance="13" range="7" min="-70" max="-90">
           <attribute key="shootEffect" value="energy"/>
           <attribute key="areaEffect" value="energy"/>
       </attack>
       <attack name="physical" chance="10" range="7" min="-130" max="-150">
           <attribute key="shootEffect" value="death"/>
       </attack>
       <attack name="strength" chance="13" range="7">
           <attribute key="shootEffect" value="poison"/>
           <attribute key="areaEffect" value="poison"/>
       </attack>
   </attacks>
   <defenses armor="15" defense="39">
       <defense name="healing" chance="20" min="90" max="120">
           <attribute key="areaEffect" value="blueshimmer"/>
       </defense>
       <defense name="haste_dharalion" chance="7"/>
   </defenses>
   <summons maxSummons="2">
       <summon name="demon skeleton" chance="6" max="2"/>
   </summons>
   <elements>
       <element firePercent="100"/>
       <element earthPercent="100"/>
   </elements>
   <immunities>
       <immunity lifedrain="1"/>   
       <immunity outfit="1"/>
       <immunity drunk="1"/>
       <immunity invisible="1"/>
   </immunities>
   <voices interval="5000" chance="10">
       <voice sentence="You desecrated this temple!"/>
       <voice sentence="Noone will stop my ascension!"/>
       <voice sentence="My powers are divine!"/>
       <voice sentence="Muahahaha!"/>
   </voices>
   <loot>
       <item id="2689" chance="14000"/><!-- 14% bread -->
       <item id="2682" chance="20000"/><!-- 20% melon -->
       <item id="2154" chance="400"/><!-- 0.4 yellow gem -->
       <item id="2260" chance="18000"/><!-- 18% blank rune -->
       <item id="2177" chance="1500"/><!-- 1.5% life crystal -->
       <item id="2032" chance="6500"/><!-- 6.5% bowl -->
       <item id="2802" chance="7000"/><!-- 7% sling herb -->
       <item id="2747" chance="9000"/><!-- 9% grave flower -->
       <item id="1949" chance="30000"/><!-- 30% scroll -->
       <item id="2600" chance="9000"/><!-- 9% inkwell -->
       <item id="2652" chance="9000"/><!-- 9% green tunic -->
       <item id="2642" chance="9000"/><!-- 9% sandals -->
       <item id="1987" chance="100000"><!-- bag -->
           
               <item id="2047" chance="9000"/><!-- 9% candlestick -->
               <item id="2401" chance="11000"/><!-- 11% staff -->
               <item id="2198" chance="2000"/><!-- 2% elven amulet -->
           
       </item>
   </loot>
</monster>
 
I've accomplished this correctly by doing following spells as it should reduce "strength" i.e. all skills. (you should fix yours as it was only lowering distance skill)

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)

local condition = Condition(CONDITION_ATTRIBUTES)
   condition:setParameter(CONDITION_PARAM_TICKS, 20000)
   condition:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, 80)
   condition:setParameter(CONDITION_PARAM_SKILL_SHIELDPERCENT, 80)
   condition:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, 80)
   condition:setParameter(CONDITION_PARAM_SKILL_FISTPERCENT, 80)
   combat:setCondition(condition)

function onCastSpell(cid, var)
   return combat:execute(creature, var)
end


Question did strength affect magic level also? (RPG wise it shouldn't.)
 
Actually I checked Dharalion on global tibia server when I was making my monsterpack and I'm 100% sure it does lower only distance.
 
back on 7.5 if i remember correctly he was lowering all skills.

Do you by any chance have any tibicam/clips from 7.4-7.92 with him?
 
Back
Top