Ir para conteúdo

Summ

Membro
  • Registro em

  • Última visita

Solutions

  1. Summ's post in (Resolvido)Uniwheel was marked as the answer   
    Eu tinha feito no meu antigo ot esse script :
    local id = 13937 function onUse(cid, item, frompos, itemEx, topos ) if itemEx.itemid == id then doPlayerAddMount(cid, 15) doPlayerSendTextMessage(cid, 19,"The strange wheel seems to vibrate and slowly starts turning continuosly.") doPlayerRemoveItem(cid, 13938, 1) else doPlayerSendTextMessage(cid, 19, "Sorry, you already have that ride.") end return true end <action itemid="13938" script="ARQUIVO.lua"/>
  2. Summ's post in (Resolvido)[Pedido] PvP 1vs1 was marked as the answer   
    eu fiz o sistema > http://www.tibiaking.com/forum/topic/54988-arena-pvp/ <
  3. Summ's post in (Resolvido)Ajuda? Piso Parado was marked as the answer   
    acho que tu já sabe fazer a tag então vou colocar só o script aqui :
    function onStepIn(cid) if isPlayer(cid) then doCreatureSetNoMove(cid, true) end return true end
  4. Summ's post in (Resolvido)[Pedido] Player Pegar Level 200 Ser Teleportado was marked as the answer   
    local level = 200 -- Level local pos = {x = 10474, y = 10807, z = 7} -- Posição local storage = 78945 function onAdvance(cid, skill, oldLevel, newLevel) if skill == 8 and newLevel == level and getPlayerStorageValue(cid, storage) < 1 then doTeleportThing(cid, pos) doPlayerSendTextMessage(cid, 19, "Você acabar de pegar level " .. level .. " e foi teleportado!!") setPlayerStorageValue(cid, storage, 1) end return true end
  5. Summ's post in (Resolvido)add montaria was marked as the answer   
    http://www.tibiaking.com/forum/topic/50629-addonmount-para-shopsystem-por-storage/
  6. Summ's post in (Resolvido)(Ajuda) Remover Stone was marked as the answer   
    Seria assim :
    function onUse(cid, item) local exhausted = 30 -- 30 segundos local rock1pos = {x=722, y=499, z=12, stackpos=1} -- Posição da Pedra local getrock1 = getThingfromPos(rock1pos) local rockID = 1304 -- ID da pedra local storage = 794654 if getPlayerStorageValue(cid, storage) <= os.time() then if item.itemid == 1945 then doRemoveItem(getrock1.uid, 1) doTransformItem(item.uid, item.itemid + 1) doSendMagicEffect(rock1pos, 2) setPlayerStorageValue(cid, storage, exaust + os.time()) addEvent(doCreateItem, exhausted*1000, rockID, 1, rock1pos) elseif item.itemid == 1946 then doTransformItem(item.uid, item.itemid - 1) end else doPlayerSendTextMessage(cid, 19, "Espere a pedra ser criada novamente, para poder utilizar a alavanca!!") end return true end ou assim :
    function onUse(cid, item) local exhausted = 30 -- 30 segundos local rock1pos = {x=722, y=499, z=12, stackpos=1} -- Posição da Pedra local getrock1 = getThingfromPos(rock1pos) local rockID = 1304 -- ID da pedra local storage = 794654 if getPlayerStorageValue(cid, storage) <= os.time() then if item.itemid == 1945 then doRemoveItem(getrock1.uid, 1) doTransformItem(item.uid, item.itemid + 1) doSendMagicEffect(rock1pos, 2) setPlayerStorageValue(cid, storage, exaust + os.time()) addEvent(function() doCreateItem(rockID, 1, rock1pos) doTransformItem(item.uid, item.itemid - 1) end, exhausted*1000) end else doPlayerSendTextMessage(cid, 19, "Espere a pedra ser criada novamente, para poder utilizar a alavanca!!") end return true end
  7. Summ's post in (Resolvido)[Erro] Notice was marked as the answer   
    Não existe o arquivo noticias.TXT >.>
  8. Summ's post in (Resolvido)[Erro] Ranks was marked as the answer   
    local ranks = { ['fist'] = {0}, ['club'] = {1}, ['sword'] = {2}, ['axe'] = {3}, ['distance'] = {4}, ['shield'] = {5}, ['fish'] = {6}, ['magic'] = {7}, ['level'] = {8}, } function onSay(cid, words, param) local msg = string.lower(param) if ranks[msg] ~= nil then str = getHighscoreString((ranks[msg][1])) else str = getHighscoreString((8)) end doPlayerPopupFYI(cid, str) return true end
  9. Summ's post in (Resolvido)Pedido Npc item por Vocation was marked as the answer   
    você testou o meu ? continuou dando o mesmo erro ? 
     
    como você vê acima eu e o snows postamos e tu vem e só da um "up", não estamos na sua mente pra saber o que aconteceu então de maiores informações ou pelo menos fale que o erro persiste, é a segunda vez que já estou te falando sobre isso, na próxima não faço nem questão de ajudar, pois se tu mesmo não se ajuda por que eu vou ajudar...
     
    abrçs
     
     
    #edit já aproveita e tenta esse :
     
    Ajudante.lua
    local items = { voc1 = { {2160, 10}, {2159, 10}, {9778, 2}, }, voc2 = { {2159, 12}, {2160, 12}, }, voc3 = { {2159, 11}, {2160, 11}, }, voc4 = { {2159, 13}, {2160, 13}, }, } local storage = 6554 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid msg = msg:lower() if getPlayerStorageValue(cid, storage) >= 1 then selfSay("Ja lhe entreguei os items, suma!", cid) return true end if msgcontains(msg, "yes") then if getPlayerVocation(cid) == 1 then for x = 1, #items.voc1 do doPlayerAddItem(cid, items.voc1[x][1], items.voc1[x][2]) end setPlayerStorageValue(cid, storage, 1) selfSay("Aqui, tome seus items.", cid) elseif getPlayerVocation(cid) == 2 then for x = 1, #items.voc2 do doPlayerAddItem(cid, items.voc2[x][1], items.voc2[x][2]) end setPlayerStorageValue(cid, storage, 1) selfSay("Aqui, tome seus items.", cid) elseif getPlayerVocation(cid) == 3 then for x = 1, #items.voc3 do doPlayerAddItem(cid, items.voc3[x][1], items.voc3[x][2]) end setPlayerStorageValue(cid, storage, 1) selfSay("Aqui, tome seus items.", cid) elseif getPlayerVocation(cid) == 4 then for x = 1, #items.voc4 do doPlayerAddItem(cid, items.voc4[x][1], items.voc4[x][2]) end setPlayerStorageValue(cid, storage, 1) selfSay("Aqui, tome seus items.", cid) end elseif msgcontains(msg, "no") then selfSay("Bye!!") end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) <?xml version="1.0" encoding="UTF-8"?> <npc name="Ajudante" script="Ajudante.lua" walkinterval="2000" speechbubble="1" floorchange="0"> <health now="100" max="100" /> <look type="160" head="98" body="95" legs="115" feet="114" addons="0"/> <parameters> <parameter key="message_greet" value="Ola, voce precisa de ajuda ? Eu dou items para os iniciantes! Quer os items ?" /> </parameters> </npc>
  10. Summ's post in (Resolvido)Mineração mais dificil was marked as the answer   
    pronto agora ele tem 1 chance em 1.000 
     
    simplificado :
    function onUse(cid, item, fromposition, itemEx, toposition) local config ={ ["1-400"] = {items = 8298, text = "SUCESSO", colortext = 139, msg = "Você adquiriu 1 pedra(s) de refinamento nível 1"}, ["400-700"] = {items = 8299, text = "SUCESSO", colortext = TEXTCOLOR_GREY, msg = "Você adquiriu 1 pedra(s) de refinamento nível 2"}, ["700-850"] = {items = 8301, text = "SUCESSO", colortext = 210, msg = "Você adquiriu 1 pedra(s) de refinamento nível 3"}, ["850-925"] = {items = 8302, text = "SUCESSO", colortext = 64,msg = "Você adquiriu 1 pedra(s) de refinamento nível 4"}, ["925-999"] = {items = 8303, text = "SUCESSO", colortext = TEXTCOLOR_PURPLE , msg = "Você adquiriu 1 pedra(s) de refinamento nível 5"}, ["999-1000"] = {items = 9971, text = "G-INGOT!", colortext = 208, ,msg = "Você adquiriu 1 gold ingot(s)"}, } local rand = math.random(1, 1005) if getPlayerLevel(cid) <= 124 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você não tem nível 125+ para ter acesso a mineração!") return true end if getPlayerStorageValue(cid,8749) < 1 then return true end if itemEx.itemid >= 1353 and itemEx.itemid <= 1354 or itemEx.itemid == 1355 then for chance, v in pairs(config) do local c = string.explode(string:lower(chance), "-") if rand >= tonumber(c[1]) and rand <= tonumber(c[2]) then doSendAnimatedText(toposition, v.text , v.colortext) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, v.msg) doSendMagicEffect(toposition,12) doPlayerAddItem(cid, v.items, 1) break else doSendAnimatedText(toposition,'FALHOU!', TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sua mineração falhou. Tente novamente ") doSendMagicEffect(toposition,2) end end end return true endd
  11. Summ's post in (Resolvido)Conta de ADM do Site was marked as the answer   
    Aqui :
    # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 9999; esse é o numero que tu tem que colocar, se quiser mudar o numero do page_acess só alterar ai.
  12. Summ's post in (Resolvido)Centralizar Página was marked as the answer   
    #editado.
    <?PHP $main_content .= '<table border="0" cellspacing="1" cellpadding="3" width="100%"> <tr> <center><img src="http://i.imgur.com/P7xRGnX.gif?1"></center> <br> <br> <center> <div align=\"center\"><font style=\"font-size:16px; font-weight:bold;\"></font></div><br /> <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\"> <tr> <tr><td><b><center>Vantagem da vocação suprema; Ataque mais forte.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Ataque mais veloz.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Maior defesa.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Maior velocidade.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Maior healing.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Ganho de hp mais rápido e em maior quantidade.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Ganho de mana mais rápido e em maior quantidade.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Ganho de soul mais rápido e em maior quantidade.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Facilidade de up em certos skills.</center></b></td></tr> <tr><td><b><center>Vantagem da vocação suprema; Efeito especial em seu character.</center></b></td></tr> </table><br></center></center>' ?>
  13. Summ's post in (Resolvido)[PEDIDO] Usar POT sumir VIAL was marked as the answer   
    Use :
    local ultimateHealthPot = 8473 local greatHealthPot = 7591 local greatManaPot = 7590 local greatSpiritPot = 8472 local strongHealthPot = 7588 local strongManaPot = 7589 local healthPot = 7618 local manaPot = 7620 local smallHealthPot = 8704 local antidotePot = 8474 local greatEmptyPot = 7635 local strongEmptyPot = 7634 local emptyPot = 7636   local antidote = Combat() antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false) antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON)   local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000)) -- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.   function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then return true end   local player = Player(cid) if player:getCondition(CONDITION_EXHAUST_HEAL) then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED)) return true end   if item.itemid == antidotePot then if not doCombat(cid, antidote, numberToVariant(cid)) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == smallHealthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 60, 85, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == healthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 125, 175, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == manaPot then if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == strongHealthPot then if(not isInArray({3,4,7,8}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == strongManaPot then if(not isInArray({1,2,3,5,6,7}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatMana(0, cid, 115, 185, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatSpiritPot then if(not isInArray({3, 7}, player:getVocation():getId()) or (player:getLevel() < 80)) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) or not doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatManaPot then if(not isInArray({1,2,5,6}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatMana(0, cid, 150, 250, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == ultimateHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 130) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_MONSTER_SAY) return true end   if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) end   return true end
  14. Summ's post in (Resolvido)Wand nao tira nada was marked as the answer   
    <wand id="7451" level="8" mana="15" min="629" max="699" type="cake" event="function" value="default"> <vocation id="2"/> <vocation id="1"/> </wand> type="cake" -- deve ser colocado um elemento aqui e não um effect .... troque por ice, death, fire e veja se resolve o problema.
     
    key="shootType" value="cake" -- shootType é effect ...
     
     
    abrçs 
  15. Summ's post in (Resolvido)Pedido Script was marked as the answer   
    firstaddon.lua 
    local config = { message = [[ Escreva aqui os nome dos items necessários pra conseguir o addon, essa mensagem vai aparecer pro player ]], remove_items = {item1, item2, item3}, -- coloque quantos items quiser, lembre-se de separar ele por ",". storage = 65793, addons = {id_male, id_female}, -- ID MALE E FEMALE } function onUse(player) if player:getStorageValue(storage) < 1 then local items = 0 for i = 1, #config.remove_items do if player:getItemCount(config.remove_items[i]) >= 1 then items = items + 1 end end if items == #config.remove_items then for i = 1, #config.remove_items do player:removeItem(config.remove_items[i], 1) player:addOutfitAddon(config.addons[1], 1) player:addOutfitAddon(config.addons[2], 1) player:setStorageValue(config.storage, 1) player:sendMessageText(19, "HUhrurhurh") player:sendMagicEffect(29) end else player:popupFYI(config.message) end else player:sendMessageText(19, "Você já tem esse addon") end return true end <action actionid="7555" script="firstaddon.lua"/> Lembre-se de colocar na alavanca pelo rme actionid "7555".
     
     
     
     
     
    secondaddons.lua
    local config = { message = [[ Escreva aqui os nome dos items necessários pra conseguir o addon, essa mensagem vai aparecer pro player ]], remove_items = {item1, item2, item3}, -- coloque quantos items quiser, lembre-se de separar ele por ",". storage = 65794, addons = {id_male, id_female}, -- ID MALE E FEMALE } function onUse(player) if player:getStorageValue(storage) < 1 then local items = 0 for i = 1, #config.remove_items do if player:getItemCount(config.remove_items[i]) >= 1 then items = items + 1 end end if items == #config.remove_items then for i = 1, #config.remove_items do player:removeItem(config.remove_items[i], 1) player:addOutfitAddon(config.addons[1], 2) player:addOutfitAddon(config.addons[2], 2) player:setStorageValue(config.storage, 1) player:sendMessageText(19, "HUhrurhurh") player:sendMagicEffect(29) end else player:popupFYI(config.message) end else player:sendMessageText(19, "Você já tem esse addon") end return true end <action actionid="7556" script="secondaddon.lua"/> Lembre-se de colocar na alavanca pelo rme actionid "7556".
  16. Summ's post in (Resolvido)[Ajuda]erro ao compilar was marked as the answer   
    Na verdade o erro estava em items.cpp, eu já arrumei via skype.
  17. Summ's post in (Resolvido)Atualização was marked as the answer   
    o Melhor : http://www.tibiaking.com/forum/topic/44980-gesioracc-2012-modificado-o-melhor/
  18. Summ's post in (Resolvido)Como muda IP do cliente igual do PXG was marked as the answer   
    em modules/client_entergame abra entergame.lua :
     
    basta coloca seu ip :
    server = "SEU IP" EnterGame.setUniqueServer(server, 7171, 854, 270, 210)
  19. Summ's post in (Resolvido)[AJUDA] Quets Set was marked as the answer   
    function onUse(cid, item, toPos, itemEx, fromPos) local config = { -- HELMET [10789] = {itemid, 94564}, -- ID DO ITEM , STORAGE [10790] = {itemid, 94564}, [10791] = {itemid, 94564}, -- ARMOR [10792] = {itemid, 94565}, [10793] = {itemid, 94565}, [10794] = {itemid, 94565}, -- LEGS [10795] = {itemid, 94566}, [10796] = {itemid, 94566}, [10797] = {itemid, 94566}, } for bau, items in pairs(config) do if item.aid == bau then if getPlayerStorageValue(cid, items[2]) < 1 then doPlayerAddItem(cid, items[1], 1) doPlayerSendTextMessage(cid, 19, "Congratulations!!") setPlayerStorageValue(cid, items[2], 1) else doPlayerSendTextMessage(cid, 19, "Is empty") end end end return true end <action actionid="10789;10790;10791;10792;10793;10794;10795;10796;10797" event="script" value="ARQUIVO.lua"/> só configurar os id do item que vai ganhar no começo do script 
  20. Summ's post in (Resolvido)Problema entre site + banco de dados e server was marked as the answer   
    executa isso :
    ALTER TABLE `players` ADD `frags` INT NOT NULL DEFAULT '0'
  21. Summ's post in (Resolvido)Efeito Vocation was marked as the answer   
    local tab = { [9] = 35, -- [vocationID] = número da cor do texto animado [10] = 10, [11] = 18, [12] = 180 } function ariseText(cid) local texts = {"´ . ,", ". ´ ,", "` . ,", ", ´ ."} if tab[getPlayerVocation(cid)] then doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) addEvent(function() if isPlayer(cid) then ariseText(cid) end end, 1000) end return true end function onLogin(cid) ariseText(cid) return true end
  22. Summ's post in (Resolvido)Bless was marked as the answer   
    blessedplayer.lua (data/creaturescripts/scripts):
    function onLogin(cid) for b = 1, 5 do if isPlayer(cid) and getPlayerBlessing(cid, b) and getCreatureSkullType < 4 then doCreatureSetDropLoot(cid, false) end end return true end <event type="login" name="BlessedPlayer" script="blessedplayer.lua"/> Não precisa registrar por ser callback onLogin.
  23. Summ's post in (Resolvido)(Pedido de Script) Aura Por Vocação e Outra Por lvl! was marked as the answer   
    Testado e funcionando ambos agora :
     
    EffectPos.lua
    level = 300; -- LEVEL function effectPos(cid) local config = { effect = 2; -- EFFEITO } local tidpos = getCreaturePos(cid); local tableeffect = { [1] = {x=tidpos.x-1, y=tidpos.y-1, z=tidpos.z}; [2] = {x=tidpos.x, y=tidpos.y-1, z=tidpos.z}; [3] = {x=tidpos.x+1, y=tidpos.y-1, z=tidpos.z}; [4] = {x=tidpos.x+1, y=tidpos.y, z=tidpos.z}; [5] = {x=tidpos.x+1, y=tidpos.y+1, z=tidpos.z}; [6] = {x=tidpos.x, y=tidpos.y+1, z=tidpos.z}; [7] = {x=tidpos.x-1, y=tidpos.y+1, z=tidpos.z}; [8] = {x=tidpos.x-1, y=tidpos.y, z=tidpos.z}; } for x = 1, 8 do if not isPlayerPzLocked(cid) then addEvent(doSendMagicEffect, x * 2000, tableeffect[x], config.effect); addEvent(function () if isPlayer(cid) then effectPos(cid); end end , 1000); end end return 1; end function onAdvance(cid, skill, oldLevel, newLevel) skill = SKILL_LEVEL; if skill == level then effectPos(cid); doPlayerSendTextMessage(cid, 19, "Congratulations !!"); doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW); end return 1; end function onLogin(cid) if getPlayerLevel(cid) >= level then effectPos(cid); end return 1; end EffectText.lua
    local config = { ["1-5"] = 120; -- [VOCATION] = CORES; ["2-6"] = 130; ["3-7"] = 140; ["4-8"] = 150; } function effectText(cid) local texts = "´ . ,"; for vocations, color in pairs(config) do local v = vocations:explode("-"); if getPlayerVocation(cid) == (tonumber(v[1]) or tonumber(v[2])) then eff = color break end end if eff then doSendAnimatedText(getThingPos(cid), texts, eff); addEvent(function() if isPlayer(cid) then effectText(cid) end end, 800); end return 1; end function onLogin(cid) effectText(cid) return 1; end
  24. Summ's post in (Resolvido)NPC JOHNNY PROMOTION ERRADO! HELP! was marked as the answer   
    <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="50" gainmanaticks="6" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Royal Paladin" description="an royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="100" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <!-- <vocation id="9" name="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="10" name="Epic Elder Druid" description="an epic elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="50"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="11" name="Epic Royal Paladin" description="an epic royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="12" name="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> --> </vocations>
  25. Summ's post in [SUGESTÃO] Varredura Total e Organização was marked as the answer   
    Eu também pensava assim, mas depois que comecei a frequentar o fórum com mais frequência percebi que isso não influenciariam em nada, sabe porque ?
     
    No fórum existe 3 tipos de pessoas : as que querem ajudar, as que querem aprender e as que estão apenas pra pedir...
     
    No caso isso seria pra beneficiar as pessoas que vem apenas para pedir, levando em conta que 90% desse pessoal não sabe nem criar um tópico na área correta, clicar em busca ali no canto direito e digitar pra ver se tem tal conteúdo, ou até mesmo lerem algum tutorial, criar um canto com apenas resposta resolvidas não adiantaria em nada.
     
    Sobre os download acho que isso não é culpa nem de quem posta, porque tem sites de download, que se em determinado tempo ninguém baixar, eles deletam tal arquivo, e sobre scripts não funcionais ta certo que tem muitos tópicos que não funciona, mas talvez possa não funcionar pra você e sim para outras pessoas, e partir desses scripts outros scripters pegam e melhoram e criam algo melhor, não é culpa de quem posta e sim do usuário que pega, não ter nenhum conhecimento necessário para faze-lo funcionar.
     
    É minha opnião.
     
    Abrçs
     
    Ps : 4 tipo de pessoa : as que entram apenas por entrar, seja pra bater papo, conversar com amigos, etc...

Informação Importante

Confirmação de Termo