Ir para conteúdo
Entre para seguir isso  
Pedroddcunha

[N:Fácil] Soft Boots igual Tibia Rl

Recommended Posts

Convidado ShadowCast   
Convidado ShadowCast

Parabens

bom tutorial

aprovadissimo

by

shadow cast

 

 

 

flwss

Compartilhar este post


Link para o post
Compartilhar em outros sites
florestan    1
florestan

ela nao esta 100% real ainda

 

faiz assim

 

troca isso

 

<item id="2640" name="soft boots">

<attribute key="weight" value="800"></attribute>

<attribute key="slotType" value="feet"></attribute>

<attribute key="decayTo" value="0"></attribute>

por isso aki

 

<item id="2640" name="soft boots">

<attribute key="weight" value="800"></attribute>

<attribute key="slotType" value="feet"></attribute>

<attribute key="decayTo" value="6530"></attribute>

oq vai acontecer eh q quando o tempo da sua boots acabar ela vai virar uma worn leather boots, entao vamo para parte do npc, ond vc podera recarregar sua soft boots

 

local internalCustomerQueue = {}

local keywordHandler = KeywordHandler:new({root = {}})

local npcHandler = ShopNpcHandler:new({})

local customerQueue = CustomerQueue:new({customers = internalCustomerQueue, handler = npcHandler})

npcHandler:init(customerQueue, keywordHandler)

npcHandler.walkDistance = 0



function onThingMove(creature, thing, oldpos, oldstackpos) npcHandlernThingMove(creature, thing, oldpos, oldstackpos) end

function onCreatureAppear(creature) npcHandlernCreatureAppear(creature) end

function onCreatureDisappear(id) npcHandlernCreatureDisappear(id) end

function onCreatureTurn(creature) npcHandlernCreatureTurn(creature) end

function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end

function onCreatureChangeOutfit(creature) npcHandlernCreatureChangeOutfit(creature) end

function onThink() npcHandlernThink() end



function tradeItemForItem(cid, message, keywords, parameters) return npcHandler:defaultItemForItemHandler(cid, message, keywords, parameters) end

function tradeItem(cid, message, keywords, parameters) return npcHandler:defaultTradeHandler(cid, message, keywords, parameters) end

function confirmAction(cid, message, keywords, parameters) return npcHandler:defaultConfirmHandler(cid, message, keywords, parameters) end

function sayMessage(cid, message, keywords, parameters) return npcHandler:defaultMessageHandler(cid, message, keywords, parameters) end

function greet(cid, message, keywords, parameters) return npcHandler:defaultGreetHandler(cid, message, keywords, parameters) end

function farewell(cid, message, keywords, parameters) return npcHandler:defaultFarewellHandler(cid, message, keywords, parameters) end



--SOFT BOOTS

keywordHandler:addKeyword({'magic boots'}, tradeItemForItem, {itemid1 = 6132, count1 = 1, stackable1 = false, itemid2 = 6530, count2 = 1, cost = 0, prize = 0, stackable2 = true, itemname1 = "soft boots"})



keywordHandler:addKeyword({'yes'}, confirmAction)

keywordHandler:addKeyword({'no'}, confirmAction)



keywordHandler:addKeyword({'offer'}, sayMessage, {text = 'I sell and buy different kinds items like amulets, rings and rods.', onlyfocus = true})

keywordHandler:addKeyword({'sell'}, sayMessage, {text = 'Why would I need that rubbish?', onlyfocus = true})

keywordHandler:addKeyword({'job'}, sayMessage, {text = 'I sell all kinds of tools.', onlyfocus = true})

keywordHandler:addKeyword({'quest'}, sayMessage, {text = 'A quest is nothing I want to be involved in.', onlyfocus = true})

keywordHandler:addKeyword({'mission'},sayMessage, {text = 'I cannot help you in that area, son.', onlyfocus = true})

keywordHandler:addKeyword({'buy'}, sayMessage, {text = 'Sorry but I do not sell those.', onlyfocus = true})

keywordHandler:addKeyword({'soft boots'}, sayMessage, {text = 'Wow, essa bota é Fantastica,

eu fiquei procurando ela por anos, e finalmente eu achei ela, hey sua boots mudou tbm??, por 10 k eu posso concertar para o senhor, fale "magic boots"', onlyfocus = true})



keywordHandler:addKeyword({'hi'}, greet, nil)

keywordHandler:addKeyword({'hello'}, greet, nil)

keywordHandler:addKeyword({'hey'}, greet, nil)

keywordHandler:addKeyword({'bye'}, farewell, nil)

keywordHandler:addKeyword({'farewell'}, farewell, nil)

eh isso ai flws

Compartilhar este post


Link para o post
Compartilhar em outros sites
Ajcmaster    0
Ajcmaster

massa, só falta ajeita o negócio de ela se transforma em soft boots, mudando o decayto para 6530 e o name do item 6530 para worn soft boots, daí fica perfeito ;P

Compartilhar este post


Link para o post
Compartilhar em outros sites
florestan    1
florestan

Originally posted by Ajcmaster

massa, só falta ajeita o negócio de ela se transforma em soft boots, mudando o decayto para 6530 e o name do item 6530 para worn soft boots, daí fica perfeito ;P

sim, isso eh facil procura pelo id 6530 vc vai acha isso

 

<item id="6530" name="worn leather boots">

	<attribute key="weight" value="900"></attribute>

agora troca por isso

 

<item id="6530" name="worn soft boots">

	<attribute key="weight" value="800"/>

	<attribute key="description" value=" Someone specialised in shoes might be able to repair them for you."/>

</item>

agora eh 100%

FLWS AI

Compartilhar este post


Link para o post
Compartilhar em outros sites
Convidado Su Su Supremo   
Convidado Su Su Supremo

omg omg que rox.. parabens mt util recomendado

Compartilhar este post


Link para o post
Compartilhar em outros sites
Pedroddcunha    3
Pedroddcunha

@florestan

Obrigado

Não sabia disto ainda

Ja atualizei o post la

 

Obrigado pela sua ajuda

Compartilhar este post


Link para o post
Compartilhar em outros sites
Don Corleone    0
Don Corleone

Sem palavras!

Ficou show, vo coloca no meu servidor!!!

 

Esse npc também ajudou!

Parabéns!

Compartilhar este post


Link para o post
Compartilhar em outros sites
Ze the Hunter    0
Ze the Hunter

PArece Bom vo testar

Compartilhar este post


Link para o post
Compartilhar em outros sites
god    0
god

npc nao funfo ake =/

 

uso evolutions 0.7.8

Compartilhar este post


Link para o post
Compartilhar em outros sites
lucas10    0
lucas10

nossa mto util para todos os ot q jogamos ou fazemos parabens

Compartilhar este post


Link para o post
Compartilhar em outros sites
rivcdrigo    0
rivcdrigo

soft boots infinita fik style xD

a quest pra telas em meu ot e dificil pakas intaum vale a pena achalas =]

cya e obrigado por mais essa ajuda!

Compartilhar este post


Link para o post
Compartilhar em outros sites
guilhermememe    0
guilhermememe

parece que só no meu nao deu...evolution 0.7.6 tibia 7.92..

a soft boots nao fica no lugar onde deveria ficar (no lugar das botas) e quando mecho nisso tds ekips quando vc da look aparece algo assemelhado com isso : You see a item look type XXX (ID do item)

porque?

ajuda plx

Compartilhar este post


Link para o post
Compartilhar em outros sites
ronier    0
ronier

Bom topico

Mas nao Sei mexe em npc

Alguem pode por um tuto mais detalhado ou um npc pronto pra recarregar ela?

por favor!

Compartilhar este post


Link para o post
Compartilhar em outros sites
Fukky~    0
Fukky~

Ajuda mt.. meu amigo tava precisando disso a alguns tempos e conseguiu resolver o problema dele.. Parabens.

Compartilhar este post


Link para o post
Compartilhar em outros sites
ronier    0
ronier

Aee Galera Alguem posta como faser um Npc de Soft pra OTserv zorzin plx smile.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites
adian    0
adian

manoooo tem como me manda o scrip ae ja pronto???

n to conseguindo... qualquer coisa me add ae [email protected]

Compartilhar este post


Link para o post
Compartilhar em outros sites
BieL    1
BieL

oO

rox o tuto

parabens

eu nunk consegui por as minhas soft boots pra funcionar

primera vez

xD

Compartilhar este post


Link para o post
Compartilhar em outros sites
Rowan    0
Rowan

eu testei tudo certinho como disseram so nao funcionou o decayto mas ja responderam arrumando entao ja que esta tudo perfeito resolvi arrumar um npc pra quem nao conseguiu usar o npc ali

 

 

 

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
 	if focus == cid then
         selfSay('Good bye then.')
         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, msg)
 	msg = string.lower(msg)

 	if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then
 		selfSay('Hello ' .. creatureGetName(cid) .. '! Eu recarrego soft boots por(10k).')
 		focus = cid
 		talk_start = os.clock()

 	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
 		selfSay('Sorry, ' .. creatureGetName(cid) .. '! Espere um momento.')

 	elseif focus == cid then
	talk_start = os.clock()

	if msgcontains(msg, 'recarga') then
		sell(cid,6530,1,0)
		buy(cid,6132,1,0)

	elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
		selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
		focus = 0
		talk_start = 0
	end
 	end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
 	if (os.clock() - talk_start) > 30 then
 		if focus > 0 then
 			selfSay('Proximo...')
 		end
		focus = 0
 	end
	if focus ~= 0 then
		if getDistanceToCreature(focus) > 5 then
			selfSay('Good bye then.')
			focus = 0
		end
	end
end

Compartilhar este post


Link para o post
Compartilhar em outros sites
keth_lin    0
keth_lin

Muito bom tutorial, daqui um tempo todos os otserves terão mesmas funções de tibia (se ja não tem hehe)

Compartilhar este post


Link para o post
Compartilhar em outros sites
123321123321    0
123321123321

Bom...

pedroddcunha não tenho nada a dizer além de:

Aprovado!

 

Apesar de que esse meu aprovado não vale nada né....=P

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faça login para comentar

Você vai ser capaz de deixar um comentário após fazer o login



Entrar Agora
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×