Dartanio
New Member
- Joined
- Jan 1, 2010
- Messages
- 100
- Reaction score
- 0
Witam
Znalazłem buga na swoim otsie i nie mogę sobie z nim poradzić. Proszę o pomoc
... gdy warlock używa swojego czaru "invisible" nie można uderzyć go z sd pomimo iż na 100% trafiasz go na crosshairze. Nie sprawdzałem jeszcze czy z innymi znikającymi mobami jest podobnie.
tak wygląda spell który rzuca:
A tak sam skrypt warlocka - nie wiem może do czegoś się to przyda
Znalazłem buga na swoim otsie i nie mogę sobie z nim poradzić. Proszę o pomoc
... gdy warlock używa swojego czaru "invisible" nie można uderzyć go z sd pomimo iż na 100% trafiasz go na crosshairze. Nie sprawdzałem jeszcze czy z innymi znikającymi mobami jest podobnie.
tak wygląda spell który rzuca:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_INVISIBLE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
A tak sam skrypt warlocka - nie wiem może do czegoś się to przyda
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Warlock" nameDescription="a warlock" race="blood" experience="4000" speed="220" manacost="0">
<health now="3500" max="3500"/>
<look type="130" head="19" body="71" legs="128" feet="128" addons="1" corpse="6080"/>
<targetchange interval="5000" chance="30"/>
<strategy attack="100" defense="0"/>
<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="90"/>
<flag runonhealth="800"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-60" max="-180"/>
<attack name="physical" interval="1000" chance="35" range="7" min="-85" max="-185">
<attribute key="shootEffect" value="energy"/>
</attack>
<attack name="manadrain" interval="1000" chance="17" range="7" min="-75" max="-160"/>
<attack name="speed" interval="1000" chance="12" range="7" speedchange="-600" duration="40000">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
<attack name="fire" interval="2000" chance="45" range="7" radius="3" target="1" min="-150" max="-220">
<attribute key="shootEffect" value="burstarrow"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="firefield" interval="1000" chance="20" range="7" radius="2" target="1">
<attribute key="shootEffect" value="fire"/>
</attack>
<attack name="energy" interval="2000" chance="25" length="8" spread="0" min="-165" max="-245">
<attribute key="areaEffect" value="energy"/>
</attack>
<attack name="speed" interval="6000" chance="10" range="5" speedchange="-600" duration="20000">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
</attacks>
<defenses armor="25" defense="30">
<defense name="healing" interval="1000" chance="25" min="60" max="100">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="invisible" interval="5000" chance="50" duration="5000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element firePercent="100"/>
<element energyPercent="100"/>
<element icePercent="100"/>
<element earthPercent="90"/>
<element holyPercent="-25"/>
<element physicalPercent="-33"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<summons maxSummons="1">
<summon name="stone golem" interval="2000" chance="10" max="1"/>
</summons>
<voices interval="5000" chance="10">
<voice sentence="Learn the secret of our magic! YOUR death!"/>
<voice sentence="Even a rat is a better mage than you."/>
<voice sentence="We don't like intruders!"/>
</voices>
<loot>
<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
<item id="1986" chance="400"/><!-- red tome -->
<item id="2600" chance="10000"/><!-- inkwell -->
<item id="2124" chance="1000"/><!-- crystal ring -->
<item id="2689" countmax="1" chance="11000"/><!-- bread -->
<item id="7368" countmax="4" chance="1200"/><!-- -->
<item id="2167" chance="3000"/><!-- assassin star -->
<item id="2114" chance="1400"/><!-- piggy bank -->
<item id="2151" countmax="2" chance="1100"/><!-- talon -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="2148" countmax="50" chance="80000"/><!-- gold coin -->
<item id="2146" countmax="2" chance="1400"/><!-- small sapphire -->
<item id="2178" countmax="1" chance="2500"/><!-- mind stone -->
<item id="2679" countmax="4" chance="20000"/><!-- cherry -->
<item id="2047" chance="15000"/><!-- candlestick -->
<item id="2411" chance="5000"/><!-- poison dagger -->
<item id="2792" countmax="5" chance="6666"/><!-- dark mushroom -->
<item id="2793" countmax="2" chance="6666"/><!-- mushrooms -->
<item id="2656" chance="2000"/><!-- blue robe -->
<item id="2466" chance="588"/><!-- golden armor -->
<item id="2436" chance="1428"/><!-- skull staff -->
<item id="2123" chance="500"/><!-- ring of the sky -->
</inside>
</item>
</loot>
</monster>