Problems for adding Weapons to NPC

01/05/2015 03:07 Tel Aviv#1
Hello,

I'm working on a v15 based Client/Server and i'm in trouble adding weapons to NPC.

I want to add from Guardians Weapons to Legendary Weapons to NPC "Luda"

i tried :

AddVendorItem( 3, IK3_SWD, 1, 1, 100, 100 );

4th Column,ItemKind3_Sword,Job required = Mercenary,dwItemRarity MinimumdwItemRarity Maximum

so, in the 4th column, i should have every swords used by Mercenary with a dwItemRarity minimum is 1 and the dwItemRarity Maximum is 100

But in game, I only got sword until lvl 85 and no Guardians (60) Historic (75)

I'm definitely trying to find a way to do it correctly.

If someone know how to do that, if he could show me, would be really good.

thanks.
01/05/2015 09:06 raventh1984#2
Did you also set the dwShopable to 1 instead of =
If you open Spec_Item/Propitem with Excell you will have columns and thus making it easier to change things.

If you open it with excel then you need to alter the y/z columns.
01/05/2015 13:55 Tel Aviv#3
Thanks edited it, changed the data client's side but now there is an other problem. i changed the data and i tried to start my server but the world doesn't want to start.

those files appeared in my folder : [Only registered and activated users can see links. Click Here To Register...]
01/05/2015 14:19 raventh1984#4
open the .rpt file with notepad++ and put it here.
01/05/2015 14:34 Tel Aviv#5
RPT's file

Quote:

================== logged at 2015/1/5 14:25:44 ==========================

Exception code : C0000005 ACCESS_VIOLATION
Fault address :0050E724 01:0010D724 C:\Users\leeps_000\Desktop\Flyff Repack (v15) (rev3.1)\Program\7. WorldServer.exe

Registers:
EAX:00000000
EBX:058020B4
ECX:0006DCE4
EDX:05E37020
ESI:00000000
EDI:1F604E8C
CS:EIP:0023:0050E724
SS:ESP:002B:063EBA1C EBP:05801FA0
DS:002B ES:002B FS:0053 GS:002B
Flags:00010287

Call stack:
Address Frame
0050E724 063EBA54 0001:0010D724 C:\Users\leeps_000\Desktop\Flyff Repack (v15) (rev3.1)\Program\7. WorldServer.exe
00574121 063EBB00 0001:00173121 C:\Users\leeps_000\Desktop\Flyff Repack (v15) (rev3.1)\Program\7. WorldServer.exe


===== [end of file] =====
And also, error log file in server's folder (not program, it's been created the time where i tried to start the server so its linked.)

Quote:
2015/ 1/ 5 13:48:58 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 13:49:22 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 13:50:51 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 13:51:53 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 13:52:19 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:06:14 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:06:40 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:13:15 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:13:39 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:24:46 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))

2015/ 1/ 5 14:25:07 propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))
01/05/2015 14:50 Ecrypter#6
open the spec_item into microsoft excel you can see all separated.,
01/05/2015 15:06 Tel Aviv#7
Ok i fixed it, Excel modified some numbers.

I'm still in trouble for the weapons, i modified dwShopable from = to 1 still not working

Edit : it's finally working, i made a mistake, i modified the value of dwShopable's Legendary Golden Axe and put IK3_SWD into character.inc and edited it to IK3_AXE

I've an other question, i only want to put Green Weapons in NPC Sell (green weapons = Guardians, Historic, Angel, Legendary) but when i put 60 in dwRarity minimum to 60 and 105 maximum, i have Guardian, Historic, Angel and Legendary in NPC but also all others weapons from lvl 60 to 105 and i don't want this.

I have to edit myself all other weapons in dwShopable or there is a special function to get faster?

edit : fixed