Jump to content
  • 0

Create Npc Acis.


Question

Posted

I tried to install a buffer on my server,i added and replaced everything correct (i guess..) but when i spawn it it says smth like : applicant incorrect.

And my buffer id is 9001 while the first xml is 12000,

so i in wich xml in npcs folder do i have to add it?

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

Copy the template you want.

Paste it on the latest XML (50000-50999).

Add idTemplate / edit the type and the npcId.

You're done.

 

In case you use latest revision, don't forget following if you want custom title and name.

		<set name="usingServerSideName" val="true"/>
		<set name="usingServerSideTitle" val="true"/>
Edited by Tryskell
  • 0
Posted

Copy the template you want.

Paste it on the latest XML (50000-50999).

Add idTemplate / edit the type and the npcId.

You're done.

 

In case you use latest revision, don't forget following if you want custom title and name.

 

<set name="usingServerSideName" val="true"/>
		<set name="usingServerSideTitle" val="true"/>

By template you mean the npc's text to add in xml?

What should i make on type and npcid?Thnks for your fast response.

  • 0
Posted

Just take a look at npcs

Always starts with tags

<npc id name title

 

And ends

</npc>

Just copy paste the text and change to your id like 50030 and use template id radius and height from any npc you want

  • 0
Posted (edited)

Just take a look at npcs

Always starts with tags

<npc id name title

 

And ends

</npc>

Just copy paste the text and change to your id like 50030 and use template id radius and height from any npc you want

did this and yet same error while spawning,and i don't see any java side error also,since i installed in on my core without error and compilded it :/ here is my xml

 

<npc id="50009" idTemplate="30519" name="Buffer" title=>
                <set name="level" val="70"/>
                <set name="radius" val="7"/>
                <set name="height" val="18"/>
                <set name="rHand" val="0"/>
                <set name="lHand" val="5802"/>
                <set name="type" val="L2Buffer"/>
                <set name="exp" val="0"/>
                <set name="sp" val="0"/>
                <set name="hp" val="2444.46819"/>
                <set name="mp" val="1345.8"/>
                <set name="hpRegen" val="7.5"/>
                <set name="mpRegen" val="2.7"/>
                <set name="pAtk" val="688.86373"/>
                <set name="pDef" val="295.91597"/>
                <set name="mAtk" val="470.40463"/>
                <set name="mDef" val="216.53847"/>
                <set name="crit" val="4"/>
                <set name="atkSpd" val="253"/>
                <set name="str" val="40"/>
                <set name="int" val="21"/>
                <set name="dex" val="30"/>
                <set name="wit" val="20"/>
                <set name="con" val="43"/>
                <set name="men" val="20"/>
                <set name="corpseTime" val="7"/>
                <set name="walkSpd" val="50"/>
                <set name="runSpd" val="120"/>
                <set name="dropHerbGroup" val="0"/>
                <set name="attackRange" val="40"/>
               <ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/>
               <skills>
                       <skill id="4045" level="1"/>
                       <skill id="4416" level="14"/>
              </skills>
      </npc>

i added this xml as the last one on file 50000-50099,but yet still same error

Edited by idijot
  • 0
Posted (edited)

Read th code you installed the buffer too and use the name from the instance in your npc type if is L2BuffInstance you have to put L2Buff in your npc type..

About htmls search the code there is a direction to your folder..

Search in instance like data/html/mpla mpla

Edited by Reborn12
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...