RazorBlade
Retired Snek
Hey everyone. I just noticed that I'm able to walk through NPCs. But not all.
Here's the NPC I can walk through:
Now here's the one I can't walk through:
They use the same script, default.lua:
It's so weird.
What could be causing this and how can I fix it?
I'm using TFS 0.4.
Here's the NPC I can walk through:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ralph" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="268" head="57" body="115" legs="95" feet="116" addons="0"/>
<parameters>
<parameter key="message_greet" value="What is it, |PLAYERNAME|? I'm {retired}. Leave me be." />
</parameters>
</npc>
Now here's the one I can't walk through:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Robert" script="default.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="132" head="121" body="14" legs="63" feet="27" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell bread, rolls, brown bread, cheese, eggs, cookies, corncobs, mangoes, potatoes, plums, raspberries, lemons, cucumbers, onions, jalapeno peppers and beetroots (everything for 8 gold coins)!"/>
<parameter key="shop_buyable" value="bread,2689,8;roll,2690,8;brown bread,2691,8;cheese,8112,8;egg,2695,8;cookie,2687,8;corncob,2686,8;mango,5097,8;potato,8838,8;plum,8839,8;raspberry,8840,8;lemon,8841,8;cucumber,8842,8;onion,8843,8;jalapeno pepper,8844,8;beetroot,8845,8"/>
</parameters>
</npc>
They use the same script, default.lua:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
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
npcHandler:addModule(FocusModule:new())
It's so weird.
What could be causing this and how can I fix it?
I'm using TFS 0.4.