Postado Setembro 1, 2014 10 anos Boa noite. Gostaria de um script que avisa-se em "vermelho" a todos os jogadores online quando tal monstro foi morto. Monstro.xml <?xml version="1.0" encoding="UTF-8"?> <monster name="Baiakuda Earth Elemental" nameDescription="a baiakuda earth elemental" race="undead" experience="50000" species="earth" speed="350" manacost="0"> <health now="100000" max="100000"/> <look type="285" corpse="8933"/> <targetchange interval="20000" chance="50"/> <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 staticattack="80"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="1"/> </flags> <attacks> <attack name="melee" interval="1000" skill="100" attack="95"/> <attack name="earth" interval="1000" chance="15" range="7" min="-250" max="-440"> <attribute key="shootEffect" value="earth"/> </attack> <attack name="earth" interval="1000" chance="10" length="6" spread="0" min="0" max="-260"> <attribute key="areaEffect" value="smallplants"/> </attack> <attack name="physical" interval="1000" chance="9" target="0" radius="4" min="0" max="-240"> <attribute key="areaEffect" value="poff"/> </attack> </attacks> <defenses armor="30" defense="30"/> <elements> <element deathPercent="20"/> <element icePercent="20"/> <element physicalPercent="20"/> <element holyPercent="20"/> <element firePercent="-25"/> </elements> <immunities> <immunity paralyze="1"/> <immunity invisible="1"/> <immunity earth="1"/> <immunity energy="1"/> </immunities> <loot capacity="5000"> <item id="9971" countmax="5" chance="15000"/> <item id="2352" countmax="1" chance="500"/> <item id="7407" countmax="1" chance="500"/> <item id="7460" countmax="1" chance="500"/> </loot> </monster>
Postado Setembro 1, 2014 10 anos To pelo celular mas vo tentar fazer aqui perai, vai em creaturescripts/scripts crie um arquivo.lua e dentro coloque isto : function onKill(cid, target, lastHit) if isPlayer(cid) then return true end if getCreatureName(target) == 'Baiakuda Earth Elemental' then doBroadcastMessage(''..getCreatureByName(cid)..' [Level : '..getPlayerLevel(cid)..'] acabou de derrotar o monstro '..getCreatureName(target)..'.', 21) end return true end depois em creaturescripts.xml coloque a seguinte tag : <event type="kill" name="MonsterDeath" event="script" value="arquivo.lua"/> depois na mesma pasta abra o arquivo login.lua e procure por "registerCreatureEvent" em seguida coloque no ultimo da fila o seguinte código : registerCreatureEvent(cid, "MonsterDeath") pronto lek, qualquer erro me desculpe, digitar pelo celular dói os dedos ahsusju celular de teclado :/
Postado Setembro 4, 2014 10 anos Autor Agradeço pela ajudar (e pelo esforço kkkk) mas não funcionou =(
Postado Setembro 7, 2014 10 anos Autor @up Editado Setembro 7, 2014 10 anos por baiakuda (veja o histórico de edições)
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.