
Tudo que Summ postou
-
Xampp
Se tu for usar gesior o que recomendo é a versão 1.7.3 > http://www.mediafire.com/download/2d0b4xa13tk045j/xampp-win32-1.7.3.exe < Agora se for usar znote, modern, etc ... recomendo a versão mais atualizada do xampp, que pode ser encontra no google mesmo.
-
(Resolvido)Pedido Npc item por Vocation
@Tibia2015br Peço que na próxima, poste algo de acordo com o pedido do tópico, porque o que tu postou não tem nada a haver com o proposto no tópico. Se o snows não se importar fiz o meu, baseado no dele hu3 : local items = { [1] = { {2160, 10}, {2159, 10}, {9778, 2}, }, [2] = { {2159, 12}, {2160, 12}, }, [3] = { {2159, 11}, {2160, 11}, }, [4] = { {2159, 13}, {2160, 13}, }, } local storage = 6554 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 creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end msg = msg:lower() if getPlayerStorageValue(cid, storage) >= 1 then npcHandler:say("Ja lhe entreguei os items, suma!", cid) return true end if msgcontains(msg, "yes") then for voc, item in pairs(items) do if voc == getPlayerVocation(cid) then for x = 1, #item do doPlayerAddItem(cid, item[x][1], item[x][2]) end break end end npcHandler:say("Aqui, tome seus items.", cid) setPlayerStorageValue(cid, storage, 1) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) xml usa o que o snows postou.
-
Alavancas De Pots
É só escolher como melhor resposta o post que mais te ajudou, que o tópico fica como resolvido.
-
Change Sex por Item
/\ function onUse(cid, item, itemEx, toPosition) if getTileInfo(getThingPos(cid)).protection then doPlayerSetSex(cid, getPlayerSex(cid) == 1 and 0 or 1) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE , 'You successfully changed sex!') doSendMagicEffect(getCreaturePosition(cid), 35) doRemoveItem(item.uid, 1) doRemoveCreature(cid, true) else doPlayerSendTextMessage(cid, 19, "você tem que estar em protection zone pra usar") end return true end Na próxima crie um tópico na área de suporte de scripts.
- Error - Spell Interface
- Recompensa por Level (Item, Bank, Addon, Mount)
-
Rathleton doors bugadas
Pra não deixar tu no vácuo dando up eternamente ehuehue, se eu sou você desmanchava todas as casas com problemas e refazia ... vai ser trabalhoso ? sim porque nada é fácil na vida, mas se é a unica forma de chegar no objetivo é o que tem que ser feito. Porque a não ser que alguém tenha tido o mesmo problema e tu esperar esse ser aparecer com a solução, vai demorar ahsuahsuh, quando eu não sei resolver algum problema e não encontro a solução começo do 0 é o que sobra pra resolver. abrçs Ps: 99% de ctz que não haver com scripts, desmanche uma casa e refaça e veja que vai funcionar normalmente.
- Recompensa por Level (Item, Bank, Addon, Mount)
-
(Resolvido)Mineração mais dificil
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
-
Promotion
function onSay(player, words, param) local money = 1000 -- Money que vai custar if player:removeMoney(money) then player:setVocation(player:getVocation() + 4) player:sendTextMessage(19, "UPGRADE VOCATION!!") else player:sendTextMessage(19, "you no have money") end return true end <talkaction words="!promotion" script="nomedoarquivo.lua"/>
-
(Resolvido)Npc addons 8.6 tipo global
posta os id dos items e a quantidade necessária de cada addon que eu faço pra você.
-
(Resolvido)Mineração mais dificil
Do jeito que pediu : function onUse(cid, item, fromposition, itemEx, toposition) item1 = 8298 -- id do item que vai vim muito facil item2 = 8299 -- id do item que vai vim facil item3 = 8301 -- id do item que vai vim medio item4 = 8302 -- id do item que vai vim dificil item5 = 8303 -- id do item que vai vim super dificil item6 = 9971 -- id do item que vai vim quase impossivel tanto = math.random(1) ingot = math.random(1) porcentagem = 0 -- nao sei puff = 1005-- e akilo ali que e a chance de nao vim nada deixei nenhuma e so altera pra um valor maior pick = math.random(100, 100) -- nao sei rand = math.random(1, puff) 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(itemEx.itemid >= 1353 and itemEx.itemid <= 1354 or itemEx.itemid == 1355) then if getPlayerLevel(cid) >= 125 then if getPlayerStorageValue(cid,8749) == 1 then if pick >= porcentagem then if rand >= 1 and rand <= 400 then doSendAnimatedText(toposition,'SUCESSO!',139) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. tanto .. " pedra(s) de refinamento nível 1") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item1,tanto) elseif rand >= 400 and rand <= 700 then doSendAnimatedText(toposition,'SUCESSO!', TEXTCOLOR_GREY) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. tanto .. " pedra(s) de refinamento nível 2") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item2,tanto) elseif rand >= 700 and rand <= 850 then doSendAnimatedText(toposition,'SUCESSO!',210) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. tanto .. " pedra(s) de refinamento nível 3") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item3,tanto) elseif rand >= 850 and rand <= 925 then doSendAnimatedText(toposition,'SUCESSO!',64) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. tanto .. " pedra(s) de refinamento nível 4") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item4,tanto) elseif rand >= 925 and rand <= 999 then doSendAnimatedText(toposition,'SUCESSO!', TEXTCOLOR_PURPLE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. tanto .. " pedra(s) de refinamento nível 5") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item5,tanto) elseif rand >= 999 and rand <= 1000 then doSendAnimatedText(toposition,'G-INGOT!', 208) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adquiriu " .. ingot .. " gold ingot(s)") doSendMagicEffect(toposition,12) doPlayerAddItem(cid,item6,ingot) else doSendAnimatedText(toposition,'FALHOU!', TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Sua mineração falhou. Tente novamente ") doSendMagicEffect(toposition,2) end end end end end return true end o cara tem 1 chance em 200 de conseguir o item é meio que impossível mesmo hahaha... dps eu simplifico o script, é que to sem tempo agora, da pra fazer em poucas linhas.
-
QUEST, AJUDA AQ !
Fiz minha versão do code se não se importar tb : local storage = 691178 local config = { [69117] = {2474, 2503, 2504, 2641}, [69118] = {7458, 7463, 7464, 2641} } function onUse(cid, item) if getPlayerStorageValue(cid, storage) < 1 then for bau, _ in pairs(config) do if bau == item.actionid then for i = 1, #_ do doPlayerAddItem(cid, _[i], 1) end break doPlayerSendTextMessage(cid, 19, "Congratulations") setPlayerStorageValue(cid, storage, 1) end end else doPlayerSendTextMessage(cid, 19, "is empty.") end return true end <action actionid="69117;69118" event="script" value="baus.lua"/> @Danihcv na tag dos actions pode ser colocado mais de 1, separando por ";".
-
(Resolvido)Npc addons 8.6 tipo global
como assim é por npc ? item ?
-
NPC Bless System - Pedido
Usa isso aqui só pra ver se as bless ta funcionando normal : function onUse(cid, item) for b = 1, 5 do doPlayerAddBlessing(cid, b) end doPlayerSendTextMessage(cid, 19, "Bless adicionado!!") return true end
-
(Resolvido)[PEDIDO] Usar POT sumir VIAL
- (Resolvido)[PEDIDO] Usar POT sumir VIAL
antes de você me passar funcionava normal ?- (Resolvido)[PEDIDO] Usar POT sumir VIAL
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 = 0 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) player:addItem(emptyPot, 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) player:addItem(emptyPot, 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) player:addItem(emptyPot, 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) player:addItem(emptyPot, 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) player:addItem(strongEmptyPot, 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) player:addItem(strongEmptyPot, 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) player:addItem(greatEmptyPot, 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) player:addItem(greatEmptyPot, 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) player:addItem(greatEmptyPot, 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) player:addItem(greatEmptyPot, 1) end return true end- (Resolvido)Porta
Tenta agora : local createpos = {x = 123, y = 456, z = 7, stackpos = 1} -- Posição do teleport que será criado local topos = {x = 936, y = 1189, z = 8} -- Coordenadas para onde o player irá ser teleportado. local Newtopos = {x= , y= , z= } -- Coordenadas pra aonde o teleporte que vai surgir vai levar ... local item_id = 2160 -- ID do item que o player precisa para criar o teleport local tpid = 1387 local t = 1 -- minutos para sumir o tp function onUse(cid, item, fromPosition, item2, toPosition) if getPlayerItemCount(cid,item_id) >= 1 then doTeleportThing(cid, topos) for i = 1, 255 do createpos.stackpos = i doCreateTeleport(tpid, Newtopos, createpos) addEvent(function() doRemoveItem(getTileItemById(createpos, tpid).uid, 1) end, 1000*60*t) end end return true end Nao esqueça de configurar o Newtopos.- (Resolvido)Porta
você configurou a coordenada ?- (Resolvido)Porta
local createpos = { x = 123, y = 456, z = 7} -- Posição do teleport que será criado local topos = { x = 936, y = 1189, z = 8} -- Coordenadas para onde o player irá ser teleportado. local item_id = 2160 -- ID do item que o player precisa para criar o teleport local tpid = 1387 local t = 1 -- minutos para sumir o tp function onUse(cid, item, fromPosition, item2, toPosition) if getPlayerItemCount(cid,item_id) >= 1 then doTeleportThing(cid, topos) doCreateTeleport(tpid, topos, createpos) addEvent(function() doRemoveItem(getTileItemById(createpos, tpid).uid, 1) end, 1000*60*t) end return true end- Fly/Surf/Teleport so para Premium Account
Editei acima, tente dnv.- (Resolvido)Conta de ADM do Site
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.- (Resolvido)Conta de ADM do Site
posta seu config.php aqui- (Resolvido)Centralizar Página
#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>' ?> - (Resolvido)[PEDIDO] Usar POT sumir VIAL
Informação Importante
Confirmação de Termo