Ir para conteúdo

Sekk

Membro
  • Registro em

  • Última visita

Tudo que Sekk postou

  1. é o mesmo principio do item, só pode usar a talk se tiver x storage, so fazer o npc vender ela: npc/scripts/aura.lua npc/Aura.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Aura Seller" script="data/npc/scripts/aura.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="149" head="57" body="59" legs="40" feet="76" addons="0"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|, deseja ter permissão para usar a sua {aura}?"/> </parameters> </npc>
  2. lib https://hastebin.com/raw/vequsanenu
  3. Vou precisar da ajuda do vodk então, isso eu ja não manjo, sei q deve ser creaturescripts @Vodkart
  4. @Ivens Pontes Vc pode compartilhar o otx compilado pra windows? Eu só tenho o msvc15, n tenho as libs pra compilar tfs 8.6-, só tenho pra compilar tfs 1.x
  5. INSERT INTO `players` (`id`, `name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`, `cast`, `castViewers`, `castDescription`, `auction_balance`, `resets`) VALUES (1, 'Account Manager', 0, 1, 1, 8, 0, 150, 150, 4200, 0, 0, 0, 0, 302, 3, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0), (4, 'Rook Sample', 0, 1, 2, 8, 0, 150, 150, 4200, 0, 0, 0, 0, 110, 0, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0), (5, 'Sorcerer Sample', 0, 1, 2, 8, 1, 150, 150, 4200, 0, 0, 0, 0, 110, 0, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0), (6, 'Druid Sample', 0, 1, 2, 8, 2, 150, 150, 4200, 0, 0, 0, 0, 110, 0, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0), (7, 'Paladin Sample', 0, 1, 2, 8, 3, 150, 150, 4200, 0, 0, 0, 0, 110, 0, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0), (8, 'Knight Sample', 0, 1, 2, 8, 4, 150, 150, 4200, 0, 0, 0, 0, 110, 0, 4, 150, 150, 0, 100, 1, 10157, 10053, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0); Vc vai ter que arrumar as tabelas e valores que existem na sua database, esse código que peguei são do meu server, entao tem tabelas a mais ou a menos que o seu
  6. lib https://hastebin.com/raw/abacutodar
  7. @Breaky? local s = 89745 local i = -- muda aqui o id do item function onUse(cid, item, itemEx, toPosition, fromPosition) if getPlayerStorageValue(cid, s) <= 0 then setPlayerStorageValue(cid, s, 4) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou um novo outfit.") doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerRemoveItem(cid, i, 1) doPlayerAddOutfit(cid, coloca o id da outfit, n o type aqui, 1) else doPlayerSendCancel(cid, "Você já tem esse outfit.") end return true end
  8. mas oq é essa aura mds? vc disse q era a storage, eu ativei a storage '-' agora o que precisar da storage com valor 1, vai funcionar quando vc ativar pelo item q efeito vcs tão falando?
  9. actions/scripts/aura.lua function onUse(cid, item, fromPosition, itemEx, toPosition) local s = 25950 -- storage aura local x = 25951 -- storage on/off local pos = getCreaturePosition(cid) -- n mexa local exh = 25952 -- storage exhaust local texh = 5 -- tempo de exhaust em segundos if exhaustion.check(cid, exh) then doPlayerSendCancel(cid, "You can use it again in "..exhaustion.get(cid, exh).." seconds.") return true end if getPlayerStorageValue(cid, x) <= 0 and getPlayerStorageValue(cid, s) <= 0 then setPlayerStorageValue(cid, x, 1) setPlayerStorageValue(cid, s, 1) exhaustion.set(cid, exh, texh) doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua aura foi ativada.") elseif getPlayerStorageValue(cid, x) == 1 and getPlayerStorageValue(cid, s) == 1 then setPlayerStorageValue(cid, x, 0) setPlayerStorageValue(cid, s, 0) exhaustion.set(cid, exh, texh) doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua aura foi desativada.") end return true end actions.xml <action itemid="XXXX" event="script" value="aura.lua"/>
  10. Você quer que clique e ative/desative ou quer por comandos(!aura on/off) ??
  11. monster = {"Demon", "Ferumbras"} os dois to com preguiça de ver o codigo dnv uahuahsuahsa vou tomar banho
  12. Temos umas respostas com isso: 1. As outfits eram para players PREMIUM e precisavam de ACCESS 5, ou seja, precisava ser da staff. Isso de acordo com o outfits.xml <outfit id="33" access="5" premium="yes"> <list gender="0-3" lookType="264" name="Brutetamer"/> </outfit> 2. No script vc n alterou o id da outfit Mas tudo bem, vamos arrumar agora. Troque seu outfits.xml por esse: E troque seu script por esse:
  13. @jNo Me manda o jeito que está seu script, manda seu outfits.xml e a tag q ta no actions.xml
  14. --- skull remover by kakilo - quinto script function onSay(cid, words, param, channel) if (getCreatureSkullType(cid) == SKULL_BLACK) then if doPlayerRemoveMoney(cid, 5000000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Black Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de 5kk para remover a sua black skull") end end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveMoney(cid, 3000000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de 3kk para remover a sua red skull") end end if (getCreatureSkullType(cid) == SKULL_NONE) then doPlayerSendCancel(cid, "Voce precisa ser Red ou Black Skull para usar.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end return TRUE end
  15. @jNo Seu action.xml ta como? Tem que estar assim: <action itemid="XXXX" event="script" value="arquivo.lua"/> local s = 19000 local i = -- muda aqui o id do item function onUse(cid, item, itemEx, toPosition, fromPosition) if getPlayerStorageValue(cid, s) <= 0 then setPlayerStorageValue(cid, s, 1) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou um novo outfit.") doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerRemoveItem(cid, i, 1) doPlayerAddOutfit(cid, coloca o id da outfit, n o type aqui, 1) else doPlayerSendCancel(cid, "Você já tem esse outfit.") end return true end Obs.: Tem linhas pra editar no script, edite Obs2.: 'local i' deve ser igual ao 'itemid' do actions.xml
  16. function onThink(interval, lastExecution) local pos = {fromPosition = {x=533, y=222, z=7},toPosition = {x=544, y=230, z=7}} monster = "Demon" time = 60 function removeMonsterInArea() -- by Daaniel Gay local positionsCheck = {} for i = pos.fromPosition.x, pos.toPosition.x do positionsCheck[#positionsCheck+1] = {x=i, y = pos.fromPosition.y, z = pos.toPosition.z, stackpos = 0} for j = pos.fromPosition.y+1, pos.toPosition.y do positionsCheck[#positionsCheck+1] = {x=i, y = j, z = pos.fromPosition.z, stackpos = 0} end end for j=1, #positionsCheck do for i = 0, 255 do positionsCheck[j].stackpos = i local tile = getTileThingByPos(positionsCheck[j]) if isMonster(tile.uid) then if getCreatureName(tile.uid) == monster then doRemoveCreature(tile.uid) end end end end end function um(cid) broadcastMessage("Bosses nasce em frente ao templo ajude a protege a cidade!", MESSAGE_STATUS_WARNING) end function startinvasion(cid) for _,x in pairs(monster) do for s = 1, tonumber(x:match("%d+")) do pos2 = {x = math.random(pos.fromPosition.x, pos.toPosition.x), y = math.random(pos.fromPosition.y, pos.toPosition.y), z = pos.fromPosition.z} doSummonCreature(x:match("%s(.+)"), pos2) broadcastMessage("Acaba de nasce os bosses!", MESSAGE_STATUS_WARNING) end end addEvent(removeMonsterInArea, 120000) end if os.date("%A") == "Monday" then if (os.date("%X") == "00:10:00") or (os.date("%X") == "00:15:00") then addEvent(um, 10000) addEvent(startinvasion, 80000) end end return TRUE end
  17. na vdd n precisa, vc tentou entrar no castle dps?
  18. sim, só abre o .xml do monstro q vc quer e coloca aquilo nele
  19. manda o script inteiro
  20. Só fala o que é a aura, é uma storage? Se sim, usa algo tipo local c = { s = 191029, -- storage aura t = 10, -- tempo em minutos ost = os.time(), -- não mexa exh = 191028, -- storage exhaust exht = 10 -- tempo em segundos do exhaust } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, c.s) <= 0 and getPlayerStorageValue(cid, c.exh) <= 0 then setPlayerStorageValue(cid, c.s, c.ost + c.t * 60 * 1000) setPlayerStorageValue(cid, c.exh, c.ost + c.exht * 1000) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Voce recebeu "..c.s.." minutos de aura. Aproveite!") else doSendPlayerCancel(cid, "Sorry, you can't use this item again while you have aura.") else doSendPlayerCancel(cid, "You are exhausted") end return true end <action itemid="8306" event="script" value="nome do arquivo.lua"/>
  21. @jNo local s = 19000 function onUse(cid, item, itemEx, toPosition, fromPosition) if getPlayerStorageValue(cid, s) <= 0 then setPlayerStorageValue(cid, s, 1) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou um novo outfit.") doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerRemoveItem(cid, item.uid, 1) if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 264, 1) else doPlayerAddOutfit(cid, 255, 1) end else doPlayerSendCancel(cid, "Você já tem esse outfit.") end return true end
  22. lib https://hastebin.com/itiwocidiz.lua creaturescripts dtt.lua https://hastebin.com/atemegupet.lua
  23. n sei se funfa creaturescripts/scripts cria la um arquivo com isso: creaturescripts.xml <event type="kill" name="Castle" event="script" value="arquivo.lua"/> ai no arquivo .xml do monstro, adiciona isso la no fim <script> <event name="Castle"/> </script>

Informação Importante

Confirmação de Termo