

SkyLigh
Lorde-
Total de itens
2183 -
Registro em
-
Última visita
-
Dias Ganhos
23
Tudo que SkyLigh postou
-
Resumindo: eu sou um docinhuu' hihi' aff'
-
Ficou ótimo skymagnum parabéns
-
goiaba , jujuba
-
duvida sanada reportado
-
http://www.xtibia.com/forum/topic/160711-weapons-adicionar-skills-ou-ml/ ver isto
-
Parabéns Ótimo Servidor Aprovado
-
duvida sanada reportado
-
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 getCreatureMaxHealth(cid) then doPlayerSendCancel(cid,"Your life and mana full") end addEvent(rot, interval,cid,1,getCreaturePosition(cid)) return FALSE end if getCreatureMaxHealth(cid) then if getPlayerMaxMana(cid) then doPlayerSendTextMessage(cid, 22 ,"Desculpe Voce ja tem a mana full") end return true end
-
Luck o script continua sem funcionar so de vista da pra perceber
-
voce configuro ja na storage?
-
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)
-
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
-
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
-
Cara você só pode colocar números no parâmetr
-
Mais agr funciono?
-
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
-
como assim? n entendi
-
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
-
Pronto achei o tutorial http://vapus.net/for...player%5D-4422/ e site gringo mais da pra entender adiciona na lib
-
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
-
Acho que o problema e que seu sv n tem esta function verifique isto tente com outro sv de test
-
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
-
Duvida sanada reportado
- 5 respostas
-
- lider fala com toda guild.
- otserv
- (e 1 mais)
-
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
-
[Encerrado] Ot Seguro - Valendo 5 Rep Para A Melhor Resposta
tópico respondeu ao Spectrusz de SkyLigh em Tópicos Sem Resposta
Eu nunca usei um windows 2003 mas nao custa tentar
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.