Samayillon2
New Member
- Joined
- Apr 22, 2011
- Messages
- 1
- Reaction score
- 0
Alright, I'm completely new at this junk so please bear with me if I come across as ignorant (also, not sure if that was the right prefix)
I finally managed to get my ot server running (meaning that I managed to create an account and run around on the map) and I decided to add a NPC for starters. Basically, I'm just re-making the ForgottenServer map so there were already NPC's on there, but I wanted to create my own NPC shop. His name is Fenton and this is how the script looks like:
[.xml]<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fenton" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="crossbow,2455,150;bow,2456,130"/>
<parameter key="shop_buyable" value="axe,2386,20;chain helmet,2458,52;coat,2651,8;dagger,2379,5;doublet,2485,16;
hand axe,2380,8;jacket,2650,10;leather armor,2467,25;leather helmet,2461,12;leather legs,2649,10;leather boots,2643,8;
rapier,2384,15;sabre,2385,25;scythe,2550,12;short sword,2406,30;sickle,2405,8;spear,2389,10;studded armor,2484,70;
studded helmet,2482,63;studded shield,2526,50;wooden shield,2512,15",/>
</parameters>
</npc>[./xml]
Like I said, I pretty much just re-made the NPC Riona - who, incidentally, looks like this:
[.xml] <?xml version="1.0" encoding="UTF-8" ?>
- <npc name="Riona" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100" />
<look type="138" head="57" body="59" legs="40" feet="76" addons="0" />
- <parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="backpack,1988,20;pick,2553,10;shovel,2554,20;rope,2120,50" />
</parameters>
</npc>[./xml]
Like I said, I just copied the RIONA NPC file, named it Fenton, and just added a whole list of items my new NPC sells. My problem is that the NPC won't show up in my map editor and I don't know what lua files to edit and how to edit them or what or who or Aaaah!
BUT
I am very willing to learn and I would appreciate any help here. I'm new to this ot crap so I've got tons of questions to bombard you people with, but I figured I'd just start with NPC's.
Thanks in advance!
I finally managed to get my ot server running (meaning that I managed to create an account and run around on the map) and I decided to add a NPC for starters. Basically, I'm just re-making the ForgottenServer map so there were already NPC's on there, but I wanted to create my own NPC shop. His name is Fenton and this is how the script looks like:
[.xml]<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fenton" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="crossbow,2455,150;bow,2456,130"/>
<parameter key="shop_buyable" value="axe,2386,20;chain helmet,2458,52;coat,2651,8;dagger,2379,5;doublet,2485,16;
hand axe,2380,8;jacket,2650,10;leather armor,2467,25;leather helmet,2461,12;leather legs,2649,10;leather boots,2643,8;
rapier,2384,15;sabre,2385,25;scythe,2550,12;short sword,2406,30;sickle,2405,8;spear,2389,10;studded armor,2484,70;
studded helmet,2482,63;studded shield,2526,50;wooden shield,2512,15",/>
</parameters>
</npc>[./xml]
Like I said, I pretty much just re-made the NPC Riona - who, incidentally, looks like this:
[.xml] <?xml version="1.0" encoding="UTF-8" ?>
- <npc name="Riona" script="default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100" />
<look type="138" head="57" body="59" legs="40" feet="76" addons="0" />
- <parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="backpack,1988,20;pick,2553,10;shovel,2554,20;rope,2120,50" />
</parameters>
</npc>[./xml]
Like I said, I just copied the RIONA NPC file, named it Fenton, and just added a whole list of items my new NPC sells. My problem is that the NPC won't show up in my map editor and I don't know what lua files to edit and how to edit them or what or who or Aaaah!
BUT
I am very willing to learn and I would appreciate any help here. I'm new to this ot crap so I've got tons of questions to bombard you people with, but I figured I'd just start with NPC's.
Thanks in advance!