Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. Q? Nao entendi seu pedido se que copiar uma parte do map e vim os spawns juntos ?
  2. local incorreto reportado
  3. Local incorreto reportado pra moverem se quer q so god possa ? ou que players que troquem aki ta os 2 aki e oq o player troca http://www.xtibia.com/forum/topic/135178-talkaction-name-changer/ aki e oq o god troca http://www.xtibia.com/forum/topic/135219-pedido-troca-de-nome-com-o-god/
  4. Título irregular reportado e kda a imagem?
  5. keon voce ja mudou a database?
  6. Duvida sanada reportado
  7. local outfits = {1421, 1422, 1423, 1424, 1425} -- somente o lookType local copiar_cores = true -- se true, copia as cores da outfit que o player estava usando local intervalo_para_trocar_roupas = 1 * 1000 -- em ms, 1 * 1000 = 1 segundo local function doChangeOutfit(cid, id) if not isCreature(cid) then return true end local n = id or 1 local newOutfit = copiar_cores and getCreatureOutfit(cid) or {} newOutfit.lookType = outfits[n] doSetCreatureOutfit(cid, newOutfit, -1) if n < #outfits then addEvent(doChangeOutfit, intervalo_para_trocar_roupas, cid, n + 1) else doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_OUTFIT) end end function onSay(cid, words, param) if getCreatureCondition(cid, CONDITION_OUTFIT) and getCreatureNoMove(cid) then return true end doCreatureSetNoMove(cid, true) doChangeOutfit(cid) return true end if getCreatureOutfit(cid, outift) then local outift = 302 -- o looktype da outift doPlayerSendTextMessage(cid, 22 ,"Desculpe voce nao esta usando o outift que e necessario") return true end
  8. Título irregular reportado
  9. Agr o tópico e briga por causa de dragon ball ? so mas o gotenks super sayjin 4
  10. que n entendi nada pode explicar direito
  11. ta vo ver oq eu posso fazer
  12. Editei o script nao sei se vai funcionar agr que eu nao testei mas ai vai e no lugar do script das msg local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function thinkCallback(cid) local rand = math.random(1,100) if rand == 1 then selfSay('Posso ajudar?') -- msg que vai sair do npc selfSay('Bem vindo !') -- msg que vai sair do npc end return true end function greetCallback(cid) return true end if (getPlayerStorageValue(cid, storage) <= os.time()) then local ex = 20 -- quantos seg storage = 11548 -- nao mexa setPlayerStorageValue(cid,storage,os.time()+ex) return true end npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback) npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:addModule(FocusModule:new())
  13. Veih talvez o kamikaze dele ele n pego do seu ele pego do kamikaze verdadeiro
  14. Pronto aki esta
  15. Você quer so um npc que fique falando sem vender nada? se for isso va em data / npc / scripts / e ponha o nome de algum arquivo.lua para bocoh e adicione isto la local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function thinkCallback(cid) local rand = math.random(1,100) if rand == 1 then selfSay('Posso ajudar?') -- msg que vai sair do npc selfSay('Bem vindo !') -- msg que vai sair do npc end return true end function greetCallback(cid) return true end npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback) npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:addModule(FocusModule:new()) agr em data / npc / e renome algum arquivo.xml para bocoh e ponha isto dentro <?xml version="1.0" encoding="UTF-8"?> <npc name="bocoh" script="data/npc/scripts/bocoh.lua" walkinterval="5000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="50" body="63" legs="132" feet="0" addons="3"/> <parameters> </parameters> </npc> pronto agr so reinicia seu sv
  16. Se voce puder postar aki a imagem pra mim editar fico agradecido
  17. SkyLigh

    Vip

    function onSay(cid, words, param, channel) local name = getCreatureName(cid) sorcerer = { pcoin = 19000, level = 1, text = "Parabens", } druid = { pcoin = 19000, level = 1, text = "Parabens", } paladin = { pcoin = 19000, level = 1, text = "Parabens", } knight = { pcion = 19000, level = 1, text = "Parabens", } if getPlayerVocation(cid) == 1 then voc = sorcerer elseif getPlayerVocation(cid) == 2 then voc = druid elseif getPlayerVocation(cid) == 3 then voc = paladin elseif getPlayerVocation(cid) == 4 then voc = knight else voc = nil end if voc ~= nil then if getPlayerLevel(cid) >= voc.level 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 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 setPlayerPromotionLevel(cid, 1) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") doSendMagicEffect(getCreaturePosition(cid),14) doSendAnimatedText(getCreaturePosition(cid),voc.text,49) setPlayerStorageValue(cid,1082,1) else doPlayerSendTextMessage(cid,18,"Voce precisa de 50 Multi Coins para ser Vip.") end else doPlayerSendTextMessage(cid,18,"You need level "..voc.level.." to promote.") end else doPlayerSendTextMessage(cid,18,"Voce ja e Vip.") end return TRUE end e no talkactions.xml ponha a tag de somente god usar
  18. function onThink(interval, lastExecution, thinkInterval) local Query = db.getResult("SELECT `id`, `vip_time` FROM `accounts` WHERE `accounts`.`vip` = 1") if Query:getID() == -1 then return true end for i = 1, Query:getRows() do local AccID = Query:getDataInt('id') local VipTime = Query:getDataInt('vip_time') if VipTime >= os.time() then if isVip(cid) then if string.sub(name, 1,6) == "[VIP] " then else db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..name.."' WHERE `id`= " .. nome .. ";") doPlayerSendTextMessage(cid,19,"You go kicked in 10 seconds for update you name.") addEvent(doRemoveCreature,10000,cid) end if string.sub(name, 1,6) == "[VIP] " then db.executeQuery("UPDATE `players` SET `name` = '"..pegarNome(getCreatureName(cid)).."' WHERE `id`= " .. nome .. ";") doPlayerSendTextMessage(cid,19,"You go kicked in 10 seconds for update you name.") addEvent(doRemoveCreature,10000,cid) end db.executeQuery("UPDATE `accounts` SET `vip_time = ".. math.ceil((VipTime - os.time()) / 86400) .." WHERE `accounts`.`id` = ".. AccID .." LIMIT 1;") else db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `accounts`.`id` = ".. AccID .." LIMIT 1;") end Query:next() end Query:free() end return true end
  19. Este e no script do globalevents
  20. function onThink(interval, lastExecution, thinkInterval) local Query = db.getResult("SELECT `id`, `vip_time` FROM `accounts` WHERE `accounts`.`vip` = 1") if Query:getID() == -1 then return true end for i = 1, Query:getRows() do local AccID = Query:getDataInt('id') local VipTime = Query:getDataInt('vip_time') if VipTime >= os.time() then db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..name.."' WHERE `id`= " .. nome .. ";") doPlayerSendTextMessage(cid,19,"You go kicked in 10 seconds for update you name.") addEvent(doRemoveCreature,10000,cid) else if string.sub(name, 1,6) == "[VIP] " then db.executeQuery("UPDATE `players` SET `name` = '"..pegarNome(getCreatureName(cid)).."' WHERE `id`= " .. nome .. ";") doPlayerSendTextMessage(cid,19,"You go kicked in 10 seconds for update you name.") db.executeQuery("UPDATE `accounts` SET `vip_time = ".. math.ceil((VipTime - os.time()) / 86400) .." WHERE `accounts`.`id` = ".. AccID .." LIMIT 1;") else db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `accounts`.`id` = ".. AccID .." LIMIT 1;") end Query:next() end Query:free() return true end end
  21. Olha guizito eu colokei somente lvl 50 pra passar 51 49 nao irao passar local vocations = {4,8} --- Vocations permitidas. function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local tpos,v = {x=32368,y=32477,z=8},getThingPos(cid) -- if isInArray(vocations,getPlayerVocation(cid)) then doTeleportThing(cid,tpos) doSendMagicEffect(v,99) else doTeleportThing(cid,fromPosition) doPlayerSendTextMessage(cid,22,'Você não pode descer aqui, escolha a escada certa!\n (Local para knights)') doSendMagicEffect(v,2) return true end if getPlayerLevel(cid) == 50 then doPlayerSendTextMessage(cid,22,'Desculpe Apenas Level 50 pode descer aki') end return true end
  22. SkyLigh

    Vip

    function onSay(cid, words, param) if(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 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, 13540) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 13540, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") 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. 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 if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then return TRUE end end end end
  • Quem Está Navegando   0 membros estão online

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