PDA

View Full Version : [562]2kbarrows on - Items



2kbarrows
October 9th, 2010, 13:05
Hello, on this tutorial i will show you how to spawn NPCs Edit NPCs and more...
Table of contents:
1.Spawning them
2.Editing them


1.Spawning them

Ok so why don't you go ahead and open up npcs.xml

<npc><id>520</id><location><x>2104</x><y>3919</y><z>0</z></location></npc>
There is one npc obviously...
Ok so <npc> is opening 1 npc, <id> is the npc id... In this case a ShopKeeper now <location> which is where he is aka X 2104 Y 3919 and he is at hight 0...
Remember you HAVE to close every tag you open...

2.Editing Them

<npcDefinition>
<id>5529</id>
<name>yak</name>
<combat>1000</combat>
<hitpoints>80</hitpoints>
<maxHit>5</maxHit>
<attackSpeed>7</attackSpeed>
<attackAnim>5782</attackAnim>
<defenceAnim>5783</defenceAnim>
<deathAnim>5784</deathAnim>
</npcDefinition>
Ok so this like the spawning them code is XML and you HAVE to close all tags you open...
Ok so starting a definition you make a
<npcDefinition> You are only going to close that tag when you finish the definition...
Then comes the npc id... Which in this case iss 5529..
Then the name which is yak you can make it whatever you like...
After that is the Combat Hitpoints and etc... You can chnage the animations of the attack defence and death sooo...yeeaaa...
Then finally you close the npc definition.. You can make and edit npcs with this...

Niator
October 9th, 2010, 13:11
This isn't items... diz is sparta! Jk... But this is NPC's? O_o

Ficho
October 9th, 2010, 13:12
Lol... well very good, It will help BUNCH of people that started making 562's =) simple but kewl, nice explaining =)

2kbarrows
October 9th, 2010, 13:13
D'oh!
Wrong name...

David
October 9th, 2010, 13:13
edit: didn't read it good -.-

2kbarrows
October 9th, 2010, 13:15
no this is the item spawning on the ground

Nahh This be NPCs but i misnamed the thread... I was doing something with items when doing this.
Thats why i did a d'oh!

David
October 9th, 2010, 13:18
my bad lol, i didn't saw the <npc>

Ficho
October 9th, 2010, 13:19
You noooob!!! lol.. dont change names? change the stuff u wrote in thread.. copy and paste, edit newb lol

2kbarrows
October 9th, 2010, 13:22
You noooob!!! lol.. dont change names? change the stuff u wrote in thread.. copy and paste, edit newb lol

Nah to lazeh... Ima make a item tutorial soon...

apache ah64
October 12th, 2010, 17:10
its pretty easy butt still really good work.

2kbarrows
October 12th, 2010, 23:54
its pretty easy butt still really good work.

If the thread is easy and it teachs its the best...
And changed the name =p

Charlie`
October 13th, 2010, 00:00
Yeah Pretty Easy, But This Is Good!