Ir para conteúdo

Featured Replies

Postado

Estou tentando fazer uma quest, para poderem passar e pegar o bau é preciso matar um boss, achei um script ai na internet e coloquei ele, mas quando o monstro morre ele não deixa nenhuma mensagem oque pode ser?

 

 

Script:

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="The Chakra Bijuu Control" nameDescription="The Chakra Bijuu Control" race="blood" experience="8000" speed="450" manacost="0">
 <health now="76065000" max="76065000"/>
<look type="124" head="0" body="94" legs="79" feet="79" corpse="2815"/>
<targetchange interval="5000" chance="50"/>
<strategy attack="90" defense="20"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="65"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="800" min="-550" max="-640"/>
<attack name="manadrain" interval="1000" chance="10" range="7" min="-760" max="-815">
<attribute key="areaEffect" value="redshimmer"/>
 
</attack>
<attack name="Bijuu Furie" interval="1000" chance="100" radius="4" target="0" min="-8340" max="-10600">
</attack>
<attack name="Bijuu Punch" interval="2000" chance="100" target="0" min="-8440" max="-10100">
</attack>
<attack name="Biju Dama" interval="2000" chance="100" target="0" min="-10440" max="-13100">
</attack>
</attacks>
<defenses armor="110" defense="110">
<defense name="healing" interval="2000" chance="40" min="300" max="300">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="4000" chance="40" speedchange="600" duration="4000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element physicalPercent="20"/>
<element icePercent="10"/>
<element holyPercent="-15"/>
<element deathPercent="35"/>
</elements>
<immunities>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence=".." yell="1"/>
</voices>
<loot>
</loot>
<script>
<event name="chakrabijuu"/>
</script>
</monster>

Aqui é em creaturescript:

 

local tps = {

                        ["The Chakra Bijuu Control"] = {pos = {x=320, y=2017, z=7}, toPos = {x=174, y=2019, z=7}, time = 50},
}
local function removeTp(tp)
local t = getTileItemById(tp.pos, 1026).uid
return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
function onDeath(cid)
                        local tp = tps[getCreatureName(cid)]
                        if tp then
                        doCreateTeleport(1026, tp.toPos, tp.pos)
                        doCreatureSay(cid, "Hahaha, Voltarei!!..O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1)
                        addEvent(removeTp, tp.time*1000, tp)
                        end
                        return true
end

 

Postado

Tente esse:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="The Chakra Bijuu Control" nameDescription="The Chakra Bijuu Control" race="blood" experience="8000" speed="450" manacost="0">
 <health now="76065000" max="76065000"/>
<look type="124" head="0" body="94" legs="79" feet="79" corpse="2815"/>
<targetchange interval="5000" chance="50"/>
<strategy attack="90" defense="20"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="65"/>
<flag runonhealth="0"/>
</flags>
<script>
<event name="chakrabijuu"/>
</script>
<attacks>
<attack name="melee" interval="800" min="-550" max="-640"/>
<attack name="manadrain" interval="1000" chance="10" range="7" min="-760" max="-815">
<attribute key="areaEffect" value="redshimmer"/>
 
</attack>
<attack name="Bijuu Furie" interval="1000" chance="100" radius="4" target="0" min="-8340" max="-10600">
</attack>
<attack name="Bijuu Punch" interval="2000" chance="100" target="0" min="-8440" max="-10100">
</attack>
<attack name="Biju Dama" interval="2000" chance="100" target="0" min="-10440" max="-13100">
</attack>
</attacks>
<defenses armor="110" defense="110">
<defense name="healing" interval="2000" chance="40" min="300" max="300">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="4000" chance="40" speedchange="600" duration="4000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element physicalPercent="20"/>
<element icePercent="10"/>
<element holyPercent="-15"/>
<element deathPercent="35"/>
</elements>
<immunities>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence=".." yell="1"/>
</voices>
<loot>
</loot>
</monster>
 
 
 
 
Caso não der adicione esse tbm:
 
local tpId = 5023
local tps = {
        ["The Chakra Bijuu Control] = {pos = {x=320, y=2017, z=7}, toPos = {x=174, y=2019, z=7}, time = 50},
}
 
function removeTp(tp)
        local t = getTileItemById(tp.pos, tpId)
        if t then
                doRemoveItem(t.uid, 1)
                doSendMagicEffect(tp.pos, CONST_ME_POFF)
        end
end
 
function onDeath(cid)
        local tp = tps[getCreatureName(cid)]
        if tp then
                doCreateTeleport(tpId, tp.toPos, tp.pos)
                doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1)
                addEvent(removeTp, tp.time*1000, tp)
        end
        return TRUE
end

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

Postado
local boss = {
    ["The Chakra Bijuu Control"] = {destiny = {x=174, y=2019, z=7}, time = 50, portalid = 1026}
}

function removePortal(pos)
    doRemoveThing(getTileItemById(pos, b.portalid).uid, 1)
    return true
end

function onDeath(cid)
    local b, pos = boss[getCreatureName(cid)], getCreaturePosition(cid)
    if b then
        doSendMagicEffect(pos, CONST_ME_TELEPORT)
        doCreateTeleport(b.portalid, b.destiny, pos)
        addEvent(removePortal, b.time*1000, pos)
        doCreatureSay(cid, "Hahaha, Voltarei!!..O teleport irá sumir em "..b.time.." segundos.", TALKTYPE_ORANGE_1)
    end
    return true
end

The corrupt fear us.

The honest support us.

The heroic join us.

  • 10 months later...
Postado
Em 17/12/2014 23:21:47, Wise disse:

local boss = {
    ["The Chakra Bijuu Control"] = {destiny = {x=174, y=2019, z=7}, time = 50, portalid = 1026}
}

function removePortal(pos)
    doRemoveThing(getTileItemById(pos, b.portalid).uid, 1)
    return true
end

function onDeath(cid)
    local b, pos = boss[getCreatureName(cid)], getCreaturePosition(cid)
    if b then
        doSendMagicEffect(pos, CONST_ME_TELEPORT)
        doCreateTeleport(b.portalid, b.destiny, pos)
        addEvent(removePortal, b.time*1000, pos)
        doCreatureSay(cid, "Hahaha, Voltarei!!..O teleport irá sumir em "..b.time.." segundos.", TALKTYPE_ORANGE_1)
    end
    return true
end

O que estava errado no codigo dele antigo? Só vi algumas variaveis mudando de nome... Sabe me dizer? Vlws

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.6k

Informação Importante

Confirmação de Termo