Ir para conteúdo
Banner com Efeitos

lucasvtr1

Membro
  • Registro em

  • Última visita

Solutions

  1. lucasvtr1's post in (Resolvido)Modificaçao no script was marked as the answer   
    Substitui o sue por esse e se der certo me avisa!
    local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, 1) local damageTable1 = { {3, -600}, --- 3 é a quantidate de danos, e 600 é o dano, voce pode mudar ai como quiser. {3, -600}, --- mesma coisa em baixo {4, -600}, --- a soma tem q dar 10 porque 10 *1000 é 10000 o tempo que cria o item denovo } for i = 1, #damageTable1 do local t = damageTable1[i] addDamageCondition(poison, t[1], 1000, t[2]) -- 1000 é o tempo entre os damages end function onUse(cid, item, frompos, item2, topos) local1 = {x=1349, y=876, z=14, stackpos=2} item1 = {x=1330, y=878, z=14, stackpos=1} item2 = {x=1330, y=879, z=14, stackpos=1} getitem1 = getThingfromPos(item1) getitem2 = getThingfromPos(item2) getlocal1 = getThingfromPos(local1) if item.uid == 7213 and item.itemid == 5058 then doTransformItem(item.uid,item.itemid-1) end getlocal1 = getThingfromPos(local1) if(getlocal1.itemid == 5057 and getitem1.itemid == 1304) then doRemoveItem(getitem1.uid,1) doRemoveItem(getitem2.uid,1) doAddCondition(cid, poison) --- aqui é a condiçao no script. addEvent(function() if(getlocal1.itemid == 5057) then doCreateItem(1304,1,item1) doCreateItem(1304,1,item2) doTransformItem(getlocal1.uid,5058) end end, 10000) end return true end Ok?
     
  2. lucasvtr1's post in (Resolvido)Editando Talkaction para Adiconar/Remover Storage na Conta. was marked as the answer   
    Olha tenho um Script de Storage aqui, Quem sabe com ele você possa remover dos Players: 
    Add isso em data/Talkactions com nome storage.lua
    ---Storage Code without Credidts....------ function onSay(cid, words, param) local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local tid = getPlayerByNameWildcard(t[1]) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.") return true end if(not t[3]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, " [" .. t[1] .. " - " .. t[2] .. "] = " .. getPlayerStorageValue(tid, t[2])) else setPlayerStorageValue(tid, t[2], t[3]) end return true end e em Talk actions XML adiciona:
    <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>  Para utilizar é so Dizer:
      se quiser só ver o storage do player exemplo: 5454
    /storage (player name), 5454
    se quiser adicionar:
    /storage (player name),5454,1
    se quiser remover
    /storage (player name,5454,-1
     
    Abraços espero ter ajudado
     
     

Informação Importante

Confirmação de Termo