Bom, esse é um tutorial para Vampire se transformar em Bat.
1° Passo:
Vá no data>spells>instant de seu ot e copie um arquivo , cole ele , renomeie para "Bat" e escreva :
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_NONE
animationColor = GREEN
offensive = false
drawblood = false
LightMagicMissileObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive,
drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
ret = doTargetMagic(cid, centerpos, LightMagicMissileObject:ordered())
if(ret) then
monsterlook = 122
end
time = 60
changeOutfit(cid, time, monsterlook)
return ret
end
E tambem faça isso com o nome de "Vampire" (se quiser que ele transforme e destransforme em vampire e em bat) eu prefiro assim pois ai ele n fik só 1 vez vampire e só 1 vez bat :
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_NONE
animationColor = GREEN
offensive = false
drawblood = false
LightMagicMissileObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive,
drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
ret = doTargetMagic(cid, centerpos, LightMagicMissileObject:ordered())
if(ret) then
monsterlook = 68
end
time = 60
changeOutfit(cid, time, monsterlook)
return ret
end
2° Passo:
Vá no data>spells>spells.xml e coloque entre <!--// Monster \\--> e <!--\\ Monster //--> isso:
<spell name="vampire" words="vampire" maglv="0" mana="0" enabled="1"></spell>
<spell name="bat" words="bat" maglv="0" mana="0" enabled="1"></spell>
Para vocês não terem muito trabalho vou passar direto ja, Vá em data>monsters abra o "vampire.xml" apague tudo e coloque :
<?xml version="1.0"?>
<monster name="Vampire" level="40" maglevel="40" experience="290" pushable="0" armor="35" defense="20" canpushitems="1" staticattack="50" changetarget="200" speed="220">
<health now="450" max="450"/>
<look type="68" head="20" body="30" legs="40" feet="50" corpse="4072"/>
<combat targetdistance="1" runonhealth="50"/>
<attacks>
<attack type="melee" maxdamage="180"/>
<attack type="distance" name="throwingstar" mindamage="10" maxdamage="100" cycleticks="2000" probability="100"/>
<attack type="instant" name="bat" exhaustion="0" cycleticks="5000" probability="60"/>
<attack type="instant" name="vampire" exhaustion="0" cycleticks="5000" probability="60"/>
</attacks>
<defenses>
<defense immunity="poison"/>
<defense immunity="paralyze"/>
<defense immunity="drunk"/>
</defenses>
<voices>
<voice sentence="BLOOD!"/>
<voice sentence="I smell a living!"/>
<voice sentence="Let me kiss your neck!"/>
<voice sentence="I call you my bats!"/>
<voice sentence="come!"/>
</voices>
<loot>
<item id="2969" countmax="20" chance1="100000" chancemax="0"/>
<item id="2840" chance="40000"/>
<item id="3497" chance="20000"/>
<item id="3311" chance="1000"/>
<item id="3596" chance="20000"/>
<item id="3052" countmax="3" chance1="15000" chancemax="0"/>
<item id="2791" chance="100000">
<inside>
<item id="3209" chance="800"/>
<item id="3238" chance="20000"/>
<item id="3372" chance="300"/>
<item id="3222" chance="600"/>
<item id="2965" countmax="3" chance1="2500" chancemax="0"/>
</inside>
</item>
</loot>
</monster>
Os ids e os loots estão de 7.5 se o seu for 7.8 ou 7.9 coloque :
<?xml version="1.0"?>
<monster name="Vampire" level="40" maglevel="30" experience="290" pushable="0" armor="28" defense="25" canpushitems="1" staticattack="50" changetarget="200" speed="220">
<health now="450" max="450"/>
<look type="68" head="20" body="30" legs="40" feet="50" corpse="2956"/>
<combat targetdistance="1" runonhealth="0"/>
<blood color="86" effect="9" splash="255"/>
<attacks>
<attack type="melee" maxdamage="160"/>
<attack type="instant" name="vamp_lifedrain" exhaustion="1000" cycleticks="3000" probability="60"/>
<attack type="instant" name="bat" exhaustion="0" cycleticks="5000" probability="60"/>
<attack type="instant" name="vampire" exhaustion="0" cycleticks="5000" probability="60"/>
</attacks>
<defenses>
<defense immunity="poison"/>
<defense immunity="paralyze"/>
<defense immunity="invisible"/>
</defenses>
<voices>
<voice sentence="BLOOD!"/>
<voice sentence="I smell a living!"/>
<voice sentence="Let me kiss your neck!"/>
<voice sentence="I call you my bats!, come!"/>
</voices>
<loot>
<item id="2148" countmax="9" chance1="100000" chancemax="0"/>
<item id="2383" chance="1666"/>
<item id="1987" chance="100000">
<inside>
<item id="2148" countmax="4" chance1="2500" chancemax="0"/>
<item id="2032" chance="10000"/>
<item id="2229" countmax="3" chance1="6666" chancemax="0"/>
<item id="2412" chance="2857"/>
<item id="2747" chance="2500"/>
<item id="2534" chance="909"/>
<item id="2396" chance="1333"/>
<item id="2144" countmax="3" chance1="1538" chancemax="0"/>
<item id="2479" chance="1428"/>
</inside>
</item>
</loot>
</monster>
Pronto agora está pronto agora é só reniciar o server e falar "/m vampire" pegue um player para testar e ele vai virar bat... qualquer duvida POSTE