• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC with Ghost

Dogrinha

New Member
Joined
Oct 6, 2019
Messages
206
Solutions
1
Reaction score
2
Guys I have some npcs that can cross inside, and another not, can anyone tell me where I can fix it?
tfs 0.4
 
Not sure, Try adding/changing this inside your NPC to higher one or lower one depends on your needs.
access="3"
so the NPC should look like
XML:
<?xml version="1.0" encoding="UTF-8"?>

<npc name="Grizzly Adams" script="data/npc/scripts/killinginthenameof.lua" access="3" walkinterval="2000" lookdir="2">
    <mana now="800" max="800"/>
    <health now="200" max="200"/>
<look type="144" head="97" body="97" legs="94" feet="97" addons="3"/>
</npc>
 
Should work I think so, Post both I can check the difference.
 
No work

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Mother of Guard" script="data/npc/scripts/outfits/Mother_of_guard.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="447" head="114" body="95" legs="95" feet="0" addons="0"/>
<parameters>
<parameter key="message_greet" value="Greetings |PLAYERNAME|, i can help you?" />

</parameters>
</npc>


no Work
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Dallheim" script="default.lua" access="3" walkinterval="2000" access="3" floorchange="0">
<health now="100" max="100"/>
<look type="424" head="76" body="38" legs="76" feet="95" addons="2"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|."/>
        <parameter key="message_farewell" value="Good bye."/>
        <parameter key="message_walkaway" value="Farewell then.." />
    </parameters>
</npc>

work


LUA:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Seymour" script="Seymour.lua" walkinterval="2000" access="3" floorchange="0">
    <health now="100" max="100"/>
<look type="128" head="116" body="69" legs="87" feet="20" addons="0"/>
    <parameters>
    <parameter key="message_greet" value="Hello |PLAYERNAME|. Welcome to Camora, if you want to chat you just need to talk {camora}." />
        <parameter key="message_farewell" value="Good bye, |PLAYERNAME|! And remember: Be strong!" />
    <parameter key="message_walkaway" value="Good bye, |PLAYERNAME|! And remember: Be strong!" />
    <parameter key="message_idletimeout" value="Good bye, |PLAYERNAME|! And remember: Be strong!" />
    </parameters>
</npc>
 
Back
Top