Coloque autowalk igual a 0 no arquivo XML do NPC.
info
Grupo: Conde
Registrado: 04/08/12
Posts: 762
Reputação: +80

Assim:
<npc name="Gate Keaper" script="data/npc/scripts/gate.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="287" head="132" body="79" legs="97" feet="132" corpse="2212"/>
</npc>
Editando:
-Modifique a velocidade para 0.
Ficando assim:
<npc name="Gate Keaper" script="data/npc/scripts/gate.lua" autowalk="0" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="287" head="132" body="79" legs="97" feet="132" corpse="2212"/>
</npc>
Apenas um tutorial explicativo.
-------------------
Creditos: REP+ para Oneshot.
Editado Agosto 11 por Newtonnotwen
info
Grupo: Cavaleiro
Registrado: 19/06/11
Posts: 195
Reputação: +14
Char no Tibia: Desconhecido

Dúvida sanda.
Reportado para que movam.






info
Grupo: Visconde
Registrado: 28/07/12
Posts: 273
Reputação: +26
Char no Tibia: Kisame of Tenebra
Ollá, eu criei 1 servidor "8.0" de wodbo e tem algums npcs que ficam andando por tudo e eu gostaria de deixa-los parado sei que tem que mecher nos scripters mas não sei onde, caso alguem saiba oque eu tenho q modificar poste algo abaixao vlw.
Xml do npc :
<npc name="Gate Keaper" script="data/npc/scripts/gate.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="287" head="132" body="79" legs="97" feet="132" corpse="2212"/>
</npc>
Script do npc \/
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
if getPlayerAccess(cid) >= 1 then
selfSay('Earth,M2,Tsufur,Zelta,Vegeta,Namek,Gardia,Lude,Premia (300 zeni everywhere)')
focus = cid
talk_start = os.clock()
else
selfSay('Only premium players can travel by Capsule.')
focus = 0
talk_start = 0
end
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'earth') then
if pay(cid,300) then
travel(cid, 78, 488, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'm2') then
if pay(cid,300) then
travel(cid, 78, 514, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'tsufur') then
if pay(cid,300) then
travel(cid, 105, 488, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'zelta') then
if pay(cid,300) then
travel(cid, 105, 515, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'vegeta') then
if pay(cid,300) then
travel(cid, 141, 489, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'namek') then
if pay(cid,300) then
travel(cid, 141, 515, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'gardia') then
if pay(cid,300) then
travel(cid, 148, 547, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'lude') then
if pay(cid,300) then
travel(cid, 191, 498, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'premia') then
if pay(cid,300) then
travel(cid, 191, 526, 8)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. getCreatureName(cid) .. '!')
focus = 0
talk_start = 0
end
end
end
function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 45 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
end
Editado Agosto 11 por jhonatanp