Ir para conteúdo

mateus010

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    mateus010 deu reputação a luanluciano93 em Imagem da Copa   
    Créditos: Mateus Gouveia (meu primo)

    Esperamos ter ajudado!
  2. Gostei
    mateus010 deu reputação a luanluciano93 em (Resolvido)[pedido] Npc que troca um item por outro..   
    Não sei se você entende um pouco, e vai saber implementar o script e configura-lo, qualquer duvida poste aqui ...

     
    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 function change(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local config = { STORAGE = 85222, ITEM = {2160, 1}, REWARD = {2160, 1} } if getPlayerStorageValue(cid, config.STORAGE) == 0 then if getPlayerItemCount(cid, config.ITEM[1]) >= config.ITEM[2] then if doPlayerRemoveItem(cid, config.ITEM[1], config.ITEM[2]) then npcHandler:say('Here is your item!', cid) setPlayerStorageValue(cid, config.STORAGE, 1) doPlayerAddItem(cid, config.REWARD[1], config.REWARD[2]) end else npcHandler:say('You don\'t have these items!', cid) end else npcHandler:say('VocÊ já pegou seu item', cid) end end local node1 = keywordHandler:addKeyword({'change'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Welcume lil. Me can do unbroken but Big Ben want gold 5000 and Big Ben need a lil time to make it unbroken. Yes or no??'}) node1:addChildKeyword({'yes'}, change, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) npcHandler:addModule(FocusModule:new())
  3. Gostei
    mateus010 deu reputação a luanluciano93 em (Resolvido)Aparecer pk, pk red no gesior   
    Depois disso: 
    $number_of_players_online++; Add isso: 
    $skull = ''; if ($player['skull'] == 4) $skull = "<img style='border: 0;' src='./images/skulls/redskull.gif'/>"; elseif ($player['skull'] == 5) $skull = "<img style='border: 0;' src='./images/skulls/blackskull.gif'/>";  
    E isso: 
    <TD WIDTH=70%>'.$flag.'<A HREF="index.php?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</A></TD> Troque por isso: 
    <TD WIDTH=70%>'.$flag.'<A HREF="index.php?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].''.$skull.'</A></TD> Acho que é só isso, teste  e me avise!
  4. Gostei
    Acho que vocês teria que criar 1 por 1, para facilitar faz assim:

    Crie um movements assim:

     
    function onStepIn(cid, item, position, fromPosition) if isPlayer(cid) then doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) end return true end Defina uma action id e coloque essa action id em todos os teleports que tu fizer, ai você define onde o player irá pelo RME mesmo, no teleport, e define o tipo de efeito ali no script ... 

Informação Importante

Confirmação de Termo