Ir para conteúdo

EdsonSilva

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    EdsonSilva deu reputação a xWhiteWolf em (Resolvido)[PEDIDO] Critical System   
    creaturescripts.xml
    <!-- CRITICAL SYSTEM -->    <event type="statschange" name="critical" event="script" value="critical.lua"/> creaturescripts\scripts\login.lua
    --- CRITICAL SYSTEM ---- registerCreatureEvent(cid, "critical") if getPlayerStorageValue(cid, 48903) == -1 then         setPlayerStorageValue(cid, 48903, 0)      end creaturescripts\scripts\critical.lua:
    -----[[Critical System                      by Night Wolf]] local lvlcrit = 48903 local multiplier = 1.5 function onStatsChange(cid, attacker, type, combat, value) if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isPlayer(attacker) and isCreature(cid) then if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then value = math.ceil(value*(multiplier)) doTargetCombatHealth(attacker, cid, combat, -value, -value, 255) doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144) return false end end return true end actions.xml:
    <action itemid="1294" script="criticalrock.lua"/> obs: muda o ID da pedra que vc for usar... aqui eu usei a small stone pra teste

    e em actions\scripts\criticalrock.lua:
    --- CRITICAL System by Night Wolf       local config = {    effectonuse = 14, -- efeito que sai    levelscrit = 100,  --- leveis que terão    storagecrit = 48903 -- storage que será verificado    }     function onUse(cid, item, frompos, item2, topos)     if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then    doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"You've Leveled your Critical Skill to ["..(getPlayerStorageValue(cid, config.storagecrit)+1).."/100].") setPlayerStorageValue(cid, config.storagecrit, getPlayerStorageValue(cid, config.storagecrit)+1) elseif getPlayerStorageValue(cid, config.storagecrit) >= config.levelscrit then doPlayerSendTextMessage(cid,22,"You've already reached the MAX level of Critical Skill.\nCongratulations!!!!")     return 0     end return 1 end OBS: Só funciona em ataques de players em players. Se vc ficar atacando monstro pra testar não vai dar certo (isso é porque o creaturescript só tá registrado no login.lua então o cid tem que necessariamente ser um player)
  2. Curtir
    EdsonSilva deu reputação a Fir3element em (Resolvido)[PEDIDO] Hp / Mp por porcentagem %%   
    Troca toda a função AddPlayerStats por essa:

    void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg) {     msg->AddByte(0xA0);     if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0)     {         msg->AddU16(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH)));         msg->AddU16(100);     }     else     {         msg->AddU16(0);         msg->AddU16(0);       }     msg->AddU32(uint32_t(player->getFreeCapacity() * 100));     uint64_t experience = player->getExperience();     if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp         msg->AddU32(0x7FFFFFFF);     else         msg->AddU32(experience);     msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL));     msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT));     if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0)     {         msg->AddU16(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA));         msg->AddU16(100);     }     else     {         msg->AddU16(0);         msg->AddU16(0);     }     msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL));     msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT));     msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL));     msg->AddU16(player->getStaminaMinutes()); }
  3. Gostei
    EdsonSilva deu reputação a KotZletY em (Resolvido)Como Criar Area Vip   
    data/movements/scripts e crie um arquivo em tipo lua chamado passe_vip.lua e adicione essa Script dentro do arquivo:
     
    Agora em data/movements e abra o arquivo chamado movements.xml  e adicione essa Tag: 
    <movevent type="StepIn" actionid="50008" event="script" value="passe_vip.lua"/> Editando o Script:  Abra o RME, e o Action id dessa tag acima, esse Actionid você coloca no piso, então só players vip irão passar pelo piso, que não for vip não passa!
     
    Creditos: Dentro do Script.
  4. Gostei
    EdsonSilva deu reputação a AdmAlexandre em Baiak Infinity By: Mayron   
    Baiak Infinity By Mayron

    Lembrando q esse era baiak ice by bryan

    Bem vamos começar, vamos ao mapa!
    Modifiquei o templo principal e tbm a city n é mais ice.
    Modifiquei tbm as area vips.
    Removi 100% dos bugs.
    Coloquei aqueles tps falantes mais com efeitos bem melhores.
    Adicionado Car System.
    Adicionado /additem.
    Adicionei loteria systema dando 3kk a cada 20 minutos.
    Criei novos treiners, eles estão aquentando bem mais pois tem muito mais vida.
    Criei novo Set Infinity.
    Criei uma area de evento para evento de bp ou de dados.
    Staff of baiak, vip wand e rod, infinity wand e infinity rod (Com novos efeitos muito melhores).
    Novo Npc Infinity Seller.
    Novo comando: !dance on.
    Novo evento em uma arena(vou explicar), o god fala, /arena x (x: é o numero de players q poderão ir para a quest) intão fika assim: por exemplo 5 players, /arena 5.
    Nova quest para os itens infinity.
    Players começando lvl 50, coloquei fast attack, mais n está tão exagerado, vocações balanceadas.
    Adicionei 2 novas Outfits para cada sexo, male: Rei e Montaria! Female: Borboleta e Rainha.
    Criei uma runa de trapar. Infinity prison rune.
    Todos os itens infinity no npc infinity seller.
    Acc do god: god/god


    aqui estão as fotos :

    http://www.4shared.c...ens_baiak.html?


    Novo Download do Server Sem Bugs:

    http://www.4shared.c...By_Mayron.html?



    Vamos aos Créditos:
    10% Bryaan pelo Mapa!
    10% Eu,Pelo Post!
    80% Mayron, Pelo Novo Server!


    Só não sei fazer scan mais n tem virus n confia ae.


    Se gostaram da um REP + ae, pois sou novo e quero melhorar!
    Galera com certeza quero suas Opiniões!
    Aceito seus Elogios e suas Criticas.
    Obrigado a Todos.

Informação Importante

Confirmação de Termo