Rinquero

caquera
em NPCs, monsters e raids

caquera

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 23/08/06Posts: 8

Vamo la

1* vai na sua pasta de otserv em data/npc/script copie qualquer um ai e troque oque ta dentro por isso aki

 

--ox = 44 --oy = 5 --oz = 6 focus = 0 talk_start = 0 target = 0 following = false attacking = false function onThink()	if focus ~= 0 then  if getDistanceToCreature(focus) > 3 then 	 selfSay('Good bye then.') 	 focus = 0  end	end end 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) endfunction 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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then 	 selfSay('Hello ' .. creatureGetName(cid) .. 'Eu compro rings') 	 focus = cid 	 talk_start = os.clock()	elseif string.find(msg, '(%a*)hi ringuero(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then 	 selfSay('Sorry, ' .. creatureGetName(cid) .. 'Espera um poco ######.') 	 elseif focus == cid then 	 talk_start = os.clock()    if msgcontains(msg, 'axe ring') then    sell(cid,2208,1,250) 	 elseif msgcontains(msg, 'club ring') then    sell(cid,2209,1,250) 	 elseif msgcontains(msg, 'crystal ring') then    sell(cid,2124,1,300) 	 elseif msgcontains(msg, 'dwarven ring') then    sell(cid,2213,1,200) 	 elseif msgcontains(msg, 'energy ring') then    sell(cid,2167,1,1000) 	 elseif msgcontains(msg, 'golden ring') then    sell(cid,2179,1,1500)  elseif msgcontains(msg, 'life ring') then    sell(cid,2168,1,100) 	 elseif msgcontains(msg, 'might ring') then    sell(cid,2164,1,1000)  elseif msgcontains(msg, 'power ring') then    sell(cid,2166,1,500)  elseif msgcontains(msg, 'ring of healing') then    sell(cid,2214,1,500)  elseif msgcontains(msg, 'ring of the skies') then    sell(cid,2123,1,5000)  elseif msgcontains(msg, 'stealth ring') then    sell(cid,2292,1,500)  elseif msgcontains(msg, 'sword ring') then    sell(cid,2207,1,250)  elseif msgcontains(msg, 'time ring') then    sell(cid,2169,1,1000)  elseif msgcontains(msg, 'wedding ring') then    sell(cid,2121,1,200) 	 elseif msgcontains(msg, 'rings') then    selfSay('I buy axe (250gp), club (250gp), crystal (300gp), dwarven (200gp), energy (1k), golden (1,5k) life (100gp), might (1k), power (500gp), of healing (500gp), of skies (5k), stealth (500gp), sword (250gp), time (1k), wedding (200gp).') 	 elseif string.find(msg, '(%a*)bye(%a*)')  and getDistanceToCreature(cid) < 3 then    selfSay('Vai com deus, ' .. creatureGetName(cid) .. '!')    focus = 0    talk_start = 0 	 end  end end function onCreatureChangeOutfit(creature) end

 

Salve

2* Agora vai em data/npc copie qualquer um e renomeie pra ringuero abre ele como bloco de notas e cole isso

 

<?xml version="1.0"?><npc name="Ringuero" script="data/npc/scripts/rings.lua" access="3" lookdir="3">	<health now="1" max="1"/>	<look type="128" head="20" body="100" legs="50" feet="99"/></npc>

 

3* Depois e so vc coloca ele no seu Otserv em data/world/npc copie qualquer 1 troque o nome dele pra Rinquero o x y z que e a onde vai fica seu npc.

----------------------------------------------------------------------------------------------

TOMARA QUE EU TENHA AJUDADO

Vitinhu_Foda69

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/10/06Posts: 20

fiko bom mais vc tinha q faze um ringuero q vende se ring

My Webpag
victor.ravagnani@hotmail.com
Metas
10 Post [x]
20 Post [x]
30 Post [x]
40 Post []
50 Post [ ]
60 post [ ]
70 post [ ]
80 post [ ]
90 post [ ]
100 post [ ] ou + !

Planta

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/09/05Posts: 31

Na minha opiniao.. pra q vc ker um npc q compra ring???

totalmente inutil!!! :mad:

skynagerloas

Ex-Moderador
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 13/11/05Posts: 715Char no Tibia: Lord'Skyxt

Tópico contendo somente 1 NpC,

essa seção é para DataPacks com 3 ou mais Npcs,

~o{Tópico Movido}o~,

Abraços.

Atenciosamente, Sky - Lord'Skyxt;

 

Antes de postar, leia isso:



Regras.

[Lord'SkyXT] [FloGão]