Ir para conteúdo
  • Cadastre-se

gabrielzika

Membro
  • Total de itens

    482
  • Registro em

  • Última visita

  • Dias Ganhos

    9

Tudo que gabrielzika postou

  1. @ADM Mezenga Veja se é algo assim que você quer: function onUse(cid, item, frompos, item2, topos) local config = { storageAlready = 90909, storageRequired = 35100, effect = 66, msg = { success = "Parabens voce pegou sua Promotion.", invalid = "Voce ja pegou esta promotion (Aprendiz 1+Resets), Ou nao tem level suficiente.", } } if getPlayerStorageValue(cid, config.storageRequired) >= 1 then if getPlayerVocation(cid) == 5 then if getPlayerStorageValue(cid, config.storageAlready) == -1 then setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid, config.storag
  2. @louco3626 vc criou o arquivo neste local?? data/movements/scripts tem como enviar prints?
  3. @louco3626 cria o arquivo tileEvent.lua e cola isso dentro: local config = { actions = {10100, 10101}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = ge
  4. @louco3626 tileEvent.lua local config = { actions = {10100, 10101}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local po
  5. @louco3626 local config = { actions = {10130, 10131}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local pos = getCreaturePosi
  6. @louco3626Fala os ids dos pisos né mano, id do piso q ta ai e do piso q ele vai transformar
  7. @louco3626 em actions: 1200 é a actions do tile certo a se pisar e 1300 do tile que vai te matar. em tiles: 1200 é o id do tile normal e 1300 e do tile que ele vai virar quando pisar certo, só alterar aí é ir testando.. o resto deixa como está
  8. @louco3626 Ve se é isso(não testei): Em data/movements/scripts/ crie um arquivo chamado: tileEvent.lua local config = { actions = {1200, 1300}, -- Certo, Errado tiles = {1200, 1300}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and no
  9. @Theodorojose local config = { storage = 41651651, -- storage necessária para o script funcionar, aquele do npc. outfit_normal = {510, 511}, -- Male, Female outfit_mergulhador = {1034, 1035}, -- Male, Female speed = {320, 300, 100}, -- Normal, Player, Loss random = = math.random(1, 150), -- para randomizar a cor dos outfits. } function onStepIn(cid) if isRiderOrFlyOrSurf(cid) then doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[3]) end if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCreatureOutfit(c
  10. @Theodorojose local config = { storage = 41651651, -- storage necessária para o script funcionar, aquele do npc. outfit_normal = {510, 511}, -- Male, Female outfit_mergulhador = {1034, 1035}, -- Male, Female speed = {320, 300, 350, 100}, -- Normal, Player, Pokémon, Loss random = = math.random(1, 150), -- para randomizar a cor dos outfits. } function onStepIn(cid) if isRiderOrFlyOrSurf(cid) then doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[4]) end if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCr
  11. @Theodorojose mesmo esquema da outra função: function isWild(cid) return isMonster(cid) and not isSummon(cid) end
  12. @Theodorojose em data/lib/050-function.lua coloca isso na ultima linha embaixo do ultimo end: function isRiderOrFlyOrSurf(cid) return getPlayerStorageValue(cid, 17001) > 0 or getPlayerStorageValue(cid, 17000) > 0 or getPlayerStorageValue(cid, 63215) > 0 end
  13. @Pifafa Cria um arquivo chamado anuncio.lua em data/talkactions/scripts e cola isso dentro: local config = { storage = 19400, -- storage em que será salvo o tempo cor = "green", -- de acordo com o constant.lua da lib tempo = 60, -- em segundos itemid = 2159, --item que sera removido price = 1, -- quantidade de item que sera removido level = 1000 -- level necessario para poder utilizar o comando. } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if getPlayerLeve
  14. @Altairjr espero que seja isso(não testei plx) local combat_values = { ["none"] = -1, ["ice"] = 1, ["fire"] = 2, ["earth"] = 3, ["energy"] = 4, ["holy"] = 5, ["death"] = 6, } local config = { storage = 101010, time_storage = 101011, price = 1000000, delay = 0, wands = {12629, 12655, 12661, 12662, 12663, 12664, 12665}, msg = { help = "Use o comando exemplo: !wand holy Efeitos disponíveis: ice, fire, earth, energy, holy, death, e none para desabilitar. A troca para outro elemento custa 1kk.", invalid = "Por favor, digite um tipo valido.", changed = "O elemento da
  15. são realmente o mesmo id? <wand id="12655" level="8" mana="10" min="700" max="850" type="holy" event="function" value="default"> e <wand id="12665" range="8" lvl="8" mana="10" enabled="1" exhaustion="0" script="donatestaff.lua"> um tá 12655 e outro 12665 '-' comenta os ids de todas as wands certinho aqui pra mim colocar só para algumas especificas usarem o !wand e sobre cobrar, não está cobrando?? wtf kk tem o doPlayerRemoveMoney(cid, config.price)
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo