Ir para conteúdo

Featured Replies

Postado

Simplesmente quando mata o verminor, o corpo dele não cai, fica de pé, e não são todos que acontece isso, são apenas alguns, acho que é apenas para os players que estão fazendo a task! Obs: não precisa colocar script da task no monstro, no meu sistema.

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Verminor" nameDescription="a verminor" race="fire" experience="800000" speed="900" manacost="10000">
  <health now="55000" max="55000"/>
  <look type="35" corpse="5995"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="90" defense="10"/>
  <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="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" skill="400" attack="400"/>
    <attack name="manadrain" interval="2000" chance="13" range="7" min="1000" max="-5200"/>
    <attack name="fire" interval="2000" chance="30" range="7" radius="7" target="1" min="-1500" max="-3000">
		<attribute key="shootEffect" value="fire"/>
		<attribute key="areaEffect" value="firearea"/>
	</attack>
    <attack name="firefield" interval="2000" chance="12" range="7" radius="1" target="1">
		<attribute key="shootEffect" value="fire"/>
	</attack>
    <attack name="lifedrain" interval="1000" chance="12" length="8" spread="0" min="-3000" max="-4670">
		<attribute key="areaEffect" value="purpleenergy"/>
	</attack>
	<attack name="speed" interval="2000" chance="15" target="1" speedchange="-750" duration="30000">
		<attribute key="shootEffect" value="suddendeath"/>
	</attack>
	<attack name="energy" interval="3000" chance="10" range="1" target="1" min="-2500" max="-7000">
		<attribute key="areaEffect" value="purpleenergy"/>
	</attack>
  </attacks>
  <defenses armor="55" defense="55">
    <defense name="healing" interval="2000" chance="15" min="130" max="240">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
	<defense name="speed" interval="1000" chance="8" speedchange="290" duration="5000">
      <attribute key="areaEffect" value="redshimmer"/>
    </defense>
  </defenses>
	<elements>
		<element physicalPercent="10"/>
		<element energyPercent="50"/>
		<element earthPercent="20"/>
		<element icePercent="-15"/>
		<element holyPercent="-15"/>
		<element deathPercent="20"/>
	</elements>
  <immunities>
	<immunity fire="0"/>
	<immunity energy="1"/>
    <immunity drown="1"/>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="MUHAHAHAHA!" yell="1"/>
    <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
    <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
    <voice sentence="Your resistance is futile!"/>
    <voice sentence="Your soul will be mine!" yell="0"/>
  </voices>
  <loot>
 	<item id="2148" countmax="100" chance1="100000" chancemax="0"/> -- gold coins
 	<item id="2148" countmax="100" chance1="100000" chancemax="0"/> -- gold coins
	<item id="2152" countmax="3" chance1="33333" chancemax="2000"/> --Plat
 	<item id="2514" chance="1900"/> --mastermind shield
 	<item id="2472" chance="200"/> --magic plate armor
	<item id="2795" countmax="6" chance1="7500"/> --Fire Mushroo
    <item id="2164" chance="2100"/> --might ring
    <item id="2165" chance="2300"/> --stealth ring
	<item id="7591" chance="4500"/> -- GHP
 	<item id="1987" chance="100000">
		<inside>
		 	<item id="2393" chance="3800"/> --giantsword
		 	<item id="2432" chance="3800"/> --fire axe
			<item id="2214" chance="2222"/> --ring of healing
			<item id="2396" chance="2600"/> --ice rapier
			<item id="2179" chance="1100"/> --golden ring
			<item id="2795" countmax="6" chance1="13000"/> --fire mushroom
			<item id="2148" countmax="100" chance1="100000" chancemax="0"/> -- gold coin
			<item id="2151" countmax="4" chance1="5500" chancemax="0"/>
			<item id="2462" chance="3200"/> --devil helmet
			<item id="2149" countmax="3" chance1="11000" chancemax="0"/>
			<item id="2387" chance="32000"/> --double axe
			<item id="2470" chance="1350"/> --golden legs
			<item id="2520" chance="3100"/> --demon shield
			<item id="2418" chance="1500"/> --golden sickle
		</inside>
 	</item>
</loot>
</monster>

Acontece o seguinte erro:

 

http://prntscr.com/48bnm1

 

 

Script da task:

local config = {
     ['verminor'] = {amount = 2000, storage = 19555, startstorage = 5555, startvalue = 1},
}
function onKill(cid, target)
     local monster = config[getCreatureName(target):lower()]
     if isPlayer(target) or not monster or isSummon(target) then
         return true
     end

     if getPlayerStorageValue(cid, monster.storage) >= -1 and (getPlayerStorageValue(cid, monster.storage)+1) < monster.amount and getPlayerStorageValue(cid, monster.startstorage) >= monster.startvalue then
         setPlayerStorageValue(cid, monster.storage, getPlayerStorageValue(cid, monster.storage) + 1)
         doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Task: Matou '..(getPlayerStorageValue(cid, monster.storage)+1)..' de '..monster.amount..' '..getCreatureName(target)..'s.')
     end
     if (getPlayerStorageValue(cid, monster.storage)+1) == monster.amount then
         doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Parabens, voce matou '..(getPlayerStorageValue(cid, monster.storage)+1)..' '..getCreatureName(target)..'s e completou a missao dos '..getCreatureName(target)..'s.')
         setPlayerStorageValue(cid, monster.storage, getPlayerStorageValue(cid, monster.storage) + 1)
     end
     return true
end

Editado por Disturbbed (veja o histórico de edições)

  • Respostas 16
  • Visualizações 832
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado

Tente mudar o corpse

Projeto Zerphys Dragon Ball Online V1.0 (Open Source) Em breve!

 

 - Mapa 3%

 - Monstros 0%

 - Vocações 0%

 - Spells 0%

 - Scripts (talkactions, sistemas,mods, geral etc ...) 0%

 - Client 0%

 - Website 0%

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo