SkyLigh
Lorde-
Total de itens
2183 -
Registro em
-
Última visita
-
Dias Ganhos
23
Tudo que SkyLigh postou
-
Tem Duvida De Alguma Coisa Sobre Seu Serv?
tópico respondeu ao SkySeven de SkyLigh em Lixeira Pública
/\ boa -
Tem Duvida De Alguma Coisa Sobre Seu Serv?
tópico respondeu ao SkySeven de SkyLigh em Lixeira Pública
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 -
-- 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
-
pedido Ajuda . Alavanca Que Faz Sumir Pedras.
pergunta respondeu ao weverton1559 de SkyLigh em Scripts
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 -
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
-
Duvida sanada reportado
-
Qual a versao do map pra mim saber
-
duvida sanada reportado
-
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
-
tente http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/
-
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
-
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
-
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" />
-
pedido [Pedido] Npc De Troca 3 Items Por 1
pergunta respondeu ao gabrieldiaslopes de SkyLigh em Scripts
Flood ? pelo jeito você esta querendo flooda se você queresse esse sistema mesmo você pediria reportado -
Título irregular reportado É comando ou tile cara? E O tille dele que esta ruim
-
http://tibiastrike.com/showthread.php?347-Remere-s-Map-Editor-Beta-3-0
-
Double Topic reportado
-
http://www.xtibia.com/forum/topic/182853-860-baiak-jungle-com-donate/
-
Local incorreto reportado
-
Local incorreto reportado
-
Duvida sanada reportado
-
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.
