Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. va em data / actions / scripts / e renomeie algum arquivo para vipadd e adicione function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end if item.itemid == 10309 then local days = 360 -- dias que serão adicionados doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end if item.itemid == 10310 then local days = 90 -- dias que serão adicionados doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end if item.itemid == 10311 then local days = 60 -- dias que serão adicionados doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end if item.itemid == 10312 then local days = 30 -- dias que serão adicionados doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end if item.itemid == 10314 then local days = 15 -- dias que serão adicionados doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end end dps em actions.xml <action itemid="10309" script="vipadd.lua"/> <action itemid="10310" script="vipadd.lua"/> <action itemid="10311" script="vipadd.lua"/> <action itemid="10312" script="vipadd.lua"/> <action itemid="10314" script="vipadd.lua"/> e pronto créditos GM Bekman (Por criar o script) Skyligh (Por editar o script pra adicionar com + de 1 item)
  2. hm to lgd que q se quer se vai criar a vip3 que so pode ser adicionada com itens ? vo tentar criar o script aki
  3. ver assim local interval = 0 local heals = { ['hp'] = 800, ['mana'] = 800, } ---- local interval = 1000 local function rot(cid,n,old) local tb_rot = {{0,2},{6,5},{1,3},{7,4},false} if isPlayer(cid) == FALSE or tb_rot[n] == nil or old.x ~= getCreaturePosition(cid).x or old.y ~= getCreaturePosition(cid).y then return false end if tb_rot[n] == false then doCreatureAddHealth(cid, heals['hp']) doCreatureAddMana(cid, heals['mana']) doSendMagicEffect(getCreaturePosition(cid), 3) addEvent(rot, interval,cid,2,old) return false end n = n+1 addEvent(rot, interval,cid,n,old) end function onSay(cid, words, param) if isInArray(cid) == TRUE then return FALSE end if getPlayerMaxMana(cid) and getCreatureHealth(cid) == getCreatureMaxHealth(cid)then doPlayerSendCancel(cid,"Your life and mana full") end addEvent(rot, interval,cid,1,getCreaturePosition(cid)) return FALSE end
  4. Cara você só pode colocar números no parâmetr
  5. Mais agr funciono?
  6. vo te explicar va em /data/lib/050-function.lua adicione function doSendAnimatedText(pos, value, color, player) if(not tonumber(value))then return error("arg #2 in doSendAnimatedText is not a number") end if(isPlayer(player))then doPlayerSendTextMessage(player, MESSAGE_EXPERIENCE, "", pos, value, color) else for _, v in ipairs(getSpectators(pos, 7, 5, true)) do if(isPlayer(v))then doPlayerSendTextMessage(v, MESSAGE_EXPERIENCE, "", pos, value, color) end end end end Créditos Spawn do vapus pronto assim agr o script vai funcionar
  7. como assim? n entendi
  8. título irregular reportado vo editar aki jaja eu posto Script local interval = 0 local heals = { ['hp'] = 800, ['mana'] = 800, } ---- local interval = 1000 local function rot(cid,n,old) local tb_rot = {{0,2},{6,5},{1,3},{7,4},false} if isPlayer(cid) == FALSE or tb_rot[n] == nil or old.x ~= getCreaturePosition(cid).x or old.y ~= getCreaturePosition(cid).y then return false end if tb_rot[n] == false then doCreatureAddHealth(cid, heals['hp']) doCreatureAddMana(cid, heals['mana']) doSendMagicEffect(getCreaturePosition(cid), 3) addEvent(rot, interval,cid,2,old) return false end n = n+1 addEvent(rot, interval,cid,n,old) end function onSay(cid, words, param) if isInArray(cid) == TRUE then return FALSE end addEvent(rot, interval,cid,1,getCreaturePosition(cid)) return FALSE end if getCreatureMaxHealth(cid) and getPlayerMaxMana(cid) then doPlayerSendTextMessage(cid, 22 , "Desculpe mais sua mana ja esta full") end
  9. Pronto achei o tutorial http://vapus.net/for...player%5D-4422/ e site gringo mais da pra entender adiciona na lib
  10. Acho que nao que essa function e narutal em todos os sv o map que voce pego antes de editar ja nao havia a ver vou procurar algum tutorial pra como adicionar ela
  11. Acho que o problema e que seu sv n tem esta function verifique isto tente com outro sv de test
  12. tente assim function onThink(cid, interval, lastExecution) local config = { positions = { [".X"] = { x = 155, y = 52, z = 7 }, ["A"] = { x = 723, y = 24, z = 7 }, ["2"] = { x = 706, y = 24, z = 7 }, ["19"] = { x = 224, y = 380, z = 7 }, ["BY"] = { x = 224, y = 381, z = 7 }, } } for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end e oq eu uso no meu ot
  13. Esse hook do membro em destaque Ele causa muitos problemas como o lord disse sao milhares de membros no fórum e vai ser difícil escolher 1 este hook e bom pra fórum com movimento baixo ... so que também ele pode ter uma ideia de so concorrer entre os membros da equipe
  14. Eu nunca usei um windows 2003 mas nao custa tentar
  15. SkyLigh

    Quem Acerta Do Rep +

    O que é um pontinho verde no Polo Norte?
  16. vo criar uma agr so pra gastar n uso a mt tempo raramente eu uso
  17. errei eu tava pensando nele ruhehuehuehuehuehue
  18. O Melhor anti-nuker pra mim e o firewall ajuda mt
  19. SkyLigh

    Reset Que Da Iten!

    Jgz0z posta o script la por pm que eu n tenho mas no pc
  20. Que erro da e no lougout here? algo assim ? em certas pos?
  21. duvida sanada reportado
  22. puts as minhas ficaram um lixo com akela foto
  23. Pronto local config = { money = 2900, item = 7368, -- ID do item que vai vender count = 20, -- Quantidade outift = 128, -- o id da newtype que precisa addons = 3 -- quantidade de addons que necessita exemplo citizen com o addon 1 e 2 } function onUse(cid, item, fromPosition, itemEx, toPosition) pos = getCreaturePosition(cid) if item.itemid == 1945 then if doPlayerRemoveMoney(cid, config.money) == TRUE then if getCreatureOutfit(cid,config.outift,config.addons) then doPlayerAddItem(cid, config.item, config.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você acaba de comprar "..config.count.." "..getItemNameById(config.item)..".") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Desculpe, mais você nao tem dinheiro suficiente , ou nao tem a outift que precisa.") doSendMagicEffect(pos, CONST_ME_POFF) end end end end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...