-
Total de itens
884 -
Registro em
-
Última visita
-
Dias Ganhos
8
Tudo que notle2012 postou
-
da look no bau com god que ele diz qual é numero exemplo ItemID: [1746]. ActionID: [13541]. UniqueID: [13541]. dps só ir em actions.xml procura por 13541 <action uniqueid="13541" script="vipchest.lua" /> aqui no meu o nome é vipchest.lua
-
mais ele só quer 2 não vejo nada de errado fazer um simples assim + mesmo assim se vc quer fazer muitos comando como nosso amigo oneshot disse usa esse data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param, channel) --- configuration by notle local t = { {item = 2160, qnt = 1 , preco = 10000, cmd = "!cristal"}, {item = 2161, qnt = 1 , preco = 10000, cmd = "!cristal2"}, {item = 2162, qnt = 1 , preco = 10000, cmd = "!cristal3"} } --- configuration by notle for i = 1, #t do if(words == t[i].cmd) then if (doPlayerRemoveMoney(cid,t[i].preco) and doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)) then doPlayerAddItem(cid,t[i].item,t[i].qnt) doPlayerSendTextMessage(cid,4, "você compro um "..getItemNameById(t[i].item).."") else doPlayerSendTextMessage(cid,4, "você não tem grana") end return TRUE end end end talkactions.xml <talkaction words="!cristal;!cristal2;!cristal3" event="script" value=nomedoarquivo.lua"/> só editar {item = 2160, qnt = 1 , preco = 10000, cmd = "!cristal"}, {item = 2160, -- item que vai comprar qnt = 1 , -- quantos preco = 10000, -- quantos de grana vai gastar cmd = "!cristal" -- comando que vai usar },
-
data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param, channel) --- configuration by notle local grana = {id = 2160, gnt = 100 } --- edita a grana local item = {id = 2161, gnt = 1} -- itens e quantos if doPlayerRemoveItem(cid,grana.id,grana.gnt) then doPlayerAddItem(cid,item.id,item.qnt) doPlayerSendTextMessage(cid,4, "parabéns vc compro um") -- edita aqui else doPlayerSendTextMessage(cid,4, "você não tem grana") end return TRUE end [/code] [b]talkactions.xml[/b] <talkaction words="!cmd" event="script" value="nomedoaquivo.lua"/> só configurar
-
[Pedido] Comando Player Ganhar Montaria Randomica
pergunta respondeu ao augusto_2502 de notle2012 em Scripts
editei o script do nosso amigo Slicer fico assim function onSay(cid, words, param, channel) local montarias = {{id = 2,frase = "frase da montarias 2"}, {id = 3,frase = "frase da montarias 3"}, {id = 13,frase = "frase da montarias 13"}, --aki vc poe as montarias e as frases {id = 19,frase = "frase da montarias 19"}, } local qntdade = 2 local storage = 14787 -- storage if getPlayerStorageValue(cid,storage) == -1 then for i = 1, qntdade do local x = math.random(#montarias) doPlayerAddMount(cid, montarias[x].id) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você Recebeu "..montarias[x].frase) table.remove(montarias, table.find(montarias, montarias[x]) or -1) setPlayerStorageValue(cid,storage,1) end return true end end -
da uma olhada nesse vídeo ou topico http://www.xtibia.co...ns-formato-idc/
-
pedido atendido Reportado aqui
-
[Pedido] Comando Player Ganhar Montaria Randomica
pergunta respondeu ao augusto_2502 de notle2012 em Scripts
não entendi muito bem mais acho que é +ou- isso que vc quer... que sair montaria 13 ou a 3? function onSay(cid, words, param, channel) local x = math.random(1,100) if x < 50 then doPlayerAddMount(cid, 3) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você Recebeu 3") -- montarias numero 3 edita aqui a frase elseif x > 51 then doPlayerAddMount(cid, 13) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você Recebeu 13") -- montarias numero 13 edita aqui a frase return true end end -
terceiro function onSay(cid, words, param) local t = string.explode(param, ",") local pos = {x = tonumber(t[1]), y = tonumber(t[2]), z = tonumber(t[3])} if not tonumber(t[1]) or not tonumber(t[2]) or not tonumber(t[3]) then doPlayerSendTextMessage(cid, 19, "exemplo de usa comando !cmd 160, 54, 7") return true end for _, pid in ipairs(getPlayersOnline()) do if getCreatureName(pid) ~= "Account Manager" then doTeleportThing(pid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) end end return true end usa comando mais posição x,y,z ou usa esse que ja puxa todos para seu lado function onSay(cid, words, param) local players = getPlayersOnline() for i=1, #players do doTeleportThing(players[i], getPlayerPosition(cid)) end return true end
-
[Pokemon] Pda By Slicer 1.9/2.9
tópico respondeu ao Slicer de notle2012 em OTServer Alternativo (ATS)
@ZerefShirou fica bom mais adiciona de baixo dessa Em gameinterface.lua, procure por: menu:addOption(tr('Invite to Party'), function() g_game.partyInvite(creatureThing:getId()) end) adiciona essa menu:addOption(tr('Duel'), function() end) -
ah UM Aqui a 2 data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param, channel) local time = 3 -- 3 minutos function Wall() local x = false local B = { {1056,{x=136, y=50, z=7, stackpos = 1}}, -- 1056 id da parede e posição da parede {1056,{x=137, y=50, z=7, stackpos = 1}}, {1056,{x=138, y=50, z=7, stackpos = 1}}, {1056,{x=139, y=50, z=7, stackpos = 1}} } doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "daqui " ..time.. " minutos as paredes vaii.. sair") for i = 1, #B do if getTileItemById(B[i][2], B[i][1]).uid == 0 then x = true end if x == false then doRemoveItem(getThingfromPos(B[i][2]).uid,1) else doCreateItem(B[i][1], 1, B[i][2]) end end end Wall() addEvent(Wall, 60000*time) return true end talkactions.xml <talkaction words="!wall" event="script" value="nomedoarquivo.lua"/>
-
só edita os IDS essa parte e de Sorcerer Druid Pally Knight
-
5 horas? 3600*5 aqui tutor http://www.xtibia.com/forum/topic/104715-tutorial-ostime-e-storage-values/
-
ver esse se tiver trasnform com bug faz pedido pra galera te ajudar http://www.xtibia.com/forum/topic/163485-854naruto-open-wings-v12-released/
-
dúvida [Encerrado] Duvida Urgente Alavancas
tópico respondeu ao guitutor de notle2012 em Tópicos Sem Resposta
se vc ja editor com map editor usa essa linha actions.xml <action actionid="6656-6661" script="comprar.lua"/> -
Muito bom o tutorial Exercicios Minhas Respostas
-
dúvida [Encerrado] Duvida Urgente Alavancas
tópico respondeu ao guitutor de notle2012 em Tópicos Sem Resposta
local coin = 2160 -- id da sua grana local comprarr = { [6656] = {7763,1000000}, [6657] = {7768,1000000}, [6658] = {7774,1000000}, [6659] = {12648,1000000}, [6660] = {2410,1000000}, [6661] = {2112,500000}, } function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,comprarr[item.actionid][1]) == FALSE then doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..comprarr[item.actionid][1].." " ..getItemNameById(coin)) end doPlayerAddItem(cid,comprarr[item.actionid][2], isItemStackable(comprarr[item.actionid][2]) and 100 or 1) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(comprarr[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) return true end mais vc tinha editado todas as Alavancas com map editor colocando 6656 ate 6661 -
editei aqui da uma olhada ver se pega ai edita newItems = { 2650,1, 13829,1, 2120,1, -- id e as quantidades 2524,2, 2160,1, 1988 -- esse id é da bag }
-
config.lua procura por emoteSpells deixa assim emoteSpells = true
-
[Encerrado] [Problema] No Distro..
tópico respondeu ao KarlKalvin de notle2012 em Tópicos Sem Resposta
poke tibia??? se sim tem a ver com o arquivo que fica em data\creaturescripts\scripts\spawn.lua -
aqui o npc 1 data\npc\scripts\nomedoarquivo.lua tem que editar ja deixei pra vc configurar ------------------- By Notle ------------------- local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local troca = { 2163,100, 2160,50 -- aqui vc edita os ID do item que tem que ter e quantos } local id = 2160 --- id do item que vai ganhar dps da troca local quant = 1 -- item que ganhar Contém quantos? local sto = 1585 -- Storage 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 msgcontains(msg, 'trocaitem') then status = getPlayerStorageValue(cid,sto) if status == -1 then if doPlayerRemoveItem(cid,troca[1],troca[2]) and doPlayerRemoveItem(cid,troca[3],troca[4])then doPlayerAddItem(cid,id,quant) setPlayerStorageValue(cid,sto,1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "coloca um texto aqui") -- edita aqui else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você Não Contém Uns Dos Itens Não Posso Troca.") -- edita aqui end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não Pode Troca De novo") end return TRUE end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) data\npc\nomedoarquivo.xml <npc name="NOMEDONPC" script="data/npc/scripts/nomedoarquivo.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> <parameters> <parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {trocaitem}." /> <parameter key="message_farewell" value="Tchau." /> <parameter key="message_walkaway" value="Tchau." /> </parameters> </npc> edita os em red local troca = { 2163,100, 2160,50 -- aqui vc edita os ID do item que tem que ter e quantos } local id = 2160 --- id do item que vai ganhar dps da troca local quant = 1 -- item que ganhar Contém quantos? NPC 2
-
dúvida New Slayer Yurots 8.60 Tenho Um Problema.
pergunta respondeu ao VibeEletronic3 de notle2012 em Scripts
data\actions\scripts\other aqui vc cria um arquivo teleport.lua coloca isso local upFloorIds = {1386, 3678, 5543} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(upFloorIds, item.itemid) == TRUE then fromPosition.y = fromPosition.y + 1 fromPosition.z = fromPosition.z - 1 else fromPosition.z = fromPosition.z + 1 end doTeleportThing(cid, fromPosition, FALSE) return TRUE end actions.xml <action itemid="430" script="other/teleport.lua"/> <action itemid="1369" script="other/teleport.lua"/> <action itemid="1386" script="other/teleport.lua"/> <action itemid="3678" script="other/teleport.lua"/> <action itemid="5543" script="other/teleport.lua"/> -
data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param, channel) --configuration by notle local i = {qnt = 3, --Quantia de summons permitida level = 10, -- level pra usa summons mana = 250, -- quanto de mana que vai perde assim que usa voc = {1,2,3,4,5,6,7,8,9,10,11,12}, -- ID das vocations ignore = {"demon","apocalypse","treiner"}} -- summon que não pode ser criandos --configuration by notle local pid = cid local t = string.explode(param, ",") if getPlayerMana(cid) > i.mana then if(t[2]) then pid = getPlayerByNameWildcard(t[2]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.") then return true end elseif #getCreatureSummons(cid) == i.qnt and doPlayerSendCancel(cid, "Máximo de summons atingido.") then return true elseif getPlayerLevel(cid) <= i.level and doPlayerSendCancel(cid, "sorry insufficient level [up ate " ..i.level.. "].") then return true elseif not isInArray(i.voc, getPlayerVocation(cid)) and doPlayerSendCancel(cid, " Your vocation can not create summons.") then return true elseif isInArray(i.ignore, string.lower(t[1])) and doPlayerSendCancel(cid, "you can not summon this creature.") then return true end for o = 1,i.qnt and doSummonMonster(pid, t[1]) do doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "you invoked a "..t[1].."") return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) and doPlayerAddMana(cid, -i.mana) and true end else return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) and doPlayerSendCancel(cid, "sorry insufficient mana.") end end talkactions.xml <talkaction words="!cmd" event="script" value="nomedoarquivo.lua"/> pra usa comando !cmd dragon só editar a o gosto --configuration by notle local i = {qnt = 3, --Quantia de summons permitida level = 10, -- level pra usa summons mana = 250, -- quanto de mana que vai perde assim que usa voc = {1,2,3,4,5,6,7,8,9,10,11,12}, -- ID das vocations ignore = {"demon","apocalypse","treiner"}} -- summon que não pode ser criandos --configuration by notle
-
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 crystalid = {2349,2222,4444} -- item que o player deverá ter para fazer a missao local gnt,gnt2,gnt3 = 1,1,1 -- quantos item que vc quer que remove em Order dos id de cima local recom = {2160,2160,2160,2160,2160} -- id das recompensas local gntre = {1,1,1,1,1} -- quantos que vai ganhar das recompensas em Order dos id de cima local level = 50 -- edita aqui level local storage = 2358 local getstorage = getPlayerStorageValue(cid, storage) local sorrymessage = "Desculpe, voce nao tem o item que eu preciso..." local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'aceitar') then if getPlayerLevel(cid) >= level then else npcHandler:say("Somente level " .. level .. " podem fazer essa missoes.", cid) return true end if getstorage == 1 then npcHandler:say("Voce jah completou a mission.", cid) elseif getstorage < 1 then npcHandler:say("Eu quero muito um item escondido nas colinas de Egeu para eu curar a doença de minha filha,mais não sou um guerreiro,voce poderia me {ajudar}?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'ajudar') then if getstorage < 1 then npcHandler:say("Você trouxe o item das colinas de Egeu em troca de 250k? Se sim, fale {yes}.", cid) end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 1 then if getstorage < 0 then if doPlayerRemoveItem(cid, crystalid[1], gnt) and doPlayerRemoveItem(cid, crystalid[2], gnt2) and doPlayerRemoveItem(cid, crystalid[3], gnt3) == TRUE then npcHandler:say("Obrigado por trazer o item.", cid) setPlayerStorageValue(cid, storage, 1) doPlayerAddItem(cid, recom[1], gntre[1]) doPlayerAddItem(cid, recom[2], gntre[2]) doPlayerAddItem(cid, recom[3], gntre[3]) doPlayerAddItem(cid, recom[4], gntre[4]) doPlayerAddItem(cid, recom[5], gntre[5]) talkState[talkUser] = 0 elseif doPlayerRemoveItem(cid, crystalid, 1) == FALSE then npcHandler:say(sorrymessage, cid) talkState[talkUser] = 0 end end end elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then npcHandler:say("OK, Volte quando estiver pronto.", cid) talkState[talkUser] = 0 end return TRUE end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
você tem que usa programa dat editor procura tutorias sobre esse programa
-
ata não tinha lindo tópico ate fim*rsrs repostando aqui pedido atendido mesmo assim deixa meu aqui function onStepIn(cid, item, position, fromPosition) return isPlayer(cid) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) and doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) and TRUE end
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.