Jfrye
Mapper, trying to learn scripting
I am trying to make it to where the players have to learn the spells from NPCs.
Using the info from this thread https://otland.net/threads/release-spell-npcs.2237/
I added it to an existing NPC file, and now I get an error saying "[Warning-NpcScript::NpcScript]Can not load script: data/npc/scripts/Gregor.lua cannot open data/npc/scripts/data/npc/scripts/Gregor.lua: No such file or directory." <I know that it has too many data/npc/scripts, but this is exactly how it is coming from the console.
Here is Gregor.xml
Gregor.lua is here http://pastebin.com/YaYbhSs5
Using the info from this thread https://otland.net/threads/release-spell-npcs.2237/
I added it to an existing NPC file, and now I get an error saying "[Warning-NpcScript::NpcScript]Can not load script: data/npc/scripts/Gregor.lua cannot open data/npc/scripts/data/npc/scripts/Gregor.lua: No such file or directory." <I know that it has too many data/npc/scripts, but this is exactly how it is coming from the console.
Here is Gregor.xml
Code:
<npc name="Gregor" script="data/npc/scripts/Gregor.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="57" body="59" legs="40" feet="76" corpse="2212"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|, For which level would you like to learn spells 8, 9, 10, 13, 14, 15, 20, 30, 33, 35 or 70?" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="70;35;33;30;20;15;14;13;10;9;8;spells" />
<parameter key="keyword_reply1" value="I can teach you, Fierce berserk." />
<parameter key="keyword_reply2" value="I can teach you, Berserk." />
<parameter key="keyword_reply3" value="I can teach you, Groundshaker" />
<parameter key="keyword_reply4" value="I can teach you, wound cleansing." />
<parameter key="keyword_reply5" value="I can teach you, Challenge." />
<parameter key="keyword_reply6" value="I can teach you, Whirlwind throw." />
<parameter key="keyword_reply7" value="I can teach you, Haste." />
<parameter key="keyword_reply8" value="I can teach you, Great light." />
<parameter key="keyword_reply9" value="I can teach you, Antidote." />
<parameter key="keyword_reply10" value="I can teach you, light healing." />
<parameter key="keyword_reply11" value="I can teach you, light and find person." />
<parameter key="keyword_reply12" value="For which level would you like to learn spells 8, 9, 10 or 13?" />
</parameters>
</npc>
Gregor.lua is here http://pastebin.com/YaYbhSs5
Last edited by a moderator: