Ir para conteúdo
  • Cadastre-se

(Resolvido)[ERRO] SCRIPT


Ir para solução Resolvido por Eduardo Carvalho,

Posts Recomendados

[15:4:43.091] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.113] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.113] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.114] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.122] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.129] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.137] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.145] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.152] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.161] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.168] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.176] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.185] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.193] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.201] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.208] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.216] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.224] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.231] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.238] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.246] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.253] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.259] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.266] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.273] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.279] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.287] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.293] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.301] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.307] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.314] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.321] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.328] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
[15:4:43.335] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf
 
com eu arrumo isso ai ?

Link para o post
Compartilhar em outros sites

Posta seu script aqui.

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites
function onKill(cid, target, lastHit)
 
local questCreatures =
{
        ["Dwarf"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 100, raceName = "Dwarfs"},
        ["Dwarf Soldier"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 100, raceName = "Dwarfs"},
        ["Dwarf Guard"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15002, killsRequired = 100, raceName = "Dwarfs"},
        ["Dwarf Geomancer"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15003, killsRequired = 100, raceName = "Dwarfs"},
        ["Dwarf Emperor"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15004, killsRequired = 100, raceName = "Dwarfs"},
 
        ["Goblin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 150, raceName = "Goblins"},
        ["Goblin Assassin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15008, killsRequired = 150, raceName = "Goblins"},
        ["Goblin Leader"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15009, killsRequired = 150, raceName = "Goblins"},
        ["Goblin Scavenger"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15010, killsRequired = 150, raceName = "Goblins"},
 
        ["Rotworm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 300, raceName = "Rotworms"},
        ["Carrion Worm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15012, killsRequired = 300, raceName = "Rotworms"},
["Rotworm Queen"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15067, killsRequired = 300, raceName = "Rotworms"},
 
        ["Cyclops"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15013, killsRequired = 500, raceName = "Cyclops"},
        ["Cyclops Smith"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15014, killsRequired = 500, raceName = "Cyclops"},
        ["Cyclops Drone"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15015, killsRequired = 500, raceName = "Cyclops"},
 
 
        ["Crocodile"] = {questStarted = 1514, questStorage = 65004, creatureStorage = 15016, killsRequired = 300, raceName = "Crocodiles"},
 
        ["Tarantula"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 300, raceName = "Tarantulas"},
 
        ["Amazon"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 150, raceName = "Amazons or Valkirias"},
["Valkyrie"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15005, killsRequired = 150, raceName = "Amazons or Valkirias"},
 
        ["Stone Golem"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 200, raceName = "Stone Golems"},
 
        ["Vampire"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 300, raceName = "Vampires"},
 
        ["Infernalist"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 1000, raceName = "Infernalists"},
        ["Infernalist Vip"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15043, killsRequired = 1000, raceName = "Infernalists"},
 
        ["Quara Predator Scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 300, raceName = "Quaras Scout"},
        ["Quara Constrictor Scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 300, raceName = "Quaras Scout"},
        ["Quara Hydromancer Scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 300, raceName = "Quaras Scout"},
        ["Quara Mantassin Scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 300, raceName = "Quaras Scout"},
        ["Quara Pincher Scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 300, raceName = "Quaras Scout"},
 
        ["Quara Predator"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 300, raceName = "Quaras"},
        ["Quara Constrictor"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 300, raceName = "Quaras"},
        ["Quara Hydromancer"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 300, raceName = "Quaras"},
        ["Quara Mantassin"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15030, killsRequired = 300, raceName = "Quaras"},
        ["Quara Pincher"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15031, killsRequired = 300, raceName = "Quaras"},
 
        ["Water Elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 70, raceName = "Water Elementals"},
        ["Roaring Water Elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15033, killsRequired = 70, raceName = "Water Elementals"},
        ["Slick Water Elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15034, killsRequired = 70, raceName = "Water Elementals"},
        ["Massive Water Elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15035, killsRequired = 70, raceName = "Water Elementals"},
 
        ["Hellspawn"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 750, raceName = "Hellspawns"},
["Hellspawn Vip"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15082, killsRequired = 750, raceName = "Hellspawns"},
 
        ["Frost Dragon"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15040, killsRequired = 3000, raceName = "Frost Dragons"},
["Castle Frost Dragon"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15081, killsRequired = 3000, raceName = "Frost Dragons"},
["Frost Dragon Vip"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15041, killsRequired = 3000, raceName = "Frost Dragons"},
 
        ["Hellfire Fighter"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 1000, raceName = "Hellfire/Massive Fire Elemetals"},
        ["Blazing Fire Elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 1000, raceName = "Hellfire/Massive Fire Elemetals"},
        ["Blistering Fire Elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 1000, raceName = "Hellfire/Massive Fire Elemetals"},
        ["Massive Fire Elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 1000, raceName = "Hellfire/Massive Fire Elemetals"},
 
        ["Mutated Rat"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 200, raceName = "Mutated Rats"},
 
        ["Giant Spider"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 500, raceName = "Giant Spiders"},
 
        ["Hydra"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 2000, raceName = "Hydras"},
["Hydra Vip"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15065, killsRequired = 2000, raceName = "Hydras"},
 
        ["Fury"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15051, killsRequired = 2000, raceName = "Furys"},
["Fury Vip"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15042, killsRequired = 2000, raceName = "Furys"},
 
        ["Behemoth"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15052, killsRequired = 2000, raceName = "Behemoths"},
["Behemoth Vip"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15077, killsRequired = 2000, raceName = "Behemoths"},
 
        ["Serpent Spawn"] = {questStarted = 1531, questStorage = 65021, creatureStorage = 15053, killsRequired = 1500, raceName = "Serpents Spawn"},
 
        ["Green Djinn"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15054, killsRequired = 500, raceName = "Green Djinns"},
        ["Efreet"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15055, killsRequired = 500, raceName = "Green Djinns"},
 
        ["Blue Djinn"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15056, killsRequired = 500, raceName = "Blue Djinns"},
        ["Marid"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15057, killsRequired = 500, raceName = "Blue Djinns"},
 
        ["Pirate Buccaneer"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15058, killsRequired = 3000, raceName = "Pirates"},
        ["Pirate Corsair"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15059, killsRequired = 3000, raceName = "Pirates"},
        ["Pirate Cutthroat"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15060, killsRequired = 3000, raceName = "Pirates"},
        ["Pirate Ghost"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15061, killsRequired = 3000, raceName = "Pirates"},
        ["Pirate Marauder"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15062, killsRequired = 3000, raceName = "Pirates"},
        ["Pirate Skeleton"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15063, killsRequired = 3000, raceName = "Pirates"},
 
        ["Son of Verminor"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15064, killsRequired = 3000, raceName = "Son of Verminor"},
["Castle Son of Verminor"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15080, killsRequired = 3000, raceName = "Son of Verminor"},
["Son of Verminor Vip"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15066, killsRequired = 3000, raceName = "Son of Verminor"},
 
        ["Defiler"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15070, killsRequired = 5000, raceName = "Defilers"},
        ["Defiler Vip"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15083, killsRequired = 5000, raceName = "Defilers"},
 
        ["Grim Reaper"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15071, killsRequired = 10000, raceName = "Grim Reapers"},
        ["Grim Reaper Vip"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15072, killsRequired = 10000, raceName = "Grim Reapers"},
["Castle Grim Reaper"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15078, killsRequired = 10000, raceName = "Grim Reapers"},
 
        ["Undead Dragon"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15073, killsRequired = 3000, raceName = "Undead Dragons"},
        ["Undead Dragon Vip"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15074, killsRequired = 3000, raceName = "Undead Dragons"},
 
        ["Demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15075, killsRequired = 6666, raceName = "Demons"},
["Castle Demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15079, killsRequired = 6666, raceName = "Demons"},
["Demon Vip"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15076, killsRequired = 6666, raceName = "Demons"}
}
 
local creature = questCreatures[getCreatureName(target)]
       
        if creature then
                if(isPlayer(target) == true) then
                        return true
                end
                if getPlayerStorageValue(cid, creature.questStarted) > 0 then
                        if getPlayerStorageValue(cid, creature.questStorage) < creature.killsRequired then
                                if getPlayerStorageValue(cid, creature.questStorage) < 0 then
                                        doPlayerSetStorageValue(cid, creature.questStorage, 0)
                                end
 
                                if getPlayerStorageValue(cid, creature.creatureStorage) < 0 then
                                        doPlayerSetStorageValue(cid, creature.creatureStorage, 0)
                                end
                                doPlayerSetStorageValue(cid, creature.questStorage, getPlayerStorageValue(cid, creature.questStorage) + 1)
                                doPlayerSetStorageValue(cid, creature.creatureStorage, getPlayerStorageValue(cid, creature.creatureStorage) + 1)
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "" .. getPlayerStorageValue(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getPlayerStorageValue(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")
                        end
                end
        end
        return true
end

Link para o post
Compartilhar em outros sites

KKk vc não registrou o evento  KillingInTheNameOf no login.lua... vá onde vc achou esse task system e reinstale ele corretamente...

Scripter: |||||||||| 10%

 

 

Te ajudei?? REP + e ficamos quites...  ;D

 

Atenciosamente,

                   Lucas.

Abraços!

Link para o post
Compartilhar em outros sites

Qual a versão do seu servidor se for TFS 1.0 use

player:registerEvent("killingInTheNameOfQuestKills")
Agora se for TFS 0.4

registerCreatureEvent(cid, "KillingInTheNameOf")
Coloque essas tags junto aos demais event no script data/creaturescript/scripts/login.lua Editado por Beyond Sky (veja o histórico de edições)


Medalhas:
1, 2

Qo5DnNn.png

stonedshowoff2_zpsf5409854.png

Link para o post
Compartilhar em outros sites

e eu ja eu ja fui em login e ja ta regisytado

Link para o post
Compartilhar em outros sites

Ok então tente... Ir em login.lua

e coloque isso

 

registerCreatureEvent(cid, "KillingInTheNameOf")

 

antes do ultimo return true

 

Edit:atualizou só agora..

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

Scripter: |||||||||| 10%

 

 

Te ajudei?? REP + e ficamos quites...  ;D

 

Atenciosamente,

                   Lucas.

Abraços!

Link para o post
Compartilhar em outros sites

Ok então tente... Ir em login.lua

e coloque isso

 

registerCreatureEvent(cid, "KillingInTheNameOf")

 

antes do ultimo return true

 

Edit:atualizou só agora..

ja tem isso  ai mano .

Qual a versão do seu servidor se for TFS 1.0 use

player:registerEvent("killingInTheNameOfQuestKills")
Agora se for TFS 0.4

<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>
Coloque essas tags junto aos demais event no script data/creaturescript/scripts/login.lua

 

ja tem isso tb  so n tem isso aki 

 

player:registerEvent("killingInTheNameOfQuestKills")

 

mai no meu ta assim 

registerCreatureEvent(cid, "KillingInTheNameOf")

Link para o post
Compartilhar em outros sites

Só por duvida os monstros que estão no task system tem isso aki 

 

<script>
<event name="KillingInTheNameOf"/>
</script>  
 
em que parte que fica ...
 
Demon.xml
 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Demon" nameDescription="a demon" race="fire" experience="6000" speed="275" manacost="10000">
  <health now="8200" max="8200"/>
  <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="100" attack="110"/>
    <attack name="manadrain" interval="2000" chance="13" range="7" min="0" max="-120"/>
    <attack name="fire" interval="2000" chance="30" range="7" radius="7" target="1" min="-150" max="-250">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
    <attack name="fire" 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="-300" max="-467">
<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="-210" max="-300">
<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="30"/>
<element energyPercent="50"/>
<element earthPercent="20"/>
<element icePercent="-15"/>
<element holyPercent="-15"/>
<element deathPercent="20"/>
</elements>
  <immunities>
    <immunity fire="1"/>
    <immunity drown="1"/>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="1">
    <summon name="fire elemental" interval="1000" chance="12"/>
  </summons>
  <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>
<script>
<event name="KillingInTheNameOf"/>
</script>  
  <loot>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2152" countmax="3" chance1="33333" chancemax="2000"/>
  <item id="2514" chance="1900"/>
  <item id="2472" chance="200"/>
<item id="2795" countmax="6" chance1="7500"/>
  <item id="5906" countmax="1" chance="2000"/>
<item id="5954" countmax="1" chance="2345"/>
    <item id="2164" chance="2100"/>
    <item id="2176" chance="3500"/>
<item id="1982" chance="1300"/>
    <item id="2165" chance="2300"/>
<item id="7591" chance="4500"/>
  <item id="1987" chance="100000">
<inside>
<item id="2393" chance="3800"/> 
<item id="2432" chance="3800"/> 
       <item id="2112" chance="4100"/> 
<item id="2396" chance="2600"/> 
<item id="2795" countmax="6" chance1="13000"/> 
<item id="2678" countmax="3" chance1="10000" chancemax="0"/> 
<item id="2148" countmax="100" chance1="100000" chancemax="0"/> 
<item id="2151" countmax="4" chance1="5500" chancemax="0"/>
<item id="2462" chance="3200"/> 
<item id="2149" countmax="3" chance1="11000" chancemax="0"/>
<item id="2171" chance="2200"/> 
<item id="2387" chance="32000"/>
<item id="2470" chance="1350"/>
<item id="7382" chance="300"/> 
<item id="7393" chance="1700"/> 
<item id="2520" chance="3100"/> 
<item id="2418" chance="1500"/> 
<item id="2377" chance="6666"/> 
</inside>
  </item>
</loot>
</monster>

Scripter: |||||||||| 10%

 

 

Te ajudei?? REP + e ficamos quites...  ;D

 

Atenciosamente,

                   Lucas.

Abraços!

Link para o post
Compartilhar em outros sites

 

Só por duvida os monstros que estão no task system tem isso aki 

 

<script>
<event name="KillingInTheNameOf"/>
</script>  
 
em que parte que fica ...
 
Demon.xml
 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Demon" nameDescription="a demon" race="fire" experience="6000" speed="275" manacost="10000">
  <health now="8200" max="8200"/>
  <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="100" attack="110"/>
    <attack name="manadrain" interval="2000" chance="13" range="7" min="0" max="-120"/>
    <attack name="fire" interval="2000" chance="30" range="7" radius="7" target="1" min="-150" max="-250">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
    <attack name="fire" 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="-300" max="-467">
<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="-210" max="-300">
<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="30"/>
<element energyPercent="50"/>
<element earthPercent="20"/>
<element icePercent="-15"/>
<element holyPercent="-15"/>
<element deathPercent="20"/>
</elements>
  <immunities>
    <immunity fire="1"/>
    <immunity drown="1"/>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="1">
    <summon name="fire elemental" interval="1000" chance="12"/>
  </summons>
  <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>
<script>
<event name="KillingInTheNameOf"/>
</script>  
  <loot>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2152" countmax="3" chance1="33333" chancemax="2000"/>
  <item id="2514" chance="1900"/>
  <item id="2472" chance="200"/>
<item id="2795" countmax="6" chance1="7500"/>
  <item id="5906" countmax="1" chance="2000"/>
<item id="5954" countmax="1" chance="2345"/>
    <item id="2164" chance="2100"/>
    <item id="2176" chance="3500"/>
<item id="1982" chance="1300"/>
    <item id="2165" chance="2300"/>
<item id="7591" chance="4500"/>
  <item id="1987" chance="100000">
<inside>
<item id="2393" chance="3800"/> 
<item id="2432" chance="3800"/> 
       <item id="2112" chance="4100"/> 
<item id="2396" chance="2600"/> 
<item id="2795" countmax="6" chance1="13000"/> 
<item id="2678" countmax="3" chance1="10000" chancemax="0"/> 
<item id="2148" countmax="100" chance1="100000" chancemax="0"/> 
<item id="2151" countmax="4" chance1="5500" chancemax="0"/>
<item id="2462" chance="3200"/> 
<item id="2149" countmax="3" chance1="11000" chancemax="0"/>
<item id="2171" chance="2200"/> 
<item id="2387" chance="32000"/>
<item id="2470" chance="1350"/>
<item id="7382" chance="300"/> 
<item id="7393" chance="1700"/> 
<item id="2520" chance="3100"/> 
<item id="2418" chance="1500"/> 
<item id="2377" chance="6666"/> 
</inside>
  </item>
</loot>
</monster>

 

aonde eu vejo que ta ?

Link para o post
Compartilhar em outros sites

Em cima do loot do monstro e embaixo de voics... olhe

 

 

  <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>
<script>
<event name="KillingInTheNameOf"/>
</script>  
  <loot>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
  <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2152" countmax="3" chance1="33333" chancemax="2000"/>
  <item id="2514" chance="1900"/>

Scripter: |||||||||| 10%

 

 

Te ajudei?? REP + e ficamos quites...  ;D

 

Atenciosamente,

                   Lucas.

Abraços!

Link para o post
Compartilhar em outros sites

olha como ta o meu (demon.xml)

 

 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Demon" nameDescription="a demon" race="fire" experience="6000" speed="280" manacost="0">
<health now="8200" max="8200"/>
<look type="35" corpse="5995"/>
<targetchange interval="5000" chance="10"/>
<strategy attack="100" defense="0"/>
<script>
        <event name="KillingInTheNameOf"/>
</script>
<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="80" attack="120"/>
<attack name="manadrain" interval="3000" chance="15" range="7" min="-0" max="-120"/>
<attack name="fire" interval="4000" chance="60" range="7" radius="7" target="1" min="-150" max="-250">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
<attribute key="shootEffect" value="fire"/>
</attack>
<attack name="energy" interval="3000" chance="10" length="8" spread="0" min="-300" max="-460">
<attribute key="areaEffect" value="purpleenergy"/>
</attack>
<attack name="energy" interval="3000" chance="7" range="3" radius="1" target="1" min="-210" max="-300">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="energy"/>
</attack>
<attack name="speed" interval="5000" chance="10" range="7" speedchange="-220" duration="5000">
</attack>
</attacks>
<defenses armor="30" defense="30">
<defense name="healing" interval="2000" chance="10" min="90" max="200">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="5" speedchange="60" duration="20000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element firePercent="100"/>
<element physicalPercent="25"/>
<element earthpercent="40"/>
<element energyPercent="50"/>
<element deathPercent="20"/>
<element icePercent="-12"/>
<element holyPercent="-12"/>
</elements>
<immunities>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<summons maxSummons="1">
<summon name="fire elemental" interval="4000" chance="10" max="1"/>
</summons>
<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="90" chance="40000"/><!-- gold coin -->
<item id="2148" countmax="70" chance="40000"/><!-- gold coin -->
<item id="2148" countmax="38" chance="40000"/><!-- gold coin -->
<item id="7368" countmax="5" chance="15390"/><!-- assassin star -->
<item id="2152" countmax="1" chance="69660"/><!-- platinum coin -->
<item id="5954" chance="630"/><!-- demon horn -->
<item id="2164" chance="160"/><!-- might ring -->
<item id="2462" chance="1260"/><!-- devil helmet -->
<item id="2432" chance="3950"/><!-- fire axe -->
<item id="2470" chance="450"/><!-- golden legs -->
<item id="2514" chance="540"/><!-- mastermind shield -->
<item id="2472" chance="70"/><!-- magic plate armor -->
<item id="2795" countmax="6" chance1="66010"/><!-- fire mushroom -->
<item id="2179" chance="1130"/><!-- golden ring -->
<item id="7590" chance="10000"/><!-- great mana potion -->
<item id="7590" chance="10000"/><!-- great mana potion -->
<item id="8473" chance="12500"/><!-- ultimate health potion -->
<item id="8473" chance="12500"/><!-- ultimate health potion -->
<item id="1987" chance="100000"><!-- bag -->
<item id="2153" chance="300"/>
<item id="2154" chance="300"/>
<item id="2155" chance="300"/>
<item id="2156" chance="300"/>
<inside>
<item id="2520" chance="650"/><!-- demon shield -->
<item id="2418" chance="1580"/><!-- golden sickle -->
<item id="2176" chance="2570"/><!-- orb -->
<item id="2387" chance="19260"/><!-- double axe -->
<item id="1982" chance="1340"/><!-- purple tome -->
<item id="2393" chance="1790"/><!-- giant sword -->
<item id="2214" chance="590"/><!-- ring of healing -->
<item id="2149" chance="9400"/><!-- small emerald -->
<item id="2165" chance="1500"/><!-- stealth ring -->
<item id="2151" chance="3500"/><!-- talon -->
<item id="7590" chance="10000"/><!-- great mana potion -->
<item id="8473" chance="12500"/><!-- ultimate health potion -->
<item id="2171" chance="610"/><!-- platinum amulet -->
<item id="2396" chance="680"/><!-- ice rapier -->
<item id="7382" chance="90"/><!-- demonrage sword -->
<item id="7393" chance="110"/><!-- demon trophy -->
</inside>
</item>
</loot>
</monster>

Link para o post
Compartilhar em outros sites

hum... ele possui já.. estranho...

Scripter: |||||||||| 10%

 

 

Te ajudei?? REP + e ficamos quites...  ;D

 

Atenciosamente,

                   Lucas.

Abraços!

Link para o post
Compartilhar em outros sites
  • Solução

é só remover essa parte de todos os monsters que a tenha :

<script>

        <event name="KillingInTheNameOf"/>
</script>

faz isso ! Não lembro todos os monstros que tem , é só procurar.

Creio que todos os monster que tem o nome no script tem o registro.

 

é só excluir :D

infos40x40.png

Skype : duhw.carvalho

 

Ajude-nos a crescer, clicando em curtir

 

 

 

Link para o post
Compartilhar em outros sites

Cria um arquivo .lua chamado killinginthenameof.lua na pasta data/creaturescripts/scripts:

local questCreatures =
{
   ["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 100, raceName = "Trolls"},
   ["frost troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 100, raceName = "Trolls"},
   ["furious troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15002, killsRequired = 100, raceName = "Trolls"},
   ["island troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15003, killsRequired = 100, raceName = "Trolls"},
   ["swamp troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15004, killsRequired = 100, raceName = "Trolls"},
   ["troll champion"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15005, killsRequired = 100, raceName = "Trolls"},
   ["troll legionnaire"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15006, killsRequired = 100, raceName = "Trolls"},
 
   ["goblin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 150, raceName = "Goblins"},
   ["goblin assassin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15008, killsRequired = 150, raceName = "Goblins"},
   ["goblin leader"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15009, killsRequired = 150, raceName = "Goblins"},
   ["goblin scavenger"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15010, killsRequired = 150, raceName = "Goblins"},
 
   ["rotworm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 300, raceName = "Rotworms"},
   ["carriom worm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15012, killsRequired = 300, raceName = "Rotworms"},
 
   ["cyclops"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15013, killsRequired = 500, raceName = "Cyclops"},
   ["cyclops smith"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15014, killsRequired = 500, raceName = "Cyclops"},
   ["cyclops drone"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15015, killsRequired = 500, raceName = "Cyclops"},
 
 
   ["crocodile"] = {questStarted = 1514, questStorage = 65004, creatureStorage = 15016, killsRequired = 300, raceName = "Crocodiles"},
 
   ["tarantula"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 300, raceName = "Tarantulas"},
 
   ["carniphila"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 150, raceName = "Carniphilas"},
 
   ["stone golem"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 200, raceName = "Stone Golems"},
 
   ["mammoth"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 300, raceName = "Mammoths"},
 
   ["ice golem"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 300, raceName = "Ice Golems"},
 
   ["quara predator scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara constrictor scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara hydromancer scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara mantassin scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara pincher scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 300, raceName = "Quaras Scout"},
 
   ["quara predator"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 300, raceName = "Quaras"},
   ["quara constrictor"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 300, raceName = "Quaras"},
   ["quara hydromancer"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 300, raceName = "Quaras"},
   ["quara mantassin"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15030, killsRequired = 300, raceName = "Quaras"},
   ["quara pincher"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15031, killsRequired = 300, raceName = "Quaras"},
 
   ["water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 70, raceName = "Water Elementals"},
   ["roaring water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15033, killsRequired = 70, raceName = "Water Elementals"},
   ["slick water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15034, killsRequired = 70, raceName = "Water Elementals"},
   ["massive water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15035, killsRequired = 70, raceName = "Water Elementals"},
 
   ["earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 70, raceName = "Earth Elementals"},
   ["jagged earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15037, killsRequired = 70, raceName = "Earth Elementals"},
   ["massive earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15038, killsRequired = 70, raceName = "Earth Elementals"},
   ["muddy earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15039, killsRequired = 70, raceName = "Earth Elementals"},
 
   ["energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15040, killsRequired = 70, raceName = "Energy Elementals"},
   ["charged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15041, killsRequired = 70, raceName = "Energy Elementals"},
   ["massive energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15042, killsRequired = 70, raceName = "Energy Elementals"},
   ["overcharged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15043, killsRequired = 70, raceName = "Energy Elementals"},
 
   ["fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 70, raceName = "Fire Elementals"},
   ["blazing fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 70, raceName = "Fire Elementals"},
   ["blistering fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 70, raceName = "Fire Elementals"},
   ["massive fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 70, raceName = "Fire Elementals"},
 
   ["mutated rat"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 200, raceName = "Mutated Rats"},
 
   ["giant spider"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 500, raceName = "Giant Spiders"},
 
   ["hydra"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 2000, raceName = "Hydras"},
 
   ["sea serpent"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15051, killsRequired = 2000, raceName = "Sea Serpents"},
 
   ["behemoth"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15052, killsRequired = 2000, raceName = "Behemoths"},
 
   ["serpent spawn"] = {questStarted = 1531, questStorage = 65021, creatureStorage = 15053, killsRequired = 1500, raceName = "Serpents Spawn"},
 
   ["green djinn"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15054, killsRequired = 500, raceName = "Green Djinns"},
   ["efreet"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15055, killsRequired = 500, raceName = "Green Djinns"},
 
   ["blue djinn"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15056, killsRequired = 500, raceName = "Blue Djinns"},
   ["marid"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15057, killsRequired = 500, raceName = "Blue Djinns"},
 
   ["pirate buccaneer"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15058, killsRequired = 3000, raceName = "Pirates"},
   ["pirate corsair"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15059, killsRequired = 3000, raceName = "Pirates"},
   ["pirate cutthroat"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15060, killsRequired = 3000, raceName = "Pirates"},
   ["pirate ghost"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15061, killsRequired = 3000, raceName = "Pirates"},
   ["pirate marauder"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15062, killsRequired = 3000, raceName = "Pirates"},
   ["pirate skeleton"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15063, killsRequired = 3000, raceName = "Pirates"},
 
   ["pirate buccaneer"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15064, killsRequired = 3000, raceName = "Pirates"},
   ["pirate corsair"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15065, killsRequired = 3000, raceName = "Pirates"},
   ["pirate cutthroat"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15066, killsRequired = 3000, raceName = "Pirates"},
   ["pirate ghost"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15067, killsRequired = 3000, raceName = "Pirates"},
   ["pirate marauder"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15068, killsRequired = 3000, raceName = "Pirates"},
   ["pirate skeleton"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15069, killsRequired = 3000, raceName = "Pirates"},
 
   ["minotaur"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15070, killsRequired = 5000, raceName = "Minotaurs"},
 
   ["necromancer"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15071, killsRequired = 4000, raceName = "Magicians"},
   ["priestess"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15072, killsRequired = 4000, raceName = "Magicians"},
 
   ["necromancer"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15073, killsRequired = 1000, raceName = "Magicians"},
   ["priestess"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15074, killsRequired = 1000, raceName = "Magicians"},
 
   ["demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15075, killsRequired = 6666, raceName = "Demons"}
}
 
local msgType = MESSAGE_STATUS_CONSOLE_ORANGE
 
function onKill(cid, target, lastHit)
 
local creature = questCreatures[getCreatureName(target):lower()]
 
   if creature then
      if isPlayer(target) then
         return true
      end
      if getCreatureStorage(cid, creature.questStarted) > 0 then
         if getCreatureStorage(cid, creature.questStorage) < creature.killsRequired then
            if getCreatureStorage(cid, creature.questStorage) < 0 then
               doCreatureSetStorage(cid, creature.questStorage, 0)
            end
 
            if getCreatureStorage(cid, creature.creatureStorage) < 0 then
               doCreatureSetStorage(cid, creature.creatureStorage, 0)
            end
            doCreatureSetStorage(cid, creature.questStorage, getCreatureStorage(cid, creature.questStorage) + 1)
            doCreatureSetStorage(cid, creature.creatureStorage, getCreatureStorage(cid, creature.creatureStorage) + 1)
            doPlayerSendTextMessage(cid, msgType, "" .. getCreatureStorage(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getCreatureStorage(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")
         end
      end
   end
   return true
end

 

Coloca em login.lua:

registerCreatureEvent(cid, "KillingInTheNameOf")

E em creaturescripts.xml coloca isso:

<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>

Diz se funcionou.

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

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Cria um arquivo .lua chamado killinginthenameof.lua na pasta data/creaturescripts/scripts:

local questCreatures =
{
   ["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 100, raceName = "Trolls"},
   ["frost troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 100, raceName = "Trolls"},
   ["furious troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15002, killsRequired = 100, raceName = "Trolls"},
   ["island troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15003, killsRequired = 100, raceName = "Trolls"},
   ["swamp troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15004, killsRequired = 100, raceName = "Trolls"},
   ["troll champion"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15005, killsRequired = 100, raceName = "Trolls"},
   ["troll legionnaire"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15006, killsRequired = 100, raceName = "Trolls"},
 
   ["goblin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 150, raceName = "Goblins"},
   ["goblin assassin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15008, killsRequired = 150, raceName = "Goblins"},
   ["goblin leader"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15009, killsRequired = 150, raceName = "Goblins"},
   ["goblin scavenger"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15010, killsRequired = 150, raceName = "Goblins"},
 
   ["rotworm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 300, raceName = "Rotworms"},
   ["carriom worm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15012, killsRequired = 300, raceName = "Rotworms"},
 
   ["cyclops"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15013, killsRequired = 500, raceName = "Cyclops"},
   ["cyclops smith"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15014, killsRequired = 500, raceName = "Cyclops"},
   ["cyclops drone"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15015, killsRequired = 500, raceName = "Cyclops"},
 
 
   ["crocodile"] = {questStarted = 1514, questStorage = 65004, creatureStorage = 15016, killsRequired = 300, raceName = "Crocodiles"},
 
   ["tarantula"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 300, raceName = "Tarantulas"},
 
   ["carniphila"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 150, raceName = "Carniphilas"},
 
   ["stone golem"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 200, raceName = "Stone Golems"},
 
   ["mammoth"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 300, raceName = "Mammoths"},
 
   ["ice golem"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 300, raceName = "Ice Golems"},
 
   ["quara predator scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara constrictor scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara hydromancer scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara mantassin scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 300, raceName = "Quaras Scout"},
   ["quara pincher scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 300, raceName = "Quaras Scout"},
 
   ["quara predator"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 300, raceName = "Quaras"},
   ["quara constrictor"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 300, raceName = "Quaras"},
   ["quara hydromancer"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 300, raceName = "Quaras"},
   ["quara mantassin"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15030, killsRequired = 300, raceName = "Quaras"},
   ["quara pincher"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15031, killsRequired = 300, raceName = "Quaras"},
 
   ["water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 70, raceName = "Water Elementals"},
   ["roaring water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15033, killsRequired = 70, raceName = "Water Elementals"},
   ["slick water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15034, killsRequired = 70, raceName = "Water Elementals"},
   ["massive water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15035, killsRequired = 70, raceName = "Water Elementals"},
 
   ["earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 70, raceName = "Earth Elementals"},
   ["jagged earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15037, killsRequired = 70, raceName = "Earth Elementals"},
   ["massive earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15038, killsRequired = 70, raceName = "Earth Elementals"},
   ["muddy earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15039, killsRequired = 70, raceName = "Earth Elementals"},
 
   ["energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15040, killsRequired = 70, raceName = "Energy Elementals"},
   ["charged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15041, killsRequired = 70, raceName = "Energy Elementals"},
   ["massive energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15042, killsRequired = 70, raceName = "Energy Elementals"},
   ["overcharged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15043, killsRequired = 70, raceName = "Energy Elementals"},
 
   ["fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 70, raceName = "Fire Elementals"},
   ["blazing fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 70, raceName = "Fire Elementals"},
   ["blistering fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 70, raceName = "Fire Elementals"},
   ["massive fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 70, raceName = "Fire Elementals"},
 
   ["mutated rat"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 200, raceName = "Mutated Rats"},
 
   ["giant spider"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 500, raceName = "Giant Spiders"},
 
   ["hydra"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 2000, raceName = "Hydras"},
 
   ["sea serpent"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15051, killsRequired = 2000, raceName = "Sea Serpents"},
 
   ["behemoth"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15052, killsRequired = 2000, raceName = "Behemoths"},
 
   ["serpent spawn"] = {questStarted = 1531, questStorage = 65021, creatureStorage = 15053, killsRequired = 1500, raceName = "Serpents Spawn"},
 
   ["green djinn"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15054, killsRequired = 500, raceName = "Green Djinns"},
   ["efreet"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15055, killsRequired = 500, raceName = "Green Djinns"},
 
   ["blue djinn"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15056, killsRequired = 500, raceName = "Blue Djinns"},
   ["marid"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15057, killsRequired = 500, raceName = "Blue Djinns"},
 
   ["pirate buccaneer"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15058, killsRequired = 3000, raceName = "Pirates"},
   ["pirate corsair"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15059, killsRequired = 3000, raceName = "Pirates"},
   ["pirate cutthroat"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15060, killsRequired = 3000, raceName = "Pirates"},
   ["pirate ghost"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15061, killsRequired = 3000, raceName = "Pirates"},
   ["pirate marauder"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15062, killsRequired = 3000, raceName = "Pirates"},
   ["pirate skeleton"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15063, killsRequired = 3000, raceName = "Pirates"},
 
   ["pirate buccaneer"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15064, killsRequired = 3000, raceName = "Pirates"},
   ["pirate corsair"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15065, killsRequired = 3000, raceName = "Pirates"},
   ["pirate cutthroat"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15066, killsRequired = 3000, raceName = "Pirates"},
   ["pirate ghost"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15067, killsRequired = 3000, raceName = "Pirates"},
   ["pirate marauder"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15068, killsRequired = 3000, raceName = "Pirates"},
   ["pirate skeleton"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15069, killsRequired = 3000, raceName = "Pirates"},
 
   ["minotaur"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15070, killsRequired = 5000, raceName = "Minotaurs"},
 
   ["necromancer"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15071, killsRequired = 4000, raceName = "Magicians"},
   ["priestess"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15072, killsRequired = 4000, raceName = "Magicians"},
 
   ["necromancer"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15073, killsRequired = 1000, raceName = "Magicians"},
   ["priestess"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15074, killsRequired = 1000, raceName = "Magicians"},
 
   ["demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15075, killsRequired = 6666, raceName = "Demons"}
}
 
local msgType = MESSAGE_STATUS_CONSOLE_ORANGE
 
function onKill(cid, target, lastHit)
 
local creature = questCreatures[getCreatureName(target):lower()]
 
   if creature then
      if isPlayer(target) then
         return true
      end
      if getCreatureStorage(cid, creature.questStarted) > 0 then
         if getCreatureStorage(cid, creature.questStorage) < creature.killsRequired then
            if getCreatureStorage(cid, creature.questStorage) < 0 then
               doCreatureSetStorage(cid, creature.questStorage, 0)
            end
 
            if getCreatureStorage(cid, creature.creatureStorage) < 0 then
               doCreatureSetStorage(cid, creature.creatureStorage, 0)
            end
            doCreatureSetStorage(cid, creature.questStorage, getCreatureStorage(cid, creature.questStorage) + 1)
            doCreatureSetStorage(cid, creature.creatureStorage, getCreatureStorage(cid, creature.creatureStorage) + 1)
            doPlayerSendTextMessage(cid, msgType, "" .. getCreatureStorage(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getCreatureStorage(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")
         end
      end
   end
   return true
end

 

Coloca em login.lua:

registerCreatureEvent(cid, "KillingInTheNameOf")

E em creaturescripts.xml coloca isso:

<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>

Diz se funcionou.

ficou a mesma coisa .

Link para o post
Compartilhar em outros sites

é só remover essa parte de todos os monsters que a tenha :

<script>

        <event name="KillingInTheNameOf"/>
</script>

faz isso ! Não lembro todos os monstros que tem , é só procurar.

Creio que todos os monster que tem o nome no script tem o registro.

 

é só excluir :D

vlw pela ajuda mano  (y)

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo