Ir para conteúdo

Dwarfer

Membro
  • Registro em

  • Última visita

Solutions

  1. Dwarfer's post in (Resolvido)Ajuda, Comprando via site dizendo que não tem cap! was marked as the answer   
    Tente assim:
     
     
  2. Dwarfer's post in (Resolvido)Não se potar dentro do pz was marked as the answer   
    Agora entendi.
     
     
  3. Dwarfer's post in (Resolvido)[PEDIDO] Limite de skill was marked as the answer   
    Em creaturescripts/scripts crie um arquivo:
     
    limitskill.lua
     
     
    No login.lua, adicione: registerCreatureEvent(cid, "LimitSkill")
     
    Crie outro arquivo.lua em creaturescripts/scripts:
     
    checklimit.lua
     
    function onLogin(cid) for i = 0, 5 do if getPlayerStorageValue(cid, 19870 + i) == 1 then doPlayerSetRate(cid, i, 0.0) end end return true end Adicione as tags no creaturescripts.xml:
     
     <event type="advance" name="LimitSkill" event="script" value="limitskill.lua"/>
     <event type="login" name="CheckLimit" event="script" value="checklimit.lua"/>
     
  4. Dwarfer's post in (Resolvido)Pedido de 2 Movements was marked as the answer   
    Ring
    Em movements/scripts, crie um arquivo.lua:
     
     
     
    Adicione a tag no movements.xml: <movevent type="Equip" itemid="ID_DO_RING slot="ring" event="script" value="NOME_DO_ARQUIVO.lua"/>
     
    Piso
    Em movements/scripts, crie um arquivo.lua:
     
     
     
    Adicione a tag no movements.xml: <movevent type="StepIn" actionid="ACTION_ID_DO_PISO" event="script" value="NOME_DO_ARQUIVO.lua"/>
  5. Dwarfer's post in (Resolvido)[PEDIDO] Não passar encima de item was marked as the answer   
    Em movements/scripts, crie um arquivo e coloque:
     
    function onStepIn(creature, item, position, fromPosition) if position.z == fromPosition.z then creature:teleportTo(fromPosition, false) end return true end  
    Adicione a tag no movements.xml: <movevent event="StepIn" itemid="ID_DO_POT" script="NOMEDOARQUIVO.lua" />
  6. Dwarfer's post in (Resolvido)[PEDIDO] Trap item ao pisar was marked as the answer   
    Aqui:
     
    local t = {id = 13176, time = 2 } function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end item:remove(1) creature:setItemOutfit(t.id, t.time*1000) mayNotMove(creature, 1) addEvent(function() if creature:isPlayer() then mayNotMove(creature, 0) end end, t.time*1000) return true end function mayNotMove(cid, type) pos = getCreaturePosition(cid) if(type == 0) then pos.x = FALSE end function check() if(pos.x ~= FALSE) then if(getCreaturePos(cid)~=pos) then doTeleportThing(cid, pos) end addEvent(check, 100) end end check() end  
  7. Dwarfer's post in (Resolvido)Double Exp Potion Falhando was marked as the answer   
    Ok, consertei e aproveitei para retirar algumas partes que ao meu ver eram desnecessárias.
     
     
  8. Dwarfer's post in (Resolvido)Use item com multiplas storage was marked as the answer   
    local t = { [1111] = {stor = 11111, voc_id = 1}, -- [ID_DO_ITEM] = STORAGE [2222] = {stor = 11112, voc_id = 2}, [3333] = {stor = 11113, voc_id = 3}, [4444] = {stor = 11114, voc_id = 4} } function onUse(cid, item, fromPosition, itemEx, toPosition) for _, k in pairs(t) do if getPlayerStorageValue(cid, k.stor) > 0 then doPlayerSendCancel(cid, "You already have an outfit.") return true end end setPlayerStorageValue(cid, t[item.itemid].stor, 1) doPlayerSetVocation(cid, t[item.itemid].voc_id) doCreatureSay(cid, "You received your outfit and vocation.", TALKTYPE_ORANGE_1) return true end Edite os ids dos itens e vocações, além dos storages.
  9. Dwarfer's post in (Resolvido)tile que substitui item was marked as the answer   
    local id, charges = 8584, 250 function onStepIn(cid, item, frompos, itemEx, topos) if getPlayerStorageValue(cid, 17743) ~= -1 then return true end if doPlayerRemoveItem(cid, id, 1) then local necklace = doPlayerAddItem(cid, id, 1) doItemSetAttribute(necklace, "charges", charges) setPlayerStorageValue(cid, 17743, 1) end return true end  
     <movevent type="StepIn" actionid="ACTIONID" event="script" value="NOMEDOARQUIVO.lua"/>
     
    Lembrando que o item deve ter o atributo <attribute key="charges" value="0" /> no items.xml.
     
  10. Dwarfer's post in (Resolvido)top fragger effect on player was marked as the answer   
    Hi. I had made a point of testing this code before sending it to you and worked correctly. It's not because they are "together" in only one script. Are you sure does your server have a guild with kills, right? Anyway, as you said, you can try them separated. 
     
     
     
     
    Use them in addition to the first.
     
  11. Dwarfer's post in (Resolvido)[VIP] no nome, faltando a parte do "old name" (nao criar o char com o mesmo nick) ajuda was marked as the answer   
    Acredito que para fazer a verificação no account manager, você teria que modificar algo nas sources do servidor. Uma alternativa é bloquear o player que tem o nome de um [VIP] e fazer ele alterar o nome.
     
    Em creaturescripts/scripts:
     
    checkName.lua
     
     
    Adicione a tag no creaturescripts.xml: <event type="login" name="NameVip" event="script" value="checkName.lua"/>
     
    Em talkactions/scripts:
     
    unlock.lua
     
     
     
    E em talkactions.xml: <talkaction words="!unlock" event="script" value="unlock.lua"/>
     
     
     
     
  12. Dwarfer's post in (Resolvido)Modificar script was marked as the answer   
    Aqui:
     
     
  13. Dwarfer's post in (Resolvido)sacrificio por storage was marked as the answer   
    Realmente, falha minha ali na verificação da storage, acabou que me passei. Com relação a voltar para a bp você não disse que teria que voltar. Segue com as modificações:
     
     
  14. Dwarfer's post in (Resolvido)SellHouse Com Escritura was marked as the answer   
    Provavelmente, é só mudar/adicionar em talkactions.xml: <talkaction words="!sellhouse" event="function" value="houseSell"/>
  15. Dwarfer's post in (Resolvido)Item agrupavel que ao clicar vira outro was marked as the answer   
    function onUse(cid, item, frompos, item2, topos) local item = 12608 -- id do item que precisa local qnt = 100 -- quantidade que precisa local new = 8978 -- id do novo item if getPlayerItemCount(cid, item) >= qnt then doPlayerSendTextMessage(cid, 24, "Parabéns, agora você possui a magic secret key.") doPlayerAddItem(cid, new, 1) doPlayerRemoveItem(cid, item, qnt) else doPlayerSendTextMessage(cid, 24, "Você não possui 100 quantidades de chaves necessárias") end end  
  16. Dwarfer's post in (Resolvido)Talckation de substituição was marked as the answer   
    Você acha que pode ser um problema se o player der o novo shield para um outro player? É possível fazer com que o player sempre pegue o seu shield antigo de volta, mas aí não dá pra evitar passar pra outro player. A não ser que faça o item se transformar no outro, mas aí você teria que adicionar decayTo e duration em todos os itens que queira. Enfim, veja aí se isso serve para você:
     
    Em talkactions/scripts:
     
    shieldMagic.lua
     
     
     
    Em talkactions.xml, adicione a tag: <talkaction words="!magic" event="script" value="shieldMagic.lua"/>
     
    Em creaturescripts/scripts:
     
    shieldBack.lua
     
     
     
    No login.lua:  registerCreatureEvent(cid, "ShieldMagic")
     
    Em creaturescripts.xml: <event type="think" name="ShieldMagic" event="script" value="shieldBack.lua"/>
     
     
     
     
     
     
     
     
     
     
     
  17. Dwarfer's post in (Resolvido)Script Porta que cheka item na BP was marked as the answer   
    Porta:
     
    Em actions/scripts:
     
    portaTP.lua
     
     
    Em actions.xml: <action actionid="ACTION_ID_DA_PORTA" script="portaTP.lua" />
     
    Baú:
     
    Em actions/scripts:
     
    bauItens.lua
     
     
     
    Em actions.xml: <action actionid="ACTION_ID_DO_BAU" script="bauItens.lua" />
     
     
     
     
     
     
     
     
     
     
     
     
     
  18. Dwarfer's post in (Resolvido)Script de Alavanca Check e Check Storage e Action Clean was marked as the answer   
    1. Script de Alavanca
     
    Em actions/scripts:
     
    leverItens.lua
     
     
    Em actions.xml, insira a tag: <action actionid="ACTION_ID_DA_ALAVANCA" script="leverItens.lua" />
     
    2. Checar storage e proibir passagem
     
    Em movements/scripts:
     
    checkStor.lua
     
     
    Em movements.xml, insira a tag: <movevent type="StepIn" actionid="ACTION_ID_DO_PISO" event="script" value="checkStor.lua"/>
     
    3. Apagar storages
     
    Em actions/scripts:
     
    cleanStor.lua
     
     
    Em actions.xml, insira a tag: <action itemid="ID_DO_ITEM" script="cleanStor.lua" />
     
    Não testei, qualquer erro, diz aí.
     
     
  19. Dwarfer's post in (Resolvido)Script de Sacrificio was marked as the answer   
    Não testei, faça assim:
     
    Em movements/scripts: 
     
    criaMonstro.lua
     
     
    Em movements.xml:
     
    <movevent type="AddItem" tileitem="1" actionid="ACTION_ID_DO_ITEM" event="script" value="criaMonstro.lua"/> 
     
    Edite o actionid que será colocado no coalbasin.

Informação Importante

Confirmação de Termo