Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. Junior vai no globalevent.xml e procure a tag do clean / save e troque o interval para 15000 Smix também reportado por flood por ficar pedindo rep no post sem ter nada so pedindo o rep +
  2. SkyLigh

    Monstro!

    ai tenta agr <?xml version="1.0" encoding="UTF-8"?> <monster name="Saco de Pancada" nameDescription="a saco de pancada" race="undead" experience="0" speed="0" manacost="0"> <health now="9999999999" max="9999999999"/> <look typeex="5787" head="20" body="30" legs="40" feet="50" corpse="3128"/> <targetchange interval="60000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag staticattack="50"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="500" min="0" max="0"/> <attack name="physical" interval="3000" chance="25" range="7" min="-1" max="-1"> <attribute key="shootEffect" value="arrow"/> </attacks> <defenses armor="0" defense="0"> <defense name="ultimate healing" interval="5000" chance="100000" min="9999999999" max="9999999999"/> </defenses> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="0"/> <immunity outfit="0"/> <immunity drunk="0"/> <immunity invisible="1"/> </immunities> <voices interval="2000000" chance="1"> <voice sentence="Bate que nem homem porra!"/> <voice sentence="Feel my kick!"/> <voice sentence="Voce nunca vai me mata."/> </voices> <loot> <item id="2148" countmax="20" chance1="100000" chancemax="0"/> <item id="1949" chance="10000"/> <item id="2467" chance="10000"/> <item id="2642" chance="6666"/> <item id="1987" chance="100000"> <inside> <item id="2044" chance="6666"/> <item id="2689" countmax="3" chance1="20000" chancemax="0"/> <item id="2401" chance="3333"/> <item id="2166" chance="1428"/> </inside> </item> </loot> </monster>
  3. SkyLigh

    Monstro!

    ai o treiner eu peguei de um baiak e dei uma editada que vc pediu dps eu fazo o do outro monstro que eu tenho que sair agr <?xml version="1.0" encoding="UTF-8"?> <monster name="Saco de Pancada" nameDescription="a saco de pancada" race="undead" experience="0" speed="0" manacost="0"> <health now="9999999999" max="9999999999"/> <look typeex="5787" head="20" body="30" legs="40" feet="50" corpse="3128"/> <targetchange interval="60000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag staticattack="50"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="500" min="0" max="0"/> </attacks> <defenses armor="0" defense="0"> <defense name="ultimate healing" interval="5000" chance="100000" min="9999999999" max="9999999999"/> </defenses> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="0"/> <immunity outfit="0"/> <immunity drunk="0"/> <immunity invisible="1"/> </immunities> <voices interval="2000000" chance="1"> <voice sentence="Bate que nem homem porra!"/> <voice sentence="Feel my kick!"/> <voice sentence="Voce nunca vai me mata."/> </voices> <loot> <item id="2148" countmax="20" chance1="100000" chancemax="0"/> <item id="1949" chance="10000"/> <item id="2467" chance="10000"/> <item id="2642" chance="6666"/> <item id="1987" chance="100000"> <inside> <item id="2044" chance="6666"/> <item id="2689" countmax="3" chance1="20000" chancemax="0"/> <item id="2401" chance="3333"/> <item id="2166" chance="1428"/> </inside> </item> </loot> </monster>
  4. Tópico reportado pra ser fechado como você seleciono
  5. 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"/>
  6. Skyeven sem flood por favor Guizito estou fazendo aki pra vc
  7. no da policia federal e ganha um brinde de cadeia por 6 meses =X
  8. 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
  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. 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
  12. 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
  13. 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>
  14. 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())
  15. 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
  16. 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())
  • Quem Está Navegando   0 membros estão online

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