-
Total de itens
884 -
Registro em
-
Última visita
-
Dias Ganhos
8
Tudo que notle2012 postou
-
vai em data\XML\vocations.xml aposta a vocations.xml pra mim ver
-
vc posto errado vou ver se alguém move pra vc
-
acho que não amigo vc tem que deleta as que não usa assim fica com mais espaço por isso muita gente re faz o cliente tirando os de tibia e deixando só os de pokemon
-
acheii um pequeno erro tenta esse -- Vip System by Gean Riot function onStepIn(cid, item, position, fromPosition) local fromPosition local config = { msgDenied = "Sorry Only absolute Vip Account.", msgWelcome = "Welcome to absolute city." } if getPlayerPremiumDays(cid) >= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, 22, config.msgWelcome) return true end
-
t.lua deve ter algo errado aposta ela pra mim ver ou tirar essa linha <talkaction words="shenron1" script="t.lua" /> assim para de aparecer esse no console
-
não só muito bom nesse negocio de tempo ver assim local config = { semana_mes = "semana", days = {2,3,4,5,6,}, tempo = 15, p = {{x=601,y=40,z=7}, {x=601,y=41,z=7}, {x=601,y=42,z=7}, {x=601,y=43,z=7}, {x=601,y=44,z=7}, {x=685,y=40,z=7}, {x=685,y=41,z=7}, {x=685,y=42,z=7}, {x=685,y=43,z=7}, {x=685,y=44,z=7} }, idpedra=1304, p2 = {{x=613,y=40,z=7}, {x=613,y=41,z=7}, {x=613,y=42,z=7}, {x=613,y=43,z=7}, {x=613,y=44,z=7}, {x=625,y=40,z=7}, {x=625,y=41,z=7}, {x=625,y=42,z=7}, {x=625,y=43,z=7}, {x=625,y=44,z=7}, {x=638,y=43,z=7}, {x=640,y=42,z=7}, {x=648,y=40,z=7}, {x=646,y=42,z=7} }, idpedra2=1353, p3 = {{x=661,y=40,z=7}, {x=661,y=41,z=7}, {x=661,y=42,z=7}, {x=661,y=43,z=7}, {x=661,y=44,z=7}, {x=673,y=40,z=7}, {x=673,y=41,z=7}, {x=673,y=42,z=7}, {x=673,y=43,z=7}, {x=673,y=44,z=7} }, idpedra3=1354, m={{"Gerador Azul I",{x=607,y=42,z=7}}, {"Gerador Vermelho I",{x=679,y=42,z=7}} }, nkpos = {{x=1,y=1,z=7}, {x=1,y=1,z=7}, {x=1,y=1,z=7}, {x=1,y=1,z=7}, {x=1,y=1,z=7}, {x=1,y=1,z=7} }} --em segundos function onTime() local time = os.date("*t") if (config.semana_mes == "semana" and isInArray(config.days,time.wday)) or (config.semana_mes == "mes" and isInArray(config.daystime.day)) or config.semana_mes == "" then for _,k in pairs(config.nkpos) do if isMonster(getTopCreature(k).uid) then doRemoveCreature(getTopCreature(k).uid) end end for _,k in pairs(config.p) do doRemoveItem(getTileItemById(k,config.idpedra).uid,1) end for _,k in pairs(config.p2) do doRemoveItem(getTileItemById(k,config.idpedra2).uid,1) end for _,k in pairs(config.p3) do doRemoveItem(getTileItemById(k,config.idpedra3).uid,1) end for _,k in pairs(config.p) do doCreateItem(config.idpedra,k) end for _,k in pairs(config.p2) do doCreateItem(config.idpedra2,k) end for _,k in pairs(config.p3) do doCreateItem(config.idpedra3,k) end for _,o in pairs(config.m) do doSummonCreature(o[1],o[2]) end local mensage1 = "[Evento Dota] Liberada Sala dos Times! Quem quiser Participar, vá para a sala de times até o Evento começar. Depois que começar, sÓ na outra rodada! Gogo (TELEPORTE PARA O DOTA NO TEMPLO DA CIDADE PRINCIPAL)" -- Mensagem Inicial gatepos = {x=677, y=14, z=7, stackpos=1} -- Posição da Pedra getgate = getThingfromPos(gatepos) if getgate.itemid == 1304 then broadcastMessage(mensage1, MESSAGE_EVENT_ADVANCE) doRemoveItem(getgate.uid,1) end addEvent(startDota,config.tempo*100,nil) end return true end function startDota() local mensage1 = "[Evento Dota] Evento Iniciado! Destruam as Torres! quem destruir as 3 Torres primeiro, Ganha!" -- Mensagem Inicial local monster1 = "Gerador Azul I" -- Geradores Iniciais local monster2 = "Gerador Vermelho I" -- Geradores Iniciais gatepos = {x=685, y=42, z=7, stackpos=1} -- Posição da Pedras 1 getgate = getThingfromPos(gatepos) gatepos11 = {x=685, y=41, z=7, stackpos=1} -- Posição da Pedras 11 getgate11 = getThingfromPos(gatepos11) gatepos12 = {x=685, y=40, z=7, stackpos=1} -- Posição da Pedras 12 getgate12 = getThingfromPos(gatepos12) gatepos13 = {x=685, y=44, z=7, stackpos=1} -- Posição da Pedras 13 getgate13 = getThingfromPos(gatepos13) gatepos14 = {x=685, y=43, z=7, stackpos=1} -- Posição da Pedras 14 getgate14 = getThingfromPos(gatepos14) gatepos2 = {x=601, y=42, z=7, stackpos=1} -- Posição da Pedra 2 getgate2 = getThingfromPos(gatepos2) gatepos21 = {x=601, y=41, z=7, stackpos=1} -- Posição da Pedra 21 getgate21 = getThingfromPos(gatepos21) gatepos22 = {x=601, y=40, z=7, stackpos=1} -- Posição da Pedra 22 getgate22 = getThingfromPos(gatepos22) gatepos23 = {x=601, y=43, z=7, stackpos=1} -- Posição da Pedra 23 getgate23 = getThingfromPos(gatepos23) gatepos24 = {x=601, y=44, z=7, stackpos=1} -- Posição da Pedra 24 getgate24 = getThingfromPos(gatepos24) if getgate.itemid == 1304 and getgate2.itemid == 1304 then broadcastMessage(mensage1, MESSAGE_EVENT_ADVANCE) doRemoveItem(getgate.uid,1) doRemoveItem(getgate11.uid,1) doRemoveItem(getgate12.uid,1) doRemoveItem(getgate13.uid,1) doRemoveItem(getgate14.uid,1) doRemoveItem(getgate2.uid,1) doRemoveItem(getgate21.uid,1) doRemoveItem(getgate22.uid,1) doRemoveItem(getgate23.uid,1) doRemoveItem(getgate24.uid,1) doCreateItem(1304, {x=677, y=14, z=7}) end end
-
8.6 Global Compacto Edited By Matheusvidaloka
tópico respondeu ao MatheusVidaLoka de notle2012 em OTServ Comum
muito bom gostei muito do tipo de map -
[Arquivado]Exercícios Sobre As Funções Dos Scripts De Lua
tópico respondeu ao Izaiasousa de notle2012 em Noticias - Arquivo
TODOS Aguardado Minha Nota Avaliação Errei Em Que Acertei Em Que devo ter errado em function onStepIn -
huum parece ter ficado bom baixando pra ver melhor
-
dúvida [Encerrado] Sobre Database ( Sql )
tópico respondeu ao jhonatanp de notle2012 em Tópicos Sem Resposta
ot sqlite vai ta no arquivo.s3db se for mysql vc vai ter acc pelo xampp -
[Arquivado]Funções Dos Scripts De Lua #7
tópico respondeu ao Izaiasousa de notle2012 em Noticias - Arquivo
tutorial ta ótimo -
@topico achei muito boa essa quest sim precisa das 4 vocations juntas
-
data\talkactions\scripts\bless.lua function onSay(cid, words, param) local fail = 0 if getPlayerLevel(cid) < 31 then cost = 2000 else cost = ((getPlayerLevel(cid) - 30) * 200) + 2000 end if cost > 20000 then cost = 20000 end for i = 1, 5 do if getPlayerBlessing(cid, i) then fail = fail + 1 else if doPlayerRemoveMoney(cid, cost) == TRUE then doPlayerAddBlessing(cid, i) if i == 5 and not(fail == 5) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) end else doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings!") break end end end if fail == 5 then doPlayerSendCancel(cid, "You already have all the blessings!") end return TRUE end data\talkactions\talkactions.xml <talkaction words="!bless" script="bless.lua" /> aqui bless não sei como funciona esse Perfect System Vip se não editava mais deixa como base pra alguém
-
kkkkkk é fácil assim é?
-
Há um NPC que fiz. Ele vende a 100kk 100 Super coins (ID: 10560) -- Não Feito aqui ta 1 acebei de fazer NPC comando !buysafirapet da Use Na Pedra só vc troca nome do bicho pra um bem editado que hita 34k e pronto e edita os texto
-
primeiro ver se npc pego na sua versão ele renomeia com pokemon fora da ball ou dentro da ball renomeia ele fora da ball pra ver se pego pq se vc renomeia ele dentro da ball quando tirar não vai funcionar pq o seu goback.lua não esta editado ainda
-
tem imagem pra ver como esta indo???
-
ja tento tirar essa linha <globalevent name="clean" interval="7200" event="script" value="clean.lua"/> pra fazer um test??? fica em data\globalevents\globalevents.xml
-
data\npc\Namer.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Namer" script="nick.lua" walkinterval="350000" floorchange="0" speed="0" lookdir="2"> <health now="150" max="150"/> <look type="614" head="115" body="122" legs="0" feet="76"/> <parameters> </parameters> </npc> data\npc\scripts\nick.lua local focus = 0 local talk_start = 0 local conv = 0 local target = 0 local following = false local attacking = false local talkState = {} local finalname = "" function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye sir!') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msge) local msg = string.lower(msge) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if focus == cid then talk_start = os.clock() end local auras = {"red aura", "blue aura", "green aura", "yellow aura", "white aura", "gray aura", "cyan aura", "purple aura", "orange aura"} if (msgcontains(msg, 'hi') and (focus == 0) and (getDistanceToCreature(cid) <= 4)) then focus = cid conv = 1 talk_start = os.clock() selfSay("Hello, "..getCreatureName(cid).."! Eu posso dar o seu Pokémon um apelido me diga 'nickname' e nome que queira") elseif (msgcontains(msg, "no") or msgcontains(msg, "bye")) and focus == cid and conv ~= 3 then selfSay("No problem then, sir. Come back when you feel like it!") focus = 0 elseif (msgcontains(msg, "nick") or msgcontains(msg, "nickname")) and focus == cid and conv == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end selfSay("Put your pokemon at the main slot and tell me, what nickname would you like me to give to your pokemon?") conv = 3 elseif msgcontains(msg, "aura") and focus == cid and conv == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end local pb = getPlayerSlotItem(cid, 8).uid if not getItemAttribute(pb, "boost") or getItemAttribute(pb, "boost") < 50 then selfSay("Sorry, your pokemon is not boosted +50!") focus = 0 return true end selfSay("You can choose one of these auras: red aura, blue aura, green aura, yellow aura, white aura, gray aura, cyan aura, purple aura, orange aura. Which one do you prefer?") conv = 9 elseif isInArray(auras, msg) and focus == cid and conv == 9 then selfSay("Are you sure that you want to put a "..msg.." in your pokemon?") conv = 11 local d, e = msg:find('(.-) aura') auraFinal = string.sub(msg, d -1, e - 5) elseif msgcontains(msg, "yes") and focus == cid and conv == 11 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end local pb = getPlayerSlotItem(cid, 8).uid if not getItemAttribute(pb, "boost") or getItemAttribute(pb, "boost") < 50 then selfSay("Sorry, your pokemon is not boosted +50!") focus = 0 return true end doItemSetAttribute(pb, "aura", auraFinal) selfSay("Done! Now your pokemon have a new elemental aura. Enjoy it!") if #getCreatureSummons(cid) >= 1 then adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid) end focus = 0 conv = 0 elseif conv == 3 and focus == cid then local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"} local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"} for a = 1, #table do if string.find(msg, table[a]) then selfSay("Sorry, the nick has invalid symbols.") return true end end if string.len(msg) <= 1 or string.len(msg) >= 19 then selfSay("Sorry, that nick is too long or too short!") return true end local pokename = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") selfSay("Are you sure that you want to change your's "..pokename.." name to \""..msge.."\"? This is going to cost you 10 hundred dollars.") conv = 5 finalname = msge elseif msgcontains(msg, "yes") and focus == cid and conv == 5 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Where is your pokemon?! You have to keep it at the main slot!") focus = 0 return true end if doPlayerRemoveMoney(cid, 100000) == false then selfSay("You don't have enough money to afford this service, come back later.") focus = 0 conv = 0 return true end local nick = ""..finalname.."" local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."." selfSay("Done! Your pokemon now has a new name, enjoy it!") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick) local newdes = description.."\nIt's nickname is: "..finalname.."." doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes) local hp = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "happy") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "happy", hp + 25) if #getCreatureSummons(cid) >= 1 then adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid) end focus = 0 conv = 0 end end local intervalmin = 38 local intervalmax = 70 local delay = 25 local number = 1 local messages = {"Want to give some nicknames to your pokemon? Talk to me!", "Did you know your pokemon gets a little happier when you give him a nickname?", "Every pokemon wants to have a nickname! Come talk to me!", "Pokemons love nicknames, you should give yours one.", } function onThink() if focus == 0 then selfTurn(1) delay = delay - 0.5 if delay <= 0 then selfSay(messages[number]) number = number + 1 if number > #messages then number = 1 end delay = math.random(intervalmin, intervalmax) end return true else if not isCreature(focus) then focus = 0 return true end local npcpos = getThingPos(getThis()) local focpos = getThingPos(focus) if npcpos.z ~= focpos.z then focus = 0 return true end if (os.clock() - talk_start) > 45 then focus = 0 selfSay("Come back some other time!") end if getDistanceToCreature(focus) > 3 then selfSay("Enjoy!") focus = 0 return true end local dir = doDirectPos(npcpos, focpos) selfTurn(dir) end return true end e tenho esse outro local focus = 0 local talk_start = 0 local conv = 0 local target = 0 local following = false local attacking = false local talkState = {} local finalname = "" function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye sir!') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msge) local msg = string.lower(msge) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'hi') and (focus == 0) and (getDistanceToCreature(cid) <= 4)) then --if not isPremium(cid) then --selfSay("Hello, "..getCreatureName(cid).."! I'm sorry, but I can only give nicknames to pokemons for premium members!") --return true --end focus = cid conv = 1 selfSay("Hello, "..getCreatureName(cid).."! I can give your pokemon a nickname, would you like it?") elseif (msgcontains(msg, "no") or msgcontains(msg, "bye")) and focus == cid and conv ~= 3 then selfSay("No problem then, sir. Come back when you feel like it!") focus = 0 elseif msgcontains(msg, "yes") and focus == cid and conv == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end selfSay("Put your pokemon at the main slot and tell me, what nickname would you like me to give to your pokemon?") conv = 3 elseif conv == 3 and focus == cid then local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"} local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"} for a = 1, #table do if string.find(msg, table[a]) then selfSay("Sorry, the nick has invalid symbols.") return true end end if string.len(msg) <= 1 or string.len(msg) >= 19 then selfSay("Sorry, that nick is too long or too short!") return true end local pokename = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") selfSay("Are you sure that you want to change your's "..pokename.." name to \""..msge.."\"? This is going to cost you 10 hundred dollars.") conv = 5 finalname = msge elseif msgcontains(msg, "yes") and focus == cid and conv == 5 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Where is your pokemon?! You have to keep it at the main slot!") focus = 0 return true end if doPlayerRemoveMoney(cid, 100000) == false then selfSay("You don't have enough money to afford this service, come back later.") focus = 0 conv = 0 return true end local nick = ""..finalname.."" local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."." selfSay("Done! Your pokemon now has a new name, enjoy it!") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick) local newdes = description.."\nIt's nickname is: "..finalname.."." doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes) local hp = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "happy") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "happy", hp + 25) if #getCreatureSummons(cid) >= 1 then doCreatureSetNick(getCreatureSummons(cid)[1], finalname) end focus = 0 conv = 0 end end function onThink() if focus ~= 0 then a, b, c = selfGetPosition() if c ~= getThingPos(focus).z then focus = 0 end end if focus ~= 0 then if getDistanceToCreature(focus) > 6 then focus = 0 end end return true end mais tem eu editar goback.lua order.lua look.lua login.lua acho que ainda falto algo kkkkk
-
qual versão vc usa eu tenho sistema de nick aqui
-
pedido Spell Suporte C/ Effect A Cada Segundo.
pergunta respondeu ao IsaqueTeixeira de notle2012 em Scripts
data\spells\scripts\nomedoarquivo.lua local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 3) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, 3) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVELPERCENT, 104) -- não mude setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end data\spells\spells.xml <instant name="nomedoarquivo" words="nomedamagia" lvl="leveldoplayer" mana="quantosdemanaprausa" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="nomedoarquivo.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="4"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="8"/> </instant> não esqueça de editar name="nomedoarquivo" words="nomedamagia" lvl="leveldoplayer" mana="quantosdemanaprausa" -- a magia exhaustion="1000" -- quanto tempo pode usa magia 1000 = 1s -
não entendi vc quer que ele vende ticket 1954 e viaja com ticket 1954 ou viaja com a grana e dps de ter viajado da ticket
-
vc não quer deixa cada arma mais rápida que outra só ir no item.xml adiciona isso <attribute key="attackspeed" value="100"/>
-
[Arquivado]Lista De Funções De Script De Lua #3
tópico respondeu ao Izaiasousa de notle2012 em Noticias - Arquivo
Quero Minha Nota kkkkkkk actions\scripts\test.lua data\actions\action.xml <action uniqueid="9759" script="test.lua"/> -
vou da uma olhada, seu pc tem PLACA DE VIDEO 9800GT lembrei do meu que tinha uma tbm mais troquei por uma 560ti, esse ot 24h on?
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.