Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. lol ai ja e de mais tem cara divulgando fórum aki no xtibia area errada na verdade nem existe area pra isso vai ganhar seu publico
  2. SkyLigh

    Sistem Vip

    -- Script SYtem vip 2.0 -- function onSay(cid, words, param) if(words == "!vipdays") then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 4003) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.") if getPlayerVocation(cid) <= 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 4003) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local name = getCreatureName(player) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 4003) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) if string.find(tostring(getCreatureName(pid)),"[[Vip]]") then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 4003, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") else setPlayerStorageValue(player, 4003, time) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(player)..";") doRemoveCreature(player) end end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. if(getPlayerStorageValue(C.uid,4003) < C.time)then if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,4003,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end end
  3. o script e action function onUse(cid, item) local pos = {x=160,y=154,z=7} -- pos de onde vai sumir a 1 pedra local pos = {x=160,y=154,z=7} -- pos de onde vai sumir a 2 pedra local pos = {x=160,y=154,z=7} -- pos de onde vai sumir a 3 pedra local pos = {x=160,y=154,z=7} -- pos de onde vai sumir a 4 pedra doRemoveItem(getThingfromPos(cid,pos).uid,1) doPlayerSendTextMessage(cid, 23, "PEDRAS LIBERADAS") return true end e no actions.xml poem a tag do item
  4. SkyLigh

    System Vip Simples

    veja este que o sky posto http://www.xtibia.com/forum/topic/164269-vip-no-nome/
  5. SkyLigh

    System Vip Simples

    tipo se por o nick vip ai a vip acaba o nick vai continuar ai buga tudo
  6. SkyLigh

    System Vip Simples

    Tente com este o da vip http://www.xtibia.com/forum/topic/138512-item-que-adiciona-vip-time/ Npc http://www.xtibia.com/forum/topic/191796-npc-que-usa-outro-item-como-dinheiro/ ai dps se cria os itens e poem no script quanto cada 1 vai adicionar
  7. Duvida sanada reportado
  8. SkyLigh

    Mapa Da Poi

    Qual a versao do map pra mim saber
  9. SkyLigh

    Tiles vip

    duvida sanada reportado
  10. SkyLigh

    Tile Vip

    duvida sanada reportado
  11. SkyLigh

    Tile Vip

    Teteu essa function e que vai detectar se ele e vip ou nao pra o script funcionar ali aonde ta 13545 voce vai tenque por a storage da vip que vai ser em numeros os memos numeros que voce por ali vai por no movements.xml e vai por no tille
  12. SkyLigh

    Tiles vip

    tente http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/
  13. SkyLigh

    Tile Vip

    ata function onStepIn(cid, item, position, fromPosition) local config = { pos = {x=160,y=54,z=7} -- position } if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then return TRUE end if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then doTeleportThing(cid, config.pos) doPlayerPopupFYI(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips") return TRUE end end
  14. SkyLigh

    Tile Vip

    Ok ! function onStepIn(cid, item, position, fromPosition) local config = { } if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then return TRUE end if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true)doPlayerPopupFYI(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips") return TRUE end end
  15. SkyLigh

    Tile Vip

    Criei um de 2 maneira oq você escolhe pra onde vai e um que vai pra traís primeiro oq vai pra traís function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 22 ,"Bem Vindo A Area Vip") else doPlayerSendTextMessage(cid, 22 ,"Desculpe Camelo Voce Nao E Vip ") end return true end segundo oq voce escolhe a pos function onStepIn(cid, item, position) local pos = {x=160,y=54,z=7} -- pos para onde vai teleporta if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then doTeleportThing(cid, pos, true) doPlayerSendTextMessage(cid, 22 ,"Bem Vindo A Area Vip") else doPlayerSendTextMessage(cid, 22 ,"Desculpe Camelo Voce Nao E Vip ") end return true end agora no movements.xml <movevent event="StepIn" actionid=STORAGE DA VIP" script="NOME DO ARQUIVO.lua" />
  16. Flood ? pelo jeito você esta querendo flooda se você queresse esse sistema mesmo você pediria reportado
  17. SkyLigh

    Tiles vip

    Título irregular reportado É comando ou tile cara? E O tille dele que esta ruim
  18. http://tibiastrike.com/showthread.php?347-Remere-s-Map-Editor-Beta-3-0
  19. Double Topic reportado
  20. http://www.xtibia.com/forum/topic/182853-860-baiak-jungle-com-donate/
  21. Local incorreto reportado
  22. SkyLigh

    Island

    Local incorreto reportado
  23. Duvida sanada reportado
  24. Veih para de fazer flood ajuda o mlk que q custa ? @KennyxD eu to procurando aki no meu pc que eu tenho jaja eu posto Pronto kenny achei http://speedy.sh/MeK...apTracker-1.rar
  • Quem Está Navegando   0 membros estão online

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