PDA

View Full Version : Creating new NPC for trading.


ozz
22.06.2005, 06:48
Hi ppl !

I want to ask one serious question for me and for others (i hope so)

question is:

How i can make absolutely new NPC for game to do with him anithing what i want ?

I'm trying to create new NPC with my own idea to trade C Grade things in Giran town, but i can see only a little building like a travel shelter...

Somebody can tell me how i can do NEW NPC for my big project ?

thx... sorry for my English.

Virexor
22.06.2005, 08:13
doesnt this belong in the help section?

paul
22.06.2005, 08:37
It does moved and only warning given.

askey
22.06.2005, 22:53
long (not very long :wink: ) :

npcdata.txt
....
npc_begin merchant <your_id> [<your npc name>] .... npc_ai={[<your npc name>];{[fnHi] = [<your npc name>.htm]}}...npc_end
....

npc_pch.txt
...
[<your npc name>] = 1000000+<your_id>
...

npcpos.txt
*read Livid instructions :)

ai.obj
...
class <your npc name> : merchant_for_cgrade
class_end
...

in <your npc name>.htm
...
<a action="bypass -h multisell?id=??????">Show me your multisell :)</a>
...
* replace ????? with your multisell id

Remember to add your npc on client-side npcgrp.txt, npcname-e.txt

ozz
23.06.2005, 09:42
to askey: thx a lot !

ozz
24.06.2005, 06:52
not working for me :(

to askey: i done all what you say... but when my server is starting, he stopped after petdata skript and taking error like this:

0x004affd0 unable to write memory stack 0x3188ff60...

and crashes... what happened ? Strange thing... if i try to add any NPC Warrior it's work fine, but if i try to add merchant class it's crashed... o_O

ozz
24.06.2005, 06:54
somebody please help me !

askey
24.06.2005, 16:51
copy your npcdata from script in cached folder ... i dunno whats wrong in your files

ozz
27.06.2005, 09:17
copyed already but server crashed... after PETDATA ...