Wystarczy jak dasz plik .lua~ Twojego Ivana do owego tematu.
Wrzuć go znacznikiem [.lua][./lua] - bez kropki.
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ivan" script="data/npc/scripts/Sell/jewels.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="132" head="78" body="79" legs="79" feet="58" corpse="2131"/>
<parameters>
<parameter key="message_greet" value="Welcome, Welcome! I love jewels! Got any jewel that you want me to take a look at?" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="quest;help;item;jewels" />
<parameter key="keyword_reply1" value="Maybe later." />
<parameter key="keyword_reply2" value="Want to get rich? Bring me the Jewels!" />
<parameter key="keyword_reply3" value="I buy white and black pearls 200gp, small diamond, small sapphire, small ruby and small emeralds 400gp, talons 500gp, small amethyst 600gp and all kind of gems 15.000gp each." />
</parameters>
</npc>
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Miles, The Guard" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="131" head="19" body="0" legs="38" feet="19" addons="3"/>
<parameters>
<parameter key="message_greet" value="LONG LIVE THE KING!"/>
<parameter key="message_farewell" value="LONG LIVE THE KING!"/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="job;trouble;authorities;also for the gods;trouble will arise in near future;" />
<parameter key="keyword_reply1" value="It's my duty to protect the city." />
<parameter key="keyword_reply2" value="I'm fine. There's no trouble at all." />
<paramater key="keyword_reply3" value="Well, of course. we live in safety and peace." />
<parameter key="keyword_reply4" value="I think the gods are looking after us and their hands shield us from evil." />
<parameter key="keyword_reply5" value="I think the gods and the government do their best to keep away harm from the citizens." />
</parameters>
</npc>
Lua:<?xml version="1.0" encoding="UTF-8"?> <npc name="Miles, The Guard" script="default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="131" head="19" body="0" legs="38" feet="19" addons="3"/> <parameters> <parameter key="message_greet" value="LONG LIVE THE KING!"/> <parameter key="message_farewell" value="LONG LIVE THE KING!"/> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="job;trouble;authorities;also for the gods;trouble will arise in near future;" /> <parameter key="keyword_reply1" value="It's my duty to protect the city." /> <parameter key="keyword_reply2" value="I'm fine. There's no trouble at all." /> <paramater key="keyword_reply3" value="Well, of course. we live in safety and peace." /> <parameter key="keyword_reply4" value="I think the gods are looking after us and their hands shield us from evil." /> <parameter key="keyword_reply5" value="I think the gods and the government do their best to keep away harm from the citizens." /> </parameters> </npc>