How to add a item to a NPC

Ill just give you a warning, do not use this version of the program to edit your NPC's if you use V17 (spec_item).
When you do so, you might get error's, or random NPC's spawn everywhere (event NPC's), and name's of NPC's get fucked up.

You could call this guide "outdated" since it does not work with V17, unless you recode the prgoram, wich is easily possible since the SOURCE of this program has been released by the creator.
 
Ill just give you a warning, do not use this version of the program to edit your NPC's if you use V17 (spec_item).
When you do so, you might get error's, or random NPC's spawn everywhere (event NPC's), and name's of NPC's get fucked up.

You could call this guide "outdated" since it does not work with V17, unless you recode the prgoram, wich is easily possible since the SOURCE of this program has been released by the creator.

Could you please make another guide which explains how to add items to npc's with etiooms files?
 
hello can you make a guide on how to seprate putting items in npc

example:
Upcutstone rarity = 1
Re-stat Scroll rarity = 1
Red Scroll rarity = 2

and i put the upcut and restat scroll in npc tab 0

then i put red scroll on npc tab 1

heres what happen the tab 1 is fine it only got the restat scroll and upcut stone
but on the tab 2 of the npc theres the restat scroll and upcut stone and redscroll

i want to separate the redscroll on the next tab only the redscroll was supposed to be on the tab 1 but it got the upcut and redscroll there cuz the rarity of those was 1.. so when i put the rarity of the tab 1 redscroll its something like this

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

i just want to separate items on shop i dont know how...
like i want on tab 1 only redscroll and tab 0 only upcut and restat

i tried reversing the rarity its the same when rarity 2 used the rarity 1 on the same item(IK3_SCROLL) who are rared 1 will be there even though you used rarity 2

i thought it would be like if the rarity was 2 only the item with rarity 2 will be there seems like im wrong ? if the rarity 2 is there rarity below that 2 will be there too seems like that? or i missed something?
 
UPDATE: DOES NOT WORK WITH V16/V17

Well, this is very easy.
We will be using a NPC Editor for this.
There are probably more guide's out there
How to edit a NPC and how to add a item
But I got PM'd and asked by multiple people to make a guide on how to do this...
Lets start.
What do you need for this guide
-NPC Editor (Link is down there)
-Time
-RES Editor

Okay, for the sake of this tutorial, we are going to add a SProtect to the NPC Is.
To make the NPC Editor work, you have to place your server files character.inc, propitem.txt, propitem.txt.txt in the same folder as the NPC Editor. If you placed them in the folder, start the NPC Editor. Now click on the MaFl_Mikyel and find MaFl_Is
[
Jelle - How to add a item to a NPC - RaGEZONE Forums
< Picture 1
Now in the text thing above, you see
Code:
        AddVendorItem( 0, IK3_MASK, -1, 1, 2, 100 );
beneath that, add
Code:
                AddVendorItem( 0, IK3_SCROLL, -1, 1, 1, 100 );
0 = The tab it gets sell'd in 0 = first tab.
IK3_SCROLL = The typ of items it can sell.
-1 = The class it is made for. -1 = vagrant.
1 = Level
1 = Rarity
I made the rarity and level both one because we will now make the scroll rarity and level one.
Click on the ADDVENDORITEM button. After that press on the MATERIAL button. New screen will popup.

Next to search name, typ in Scroll of Sprotect and click Search.
Now you can see the Scroll of Sprotect highlighted.
At the most left, click the 'Shopable' box. Move your mouse to the right and you can see the column called 'Level'. The SProtect should be Level 1 already, if not, change it to the number 1.
The next column is 'Rarity'. Change that = to 1.

Now click CLOSE and then click ADD.
Now click on the SAVE box. Replace the old character.inc, propitem.txt and propitem.txt.txt with the new one's.
If you placed the NPCEditor inside the server files, you wont have to replace :).
Now open up your RESEditor. Open the DataSub2.res
Delete the propitem.txt and propitem.txt.txt and replace it with the new one's.
Then open up DataSub1.res and delete character.inc and replace it with the new one.
DONE! Enjoy!;)

Hope some of you learned more about NPC's, thank you for reading / replying / thanking !
Got any questions? Leave a message BELOW.

//DOWNLOADS//
NPCEditor:
RESEditor:
IS THIS WORKING V15?
 
HE
Additional Info for everyone. ^_^

[If you used the v15 original source files, Extract Flyff NPC Editor @ 'V15_FIles\Resource\'. It should already be in the same location with character.inc,propItem.txt,propItem.txt.txt.]

[For those who experienced the Editor just crashing... Please see to it that these files: character.inc,propItem.txt,propItem.txt.txt are not opened with other programs and/or on the same location with the Editor.]

[AddVenderItem Syntax:
AddVenderItem( 0, IK3_SWD, -1, 10, 10, 100);

Left to Right--
0 - NPC Trade Slot number. 0->1st slot,1->2nd slot,2->3rd slot,3-> 4th slot.

IK3_SWD - ITEM CATEGORY. IKE_SWD->Swords,IKE_KNUCKLEHAMMER->KNUCKLES etc.. etc..(find them by pressing 'Material' button)

-1 -> Job Requirement. -1-> ALL JOBS, 0->Vagrant(Haven't tried Vagrant), 1->Mercenary,2->Acrobat,3->Assist,4->Magician then, 6->Knights....(forgot the sequence from here, will update when I got home)

10 -> Item Level. 10 means it gets all items from level 1-10 that are shopAbled [dwShopAble = 1].

10 -> Max Rarity. 10 means it gets all items that has rarity level 1-10 that are showAbled [dwShopAble = 1].

100 -> still trying to figure out what this means. ^_^

Example...
If @ PropItem.txt i got:
Guardian Sword[IK3_SWD] = shopAble:1 Rarity:1 Level:1
Angel Sword[IK3_SWD] = shopAble:1 Rarity:2 Level:1

AddVenderItem(0,IK3_SWD, 1, 1, 1,100); -- would add Guardian Sword only because Angel Sword has Rarity:2.

Add VenderItem(0,IK3_SWD, 3, 2, 1,100); -- would show NOTHING because there are no swords for Assists(JOB:3).

Add VenderItem(0,IK3_SWD, 1, 2, 1,100); -- would show both.]

Goodluck~~!
hello sir do you have proper list to see the Spec_item.txt
 
Back