[QUESTION] I can't put item in npcs HELP PLS

01/12/2011 01:45 mantorras#1
Hello everyone, i hope you can help me. I saw many guides and i did everything ok, (i think) :P.

1 step:
1- Opened "Flyff NPC editor" and added a scroll of holy in NPC_IS.

MaFl_Is
{
setting
{
AddMenu( MMI_DIALOG );
AddMenu( MMI_TRADE );
AddVenderItem( 0, IK3_SCROLL, -1, 1, 1, 100);
SetImage
(
IDS_CHARACTER_INC_000064
);
m_szDialog= "MaFl_Is.txt";
}

SetName
(
IDS_CHARACTER_INC_000065
);

AddVendorSlot( 0,
IDS_CHARACTER_INC_000066
);
}

Also, changed the price to 500.
Saved.

2- Opened ResEditor and replaced character.inc in Datasub1.
2.1- Replaced propItem.inc and propItem.txt in Datasub2.

And when i try to buy the item ingame, it says "user id already exist".


2 step:

The same progress but i changed something in propItem.inc with excell.

In colum Z i changed "=" to "1" , but cuz of that my world crash.
01/13/2011 22:59 FirstAid007#2
[QUOTE=
AddVenderItem( 0, IK3_SCROLL, -1, 1, 1, 100);
[/QUOTE]

Sorry, Kind of late to reply, but maybe someone will ever make use of this threath again.

As far as I know... the first 1 = minumum lvl, and the second 1 = max lvl.
There is not one NPC that has those 2 the same,
try to edit it into

AddVenderItem( 0, IK3_SCROLL, -1, 1, 2, 100);

where:
0 = NPC's slot where the item is in

IK3SCROLL = The Item sort that you are selling

-1 = the job that is able to buy the item (-1 is all jobs, so assist, mercs, mages and acro's... and their lvl 60+ apearances)

1 and 2 = the range of items (you can find that somewhere in the propitem.txt file (Collumn 23) Belonging to the right item of course, the item you are adding)

And 100 = not sure what it is, I assume it is the sorting of the items in the slot.

Besides that, if you saved the files on the server, don't forget to actually transfer the datasubs to the client :P

All of this knowledges goes out to Sedrika in one way of the other, as most of the things I've learned are found somewhere on this Forum... All I can do now is pass my knowledge on to others. So don't thank me, Thank Sedrika!!!