Ir para conteúdo

Rafael Mateus

Membro
  • Registro em

  • Última visita

Solutions

  1. Rafael Mateus's post in (Resolvido)[RESOLVIDO] como fazer pra quando os chares morrerem dropar tudo 100% was marked as the answer   
    vai em config.lua e muda pra 100
    deathLostPercent = 5
  2. Rafael Mateus's post in (Resolvido)Como Colocar Mais Hp No Bixo was marked as the answer   
    <?xml version="1.0" encoding="UTF-8"?>
    <monster name="Aladin Maldito" nameDescription="Aladin Maldito" race="undead" experience="9000000" speed="50000"

    manacost="0">
        <health now="40000000" max="40000000"/> -- Alterei Jah o Hp Pra Voce Se Gosta Pode Deixar Assim
        <look type="80" head="0" body="94" legs="79" feet="79" corpse="6068"/>
        <targetchange interval="10000" chance="20"/>
        <strategy attack="9200000000" defense="100000000"/>
        <flags>
            <flag summonable="0"/>
            <flag attackable="10000000"/>
            <flag hostile="1"/>
            <flag illusionable="0"/>
            <flag convinceable="0"/>
            <flag pushable="0"/>
            <flag canpushitems="1"/>
            <flag canpushcreatures="1"/>
            <flag staticattack="9000000008"/>
            <flag targetdistance="1"/>
            <flag runonhealth="0"/>
        </flags>
        <attacks>
            <attack name="melee" interval="2000" min="-1500" max="-2000"/>
            <attack name="fire" interval="3000" chance="35" range="7" radius="7" target="1" min="-900" max="-1500">
                <attribute key="shootEffect" value="fire"/>
                <attribute key="areaEffect" value="firearea"/>
            </attack>
            <attack name="melee" interval="1800000" chance="40" range="7" radius="5" target="0" min="6665451212120"

    max="4658122121200">
                <attribute key="areaEffect" value="blackspark"/>
            </attack>
            <attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-300" max="-1000">
                <attribute key="areaEffect" value="energy"/>
            </attack>
            <attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-300" max="-500">
                <attribute key="areaEffect" value="greenshimmer"/>
            </attack>
            <attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-350" max="-

    500">
                <attribute key="areaEffect" value="rednote"/>
            </attack>
            <attack name="physical" interval="2000" chance="20" radius="14" target="0" min="-300" max="-450">
                <attribute key="areaEffect" value="bluebubble"/>
            </attack>
            <attack name="melee" interval="3000" chance="15" range="7" radius="3" target="0" min="65465200"

    max="4564156300">
                <attribute key="areaEffect" value="blueshimmer"/>
            </attack>
        </attacks>
        <defenses armor="55" defense="65">
            <defense name="healing" interval="3000" chance="60" min="300000" max="800000"> ------- so aumenta aki
                <attribute key="areaEffect" value="blueshimmer"/>
            </defense>
            <defense name="speed" interval="4000" chance="80" speedchange="440" duration="6000">
                <attribute key="areaEffect" value="redshimmer"/>
            </defense>
        </defenses>
        <elements>
            <element firePercent="100"/>
            <element earthPercent="100"/>
            <element energyPercent="100"/>
            <element deathPercent="60"/>
            <element physicalPercent="40"/>
            <element icePercent="-25"/>
        </elements>
        <immunities>
            <immunity paralyze="1"/>
            <immunity invisible="1"/>
        </immunities>
        <summons maxSummons="6">
            <summon name="Demon" interval="4000" chance="33"/>
        </summons>
        <voices interval="5000" chance="30">
            <voice sentence="I AM ABOMINATOR, LORD OF THE TRIANGLE... AND YOU ARE LOST!" yell="1"/>
            <voice sentence="MY SEED IS FEAR AND MY HARVEST ARE YOUR SOULS!" yell="1"/>
            <voice sentence="THE TRIANGLE OF TERROR WILL RISE!" yell="1"/>
            <voice sentence="ZATHROTH! LOOK AT THE DESTRUCTION I AM CAUSING IN YOUR NAME!" yell="1"/>
        </voices>
        <loot>
            <item id="2160" countmax="20" chance="100000"/><!-- gold coin -->
            <item id="2148" countmax="90" chance="50000"/><!-- gold coin -->
            <item id="2143" countmax="5" chance="10000"/><!-- white pearl -->
            <item id="2396" chance="19429"/><!-- ice rapier -->
            <item id="2462" chance="20000"/><!-- devil helmet -->
            <item id="2214" chance="16000"/><!-- ring of healing -->
            <item id="2003" chance="100000"><!-- grey backpack -->
                <inside>
                    <item id="2495" chance="6000"/><!-- demon legs -->
                    <item id="2387" chance="20000"/><!-- double axe -->
                    <item id="2393" chance="60000"/><!-- giant sword -->
                    <item id="2195" chance="16033"/><!-- boots of haste -->
                    <item id="2421" chance="7000"/><!-- thunder hammer -->
                    <item id="2522" chance="5600"/><!-- great shield -->
                    <item id="2192" chance="24000"/><!-- crystal ball -->
                               <item id="2112" chance="4100"/> --addon doll
                </inside>
            </item>
        </loot>
    </monster>
  3. Rafael Mateus's post in (Resolvido)NPC que teleporta was marked as the answer   
    data/npc/scripts local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)   function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end   local travelNode = keywordHandler:addKeyword({'saffron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Saffron, are you sure?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler,  level = 1, cost = 0, destination = {x=1053, y=1053, z=7} })  travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})    keywordHandler:addKeyword({'travel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to Saffron.'})         -- Makes sure the npc reacts when you say hi, bye etc.         npcHandler:addModule(FocusModule:new())   data/npc <?xml version="1.0" encoding="UTF-8"?> <npc name="nome do npc" script="data/npc/scripts/nome lua.lua" walkinterval="2000" speed="0" floorchange="0"> <health now="100" max="100"/> <look type="206" head="19" body="113" legs="95" feet="115" addons="0"/>   <parameters>     <parameter key="message_greet" value="Welcome on board, Sir |PLAYERNAME|. Do you want to {travel}?" />   </parameters> </npc>
  4. Rafael Mateus's post in (Resolvido)Como mudar looktype de um player quando morrer {Help} was marked as the answer   
    Vai Em data/creaturescripts/scripts Cria Um Lua Com Nome niwdeath.lua
    e coloca isso dentro:
     
    local table = {
    [1] = 2882, --- [1] Vocation 2882 == ID Do Corpse
    [2] = 2882 

    }

    local function transform(pos, id, voc)
    local item = getTileItemById(pos, id)
    if item and item.uid > 1 then
    doTransformItem(item.uid, table[voc])
    doDecayItem(item.uid or 0)
    end
    end

    function onDeath(cid, corpse)
    if not isPlayer(cid) or not table[getPlayerVocation(cid)] then return true end
    addEvent(transform, 15, getThingPos(cid), corpse.itemid, getPlayerVocation(cid))
    return true
    end
     
    Depois Vai Em Login.lua e Coloca Isso:
     
    registerCreatureEvent(cid, "Niwdeath")
     
    Depois Vai creaturescripts.xml e coloca Isso Dentro:
     
    <event type="death" name="Niwdeath" event="script" value="niwdeath.lua"/>

Informação Importante

Confirmação de Termo