Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. Tópico reportado pra ser fechado como você seleciono
  2. editei o meu la ver agora se vai
  3. ixi então ele faz da familia nao-virgem
  4. aki esta va em data / movements / scripts / e renomeie algum arquivo para voc e ponha isto la function onStepIn(cid, item, position, fromPosition) local pala = 3 -- id do paladin local royal = 6 -- id do royal paladin if isPlayer(cid) then if getPlayerVocation(cid, pala) and getPlayerVocation(cid, royal) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Desculpe " .. getPlayerName(cid) .. " Apenas Royais Paladin , Paladins Passam Por Esse Tille") doSendMagicEffect(a.pos, CONST_ME_TELEPORT) return true end doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Bem-Vindo " .. getPlayerName(cid) .. " A Area Da Sua Vocaçao") end return true end dps em movements.xml adicione isto la <movevent type="StepIn" uniqueid="storage que vai por no tille" event="script" value="voc.lua"/>
  5. Skyeven sem flood por favor Guizito estou fazendo aki pra vc
  6. no da policia federal e ganha um brinde de cadeia por 6 meses =X
  7. aki assim que e o correto if item.uid == 7212 then queststatus = getPlayerStorageValue(cid,7212) if queststatus == 1 then doPlayerSendTextMessage(cid,25,"Voce pegou Mystical Free Set.") doAddContainerItem(bag, 10510, 1) -- aqui voce add os items que voce quer que o player ganhe dentro da bag doAddContainerItem(bag, 2538, 1) doAddContainerItem(bag, 9927, 1) doAddContainerItem(bag, 7885, 1) doAddContainerItem(bag, 2660, 1) doAddContainerItem(bag, 2642, 1) setPlayerStorageValue(cid,2642,1) else oPlayerSendTextMessage(cid,25,"It is empty.") end else return 0 end return 1 end
  8. reportado pro tópico ser fechado
  9. Kde as informações , as print's ?
  10. Nao entendi se voce tiver andando ai se vc andar mas um passo tipo que vai entrar dentro dele ele vai la pra frente ??
  11. Se nao viu que nos 2 postamos juntos n ?
  12. ver agr ! local bless = {1, 2, 3, 4, 5} local cost = 80000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "Voceja tem todas as bless.") return TRUE end end if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) doPlayerSetLossSkill(cid, false) end doCreatureSay(cid, "You are now blessed!" ,19) doSendMagicEffect(getPlayerPosition(cid), 49) else doPlayerSendCancel(cid, "Voce precisa de 80k para a bless.") end return TRUE end
  13. Desculpe pelo tempo de eu nao ter respondido n tinha visto local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE local SQL_interval = 30 function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do local id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!") doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000) received_item = doPlayerSellItem(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end
  14. Duvida sanada reportado Qualquer duvida flagoa so perguntar pvt
  15. duvida sanada reportado
  16. tente assim agora <commands> <command cmd="/b" group="1" acctype="0"/> <command cmd="/i" group="3" acctype="0"/> <command cmd="/n" group="3" acctype="0"/> <command cmd="/reload" group="5" acctype="0"/> <command cmd="/s" group="3" acctype="0"/> <command cmd="/openserver" group="5" acctype="0"/> <command cmd="/closeserver" group="5" acctype="0"/> <command cmd="/ghost" group="3" acctype="0"/> <command cmd="/owner" group="5" acctype="0"/> <command cmd="/goto" group="3" acctype="0"/> <command cmd="/a" group="3" acctype="0"/> <command cmd="/c" group="3" acctype="0"/> <command cmd="/m" group="4" acctype="0"/> <command cmd="/summon" group="3" acctype="0"/> <command cmd="/kick" group="4" acctype="0"/> <command cmd="/B" group="1" acctype="0"/> <command cmd="/q" group="0" acctype="0"/> <command cmd="/info" group="2" acctype="0"/> <command cmd="/gethouse" group="5" acctype="0"/> <command cmd="/t" group="3" acctype="0"/> <command cmd="/up" group="3" acctype="0"/> <command cmd="/down" group="3" acctype="0"/> <command cmd="/newtype" group="3" acctype="0"/> <command cmd="/pos" group="3" acctype="0"/> <command cmd="/r" group="3" acctype="0"/> <command cmd="/town" group="3" acctype="0"/> <command cmd="/raid" group="3" acctype="0"/> <command cmd="/addskill" group="5" acctype="0"/> <command cmd="/ban" group="3" acctype="0"/> <command cmd="/unban" group="5" acctype="0"/> <command cmd="/clean" group="3" acctype="0"/> <command cmd="/mccheck" group="3" acctype="0"/> <command cmd="!online" group="0" acctype="1"/> <command cmd="!buyhouse" group="0" acctype="1"/> <command cmd="!sellhouse" group="0" acctype="1"/> <command cmd="!serverinfo" group="0" acctype="1"/> <command cmd="!kills" group="0" acctype="1"/> <command cmd="!createguild" group="0" acctype="1"/> <command cmd="!joinguild" group="0" acctype="1"/> </commands>
  17. aonde ta escrito item e o id do item que e pra vc botar o item que querer 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 doRemoveItem(cid,item) function onThink() npcHandler:onThink() end local node1 = keywordHandler:addKeyword({'vip'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Posso promove-lo para Primeira Promotion por 20k. Voce quer?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, item = 1357 , level = 20, promotion = 1, text = 'Agora voce tem a primeira promotion.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem, volte quando estiver pronto.', reset = true}) local node2 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Posso promove-lo para Promotion VIP por 500k. Voce quer?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler level = item = 1357 , 200, promotion = 2, text = 'Agora voce tem a VIP promotion.'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem, volte quando estiver pronto.', reset = true}) npcHandler:addModule(FocusModule:new())
  18. SkyLigh

    Peça Seu Mapa

    Man acho que em um sub-fórum nao e o lugar correto pra postar isso ! talvez seria melhor postar em no fórum Divulgue-se reportado pra moverem
  19. SkyLigh

    [Pedido] Npc

    Este aki e do vodkart entao tudo aos creditos a ele Abre o arquivo 050-function.lua que está dentro da pasta data/lib e adicione no fim do arquivo: function doPlayerCountItems(cid, items) -- by Vodka local items = type(items) == "table" and items or {items} for i = 1, table.maxn(items) do if getPlayerItemCount(cid, items[i]) <= 0 then return false end end return true end NPC Script: 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 local talkState = {} function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local list = {111,222,333,444,555,666,777} -- id dos itens local pos = {x=160, y=54, z=7} -- para onde ele vai if(msgcontains(msg, 'TRAVEL') or msgcontains(msg, 'travel')) then selfSay("Para viajar comigo você ter os 7 items,você tem eles? {yes} ", cid) talkState[talkUser] = 1 elseif(msgcontains(msg, "yes") and talkState[talkUser] >= 1)then if doPlayerCountItems(cid, list) then selfSay("Boa viagem!.", cid) doTeleportThing(cid, pos) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) else selfSay("desculpe,mas você não tem os itens!", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  20. SkyLigh

    Ajuda Com Spr!

    Qual versao vc qer ?
  21. aki esta local bless = {1, 2, 3, 4, 5} local cost = 80000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "Voceja tem todas as bless.") return TRUE end end if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) doPlayerSetLossSkill(cid, 0) doCreatureSetDropLoot(cid, false) end doCreatureSay(cid, "You are now blessed!" ,19) doSendMagicEffect(getPlayerPosition(cid), 49) else doPlayerSendCancel(cid, "Voce precisa de 80k para a bless.") end return TRUE end
  22. Tchubaka tente postar um grátis pra baixar ele precisa ser premium no speedyshare Olha junior eu gosto muito de mapa baiakzik aki esta a primeira versao http://www.xtibia.com/forum/topic/170408-mapa-baiak-com-vip3/ e o templo mas show que eu ja vi e este aki http://www.xtibia.com/forum/topic/171439-baiak-zik-vip4/ e um baiakzik tbm mt show de se jogar e este e o map que mas fez sucesso do baiakzik que eu achei http://www.xtibia.com/forum/topic/172148-o-unico-mapa-baiak-com-vip6/
  23. Iae galera !! hoje trago um script muito interessante adicionar premium por action ao dar use num item e comprar o item por 1 buyitem então vamos la va em data / talkactions / scripts / e ponha o nome de algum arquivo para premium e ponha isto la dentro function onSay(cid, words, param) local itens = { ["santa doll"] = {id = 6567, preco = 2000, count = 1 }, ["teddy bear"] = {id = 6568, preco = 1000, count = 1 }, ["jester doll"] = {id = 9663, preco = 500, count = 1 } } local param = string.lower(param) if (param == "lista") then local str = "" str = str .. "itens :\n\n" for name, preco in pairs(itens) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 7529, str) return TRUE end if not itens[param] or param == "" or not param then return doPlayerSendCancel(cid,"Desculpe esse item nao existe") end if itens[param] and doPlayerRemoveMoney(cid,itens[param].preco) then doPlayerAddItem(cid,itens[param].id,itens[param].count) doPlayerSendTextMessage(cid,27,"Parabéns Vc comprou 1 item") end return TRUE end <talkaction words="!buy" event="script" value="itens.lua"/> dps em data / actions / scripts / ponha o nome de algum arquivo de premium e adicionar isto la dentro --((Script By Skylight Xtibia.com))-- function onUse(cid, item) if doRemoveItem(item.uid, 1) then end if item.itemid == 6567 then doPlayerAddPremiumDays(cid, 30) doPlayerSendTextMessage(cid, 22, "Parabéns Você Recebeu 30 dias de premium") return true end if item.itemid == 6568 then doPlayerAddPremiumDays(cid, 30) doPlayerSendTextMessage(cid, 22, "Parabéns Você Recebeu 15 dias de premium") return true end if item.itemid == 9693 then doPlayerAddPremiumDays(cid, 30) doPlayerSendTextMessage(cid, 22, "Parabéns Você Recebeu 10 dias de premium") end return true end dps em actions.xml <action itemid="6567" script="premium.lua"/> <action itemid="6568" script="premium.lua"/> <action itemid="9693" script="premium.lua"/> Então e so isso espero que gostem e se puder nao custara 1 rep + Créditos TnTSlin 30 %(Pelo script do buy) SkyLigh 70 % (Pelo Script Do Action E A Ideia E Adicionar A Lista no script do buy)
  24. Reportado por double topic http://www.xtibia.com/forum/topic/190823-change-sex-e-new-recovery-key-gesior/ 1 em kda area
  25. SkyLigh

    Ajuda Com Spr!

    Download do programa http://www.xtibia.co...ditor-com-scan/ Como Criar http://www.xtibia.co...-e-sem-efeitos/
  • Quem Está Navegando   0 membros estão online

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