How to add a item to a NPC

I guess you didnt give them the same Rarity's
Or you didnt make the sprotect buyable.

I tried it with 5 scrolls now, i all gave em 1 rarity just as in the code of addvendor.
This is how it looks like right now.

Jelle - How to add a item to a NPC - RaGEZONE Forums
 
i want to sell some items via red chips...

i did this

AddVendorItem2( II_SYS_GEN_ELE_CANDLEA);

but the weird thing is, whenever i get near to that specific npc, the world server shuts down.

ive added lots of stuff to other npcs using AddVendorItem.. i just dnt knw how to add some via red chips..

anyone? thanks
 
ok i seem to have an odd problem when i add an item lets say spro to my shop. it adds it to all my shops that has the ik3_scroll tag. any idea why
 
Lets say you have several shops with this IK3_SCROLL in it with the Rarity's 4. If your SPro is also rarity 4 it will show up in the shop. So you have to change the rarity of the SPro to lets say 50. Then make a certain shop sell IK3_SCROLL with the rarity 50.

Then it only pops up in that shop.
 
This is a noob question.

But how do I add tabs to Is or Isruel or any npc really.

In my text i have this

AddVendorSlot( 0,
IDS_CHARACTER_INC_000066
);
}

MaFl_HairShop
{
setting
{
AddMenu( MMI_BEAUTYSHOP );
SetImage
(
IDS_CHARACTER_INC_000067
);
}

If I added another slot wouldnt that effect the hair stylist?

Should I copy and paste is / isruel down the bottom and add higher or what.

I dont have a clue how to enable tabs
 
So edit DataSub2/1.res in both the client and the server.

My propitem.txt.txt does not seem to get changed, the date+time of last edit does not change.
 
Last edited:
I love this program :D two things to say
1. I think the last space is for the minimum rarity o_O
2. Its a tad buggy (Everytime I use it to update PropItem.txt it adds a small part of the emerald code to diamond but it's not big deal, I just need to erase a few lines)

Also you should consider updating so it can go full screen and you can edit item stats :$ Just an idea

Oh ya :P it would also be nice to be able to change the name and descriptions if items
 
Thanks for the guide and the programs!

Works perfect. But sometimes after editting my files, I got some problems with starting up my client / logging in.

But I guess it has something to do with restarting the worldserver and such.

Eventually got it to work fine though. I guess it's just getting used to working with it. :P
 
Thanks for the guide and the programs!

Works perfect. But sometimes after editting my files, I got some problems with starting up my client / logging in.

But I guess it has something to do with restarting the worldserver and such.

Eventually got it to work fine though. I guess it's just getting used to working with it. :P

Glad you got it working.
Its just a matter of getting to know how to do it good, and after a while you will do it good automatically ;)
 
Hey,

thx for this!
only one thing i have add some "test" items to my shop and i can se all the items with the names and all thad stuff, if i wanne buys samthing is says "User ID already exist" how can i fix this?


sry for this i look to this port and i find how i can fix, price most be 4 penya+ sry ;)
 
Last edited:
hey,

can u make a litle guild on how to add items to ather tab and idk for wath 'Rarity' is att all items its ather nuber and i dont know wth to do with it....help plz
 
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:

thanks for the guide, but how to remove items from npc?
 
If you know how to add items how hard can it be to remove items then? You might like to try and delete the line that says, AddVendorItem.
Please use brain.exe before using function makePost(question)
 
hey,

i love guild only plz help me i have NO IDEE how to use this part:
Jelle - How to add a item to a NPC - RaGEZONE Forums

can somwanne give me some more info how can i add ather stuff? plz help
 
Every kind of items has his own type.
To find a item his type, for example, Wooden Sword, go to material list and search for Wooden Sword. At the most right column you will see
IK3_SWORD
That is the item type of Wooden Sword.
So then you put IK3_SWORD instead of IK3_SCROLL.
 
Every kind of items has his own type.
To find a item his type, for example, Wooden Sword, go to material list and search for Wooden Sword. At the most right column you will see
IK3_SWORD
That is the item type of Wooden Sword.
So then you put IK3_SWORD instead of IK3_SCROLL.

so u need to do thad with EVRY item wow gone be alot work... if u klick on "on" at the most left box thing he wont add it hemself so i need to do it with allll items my self? yes?no?
 
Back