
njeffersonm
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
njeffersonm deu reputação a robi123 em (Resolvido)Ajuda com npcs, rashid e djinsonde eu faço isso na versão 10.90 ??
-
njeffersonm deu reputação a Qwizer em [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)as quest que nos outros algumas são bugadas nesse não são, e uns detalhes baixe olhe e veja você mesmo.
ja esta no topico, printer nao tem wote, warzone e bugada falta subsolo de gray nao tem, Chayenne Realm Quest e nao tem Pythius The Rotten Quest só algumas delas que citei
-
njeffersonm deu reputação a DukeeH em (AJUDA) Como Criar ItensQuando um item tem a função de dar algum atributo que não seja só armor/def. (ml, regen, skills...) ele deve ser registrado no movements.xml com uma tag onequip e outra deequip, o id do item e o local que ele vai ser equipado.
Espero ter ajudado.
-
njeffersonm deu reputação a leandrovp em [LINK OFF]Global Map RL 9.80 / 9.81Caracteristicas:
» Trainer offline Estatuas e Camas 100%
» Novas Areas 100%
» Mounts 100%
» Items 97%
» Outfits 100%
» Warzone 100%
» Gnomos Base 100%
» Gray Island 95%
» Task System 100% Com seus Bosses
» Todas as magias novas com Exhausted nao muito prolongado.
» Todos os Monsters para 9.70 (precisa adicionar o novo 9,8 + incluindo spawns em Venore)
» A Maioria das quests do tibia rl
Algumas Fotos .
Creditos:
Leandrovp 3%
Arthurluna 2%
NvSo 5$
Kaiser and The OTX Team 10%
TheForgotten Server 40%
Cipsoft 40%
Ta aqui os respaw da new venore - NPC / Monstros
Em breve Posto os Monstros 9.81
Sources 9.81 OTX Project
New venore-spawn.xml
http://www.4shared.c...Sourcestar.html
GlobalProjectSources.rar
http://www.4shared.c...nore-spawn.html
Download :
http://www.4shared.c...CHt/Ot_981.html
Skype : Leandro_machado92
Face : /leandro.machado.5243
Msn : [email protected]
Ajudei? REP +
-
njeffersonm deu reputação a rollback em Como que cria um npc de barcoPrimeiro crie um arquivo.xml na pasta NPC com o nome de Capitao coruja depois coloque isso dentro.
<npc name="Capitao Coruja" script="data/npc/scripts/coruja.lua" walkinterval="0" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="129" head="114" body="119" legs="114" feet="114" corpse="2212"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. ! Eu posso te levar para {Dorion}, {yalahar}, {alfon}, {venonh}, {anknor}, {smallville} e {goroma}.. Onde deseja ir?" /> <parameter key="message_decline" value="Vai custar |TOTALCOST| gold coins. Vai viajar? Voce pode ir em outras cidades indo ao tapete do meu primo!"/> </parameters> </npc> enceguida abra a pasta NPC/SCRIPTS crie um arquivo coruja.xml e coloque isso dentro. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Yalahar por 210 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 210, destination = {x=1555, y=2576, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para {dorion}, {Yalahar}, {Alfon}, {venonh} e {Anknor} por um pequeno custo.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'dorion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Dorion por 110 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 110, destination = {x=31, y=79, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'dorion\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'alfon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para alfon por 115 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 115, destination = {x=114, y=282, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Alfon\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'venonh'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para venonh por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=238, y=370, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'venohn\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 175 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 175, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'smallville'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para smallville por 190 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 190, destination = {x=1995, y=2394, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'smallville\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'goroma'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Goroma por 55 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 55, destination = {x=1367, y=195, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'goroma\' for just a small fee.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new())
Agora editando o script
local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Yalahar por 210 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 210, destination = {x=1555, y=2576, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'})
keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para {dorion}, {Yalahar}, {Alfon}, {venonh} e {Anknor} por um pequeno custo.'})
Vermelho é a menssagem que ele vai perguntar para o player
Amarelo premium = true aque é se pode viajar so premmy ou free tbm pra por free coloca premium = false já pra so premmy premium = true
Verde level = 2 se precisar de level vc edita pra o lvl que quiser
cost = 210 , é o preço da viagem.
destination = {x=1555, y=2576, z=6 voce edita pra onde o player vai ser levado e assim é a mesma coisa em todos.
Já para editar a menssagem do npc você muda em capitao coruja.xml
Eu posso te levar para {Dorion}, {yalahar}, {alfon}, {venonh}, {anknor}, {smallville} e {goroma}.. Onde deseja ir?
Te ajudei? REP+
-
njeffersonm deu reputação a leandrovp em Estou querendo criar a area vip do meu otTESTAR PORQUE ESSE SCRIPT EU FIZ PRO MEU BAIAK NAO SEI SE EM TFS FUNCIONA
Vai em data/moviments/script e crie um arquivo .lua com nome de sua escolha
-- Script Feito por Leandro Machado
function onStepIn(cid, item, position, fromPosition)
local config = {
msgDenied = "Você nao e VIP DONATE Para comprar Acesse : http://baiak-lero.bl...gspot.com.br/!",
msgWelcome = "Bem Vindo a area VIP DONATE!"
}
if getPlayerStorageValue(cid, 13500) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end
--
Aonde está em azul é action id do pizo
Em moviments.xml coloque :
<movevent type="StepIn" actionid="13500" event="script" value="sistemavip.lua"/>
--
Agora o Item para Clicar e ganhar
vai em Actions/script e criei um arquivo.lua com nome de sua escolha
------
-- Script Feito Por Leandro Machado
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
removeOnUse = "yes" -- remover quando usar ("yes" or "no")
}
local days = 15 -- coloque os dias que serão a VIP!
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, 13500)
local timenow = os.time()
if getPlayerStorageValue(cid, 13500) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, 13500, time)
local quantity = math.floor((getPlayerStorageValue(cid, 13500) - timenow)/(24 * 60 * 60))
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
if (config.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
return TRUE
end
-----
Aonde ta em azul é o Action ID DO piso que voce coloco no primeiro Script
Aonde ta em vermelhor é os dias de vip que vai ganhar quando clicar no item
actions.xml voce coloca
-----
<action itemid="10309" script="sistemavip.lua"/>
Aonde esta em verde é o ID Do item usado!
--------
Ajudei? REP + Por Favor *-*
-
njeffersonm deu reputação a gabrieldiaszin em (Resolvido)Sistema vip por item, com tile!Acesse no seu Otserv/data/actions/scripts/vip(caso n tenha essa pasta cria uma).
La copie um arquivo .lua e cole renome ia ele pra addvip.lua e o que tiver dentro dele deleta e cola isso:
function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 35 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540 ) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end como você disse que quer permanente, é só mudar esta linha e colocar um numero bem alto:
local days = 35 -- dias que serão adicionados Deixe assim:
local days = 9999 -- dias que serão adicionados O 13540 é o storage caso seu OT tenha storage diferente desse só mudar.
Pronto feito isso salve.
Agora volte e vai em Actions/Actions.xml adicione lá essa tag:
Esse id 5785 é da minha preferência mais pode mudar...
Bom, feito isso salve e feche.
E vamos pra outra etapa... Vá em Otserv/data/movements/script... Abra o arquivo viptile.lua.
Dentro dele apague tudo e adicione isto:
function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Você precisa ser vip.", msgWelcome = "Bem-Vindo a Area Vip!." } if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end Feito isso salve e feche.
E pronto teste. Abra seu ot teste caso o OT esteja aberto apenas dê /reload actions e /reload movements.
Espero que seja util.
Creditos:
Vodkart.
-
njeffersonm deu reputação a xWhiteWolf em (Resolvido)FASTER REGENERATIONSó editar no items.xml os itens vip e depois colocar no movements.xml pra fazer a função que vc declarou no items.xml. Se isso soou muito vago pra você me manda PM que eu te ajudo
-
njeffersonm deu reputação a xWhiteWolf em (Resolvido)FASTER REGENERATION<attribute key="healthGain" value="100" /> <attribute key="healthTicks" value="3000" /> <attribute key="manaGain" value="200" /> <attribute key="manaTicks" value="3000" /> ticks é o tempo em milisegundos e healthgain e mana gain é o quanto recupera de vida/mana. (ISSO NO ITEMS.XML)
DAI VC ABRE O MOVEMENTS.XML E COLOCA ISSO <movevent type="Equip" itemid="ID DO SEU HELMET" slot="head" level="40" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="ID DO SEU HELMET" slot="head" event="function" value="onDeEquipItem"/> itemid: coloca o id do item
slot: tipo de lugar que vai ativar o efeito (nesse caso, se vc colocar o helmet em qualquer slot que não seja a cabeça não ativa)
level: level pra usar o item
event e value: não mexe
vocation id é as classes que podem usar, o showIndescription = 0 indica que não vai mostrar aquela classe na descrição (isso serve pra evitar repetições do tipo: Esse item pode ser usado por sorceres e master sorceres)
-
njeffersonm deu reputação a AgaSsI em [Actions] Stamina DollNome do Script: Stamina Doll
Autor: Não sei o autor, pois foi um amigo meu que me passou!
Testado em: Styller 8.6
É um script simples e util, bom para servidores com mapa Global com site.
Instalando: Vá em ...data/actions/scripts, e crie um arquivo chamado stamina-refuel.lua e cole isto dentro:
Código:
function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) end return true end Em actions cole a seguinte tag: Código: <action itemid="ID DO SEU DOLL AQUI" script="stamina-refuel.lua"/>
Onde está "ID DO SEU DOLL AQUI", coloque o número do doll que você deseja. Geralmente utilizam Santa Doll ou Nightmare Doll.
*6512
*11138
Grato!
-
njeffersonm deu reputação a Cat em Erro ao tentar abri ot servero primeiro erro é estranho, fez alguma alteração?