• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Guide to add a NPC and config it to work as a Shop

Newbie Spellweaver
Joined
May 13, 2013
Messages
23
Reaction score
1
Cadena, can you post a sample on your NPCShop and World_20_npc set-up?

This is sample of my set-up but i can't purchase the items.

NPCShop:

33 1 30 0 52 33 2
34 1 30 1 53 34 2

887 33 0 2707 1025 0 0 0 -19 0 0 12000000 0 0 0 0 0 0 0 20

953 34 0 683 383 0 0 0 -19 0 0 10000000 0 0 0 0 0 0 0 20



World30_npc:

20 0 52 135 235 1 0
21 0 53 135 238 1 0


I tried also the set-up of GODSKIN but still nothing happens when I click YES to purchase the item.

If it still dousnt work for you, Try to put 1 shop in world 2 (ds). For me this was the only map that work correctly. World 1 and 30 didnt work for me.( I could see the items but couldn't buy)
 
Last edited:
Newbie Spellweaver
Joined
May 18, 2013
Messages
7
Reaction score
0
Could someone explaine why I cant see items in my shops (I have made 3 shops in Bloody Ice)
The item that iam using = Itemid 5 (Test item).
I can see the shops and also sell stuff and see coin tab with the basic stuff.

But the problem is: I dont see Item5.
Screenshot :

cabal_msg
<msg id="npc01-0099" cont="Shop 1 Armor" />
<msg id="npc01-0100" cont="Shop 2 Weapon" />
<msg id="npc01-0101" cont="Shop 3 Dungeon" />

extra_obj_msg
<msg id="extra_npc_099" cont="Shop 1 Armor" />
<msg id="extra_npc_100" cont="Shop 2 Weapon" />
<msg id="extra_npc_101" cont="Shop 3 Dungeon" />

extra_obj
<extra_stuff ID="13" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,2800" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_99" npc_id="99" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="14" filename="character\man_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3000" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="14" name="extra_npc_99" npc_id="100" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="15" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3200" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="15" name="extra_npc_99" npc_id="101" npc_tag="0" npc_type="1" />
</extra_stuff>

cabal.enc
<world_npc id="77" npc_name="npc01-0077" x="41" y="46" is_obj="1" />
<world_npc id="99" npc_name="npc01-0099" x="23" y="28" is_obj="0" />
<world_npc id="100" npc_name="npc01-0100" x="23" y="30" is_obj="0" />
<world_npc id="101" npc_name="npc01-0101" x="23" y="32" is_obj="0" />
<shop id="99" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>
<shop id="100" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>
<shop id="101" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>

world1_npc.scp
48 0 99 23 28 1 0
49 0 100 23 30 1 0
50 0 101 23 32 1 0

NPCSHOP.scp
33 1 1 0 99 33 2
34 1 1 0 100 34 2
35 1 1 0 101 35 2

-------------------------------------------------
Trying to add item= 5

870 33 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20
871 34 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20
872 35 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20

Also tried
2 extra_obj_msg (99/100/101)


extra_obj

<extra_stuff ID="13" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,2800" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_99" npc_id="99" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="14" filename="character\man_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3000" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="14" name="extra_npc_100" npc_id="100" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="15" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3200" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="15" name="extra_npc_101" npc_id="101" npc_tag="0" npc_type="1" />
</extra_stuff>



*** Solved - edit NPCSHOP.spc correctly.

npcshop.npc problem...!!...plss study other npc sell item at BI...u will found it!!
 
Newbie Spellweaver
Joined
May 13, 2013
Messages
23
Reaction score
1
a better way is to add them from eventdata :p so you can stop and start the npc when you wannt ! xD
Can you add more then 1 event npc ?:D when editing scp files it will give a error on world.xx

npcshop.npc problem...!!...plss study other npc sell item at BI...u will found it!!

Thx for the info i will look into it later on, but i have my shops in dessert now, and they are working fine there.
 
Junior Spellweaver
Joined
Nov 6, 2012
Messages
150
Reaction score
25
How to add item on shops? i tryed but i failed..
 
Newbie Spellweaver
Joined
May 13, 2013
Messages
23
Reaction score
1
i have to add them on npcshop.scp there are no guide for what ppl have to add in there?
and the same item have to be configured on cabal.enc?
You only need to place items in Npcshop.scp , no need to place them in cabal.enc
 
Experienced Elementalist
Joined
Jan 12, 2012
Messages
290
Reaction score
25
NPCshop.scp
32 1 2 8 52 34 2

870 34 0 25 0 0 0 0 -19 0 0 40 0 0 0 0 0 0 0 20

cabal.enc
<world_npc id="53" npc_name="npc02-0053" x="78" y="226" is_obj="0" />

<shop id="53" >
<item slot_id="0" item_id="25" option="0" reputation_class="-19" duration_id="0" price="40" onlypremium="0" wexpprice="0" dp="0" />

world2-npc
43 0 53 78 226 1 0

No items showing Up :? any Ideas



EDIT AFTER APPLYING these in server side server shops from PL to FR doesnt work at all , all items are missing
 
Last edited:
Newbie Spellweaver
Joined
May 13, 2013
Messages
23
Reaction score
1
NPCshop.scp
32 1 2 8 52 34 2

870 34 0 25 0 0 0 0 -19 0 0 40 0 0 0 0 0 0 0 20

cabal.enc
<world_npc id="53" npc_name="npc02-0053" x="78" y="226" is_obj="0" />

<shop id="53" >
<item slot_id="0" item_id="25" option="0" reputation_class="-19" duration_id="0" price="40" onlypremium="0" wexpprice="0" dp="0" />

world2-npc
43 0 53 78 226 1 0

No items showing Up :? any Ideas



EDIT AFTER APPLYING these in server side server shops from PL to FR doesnt work at all , all items are missing

Try
NPCshop.scp
32 1 2 8 53 34 2
 
Newbie Spellweaver
Joined
Apr 30, 2010
Messages
22
Reaction score
0
i have 887 and no prob. I configured only for the moment the item shop ('n').
Will try with more npc and see what happen after 887.
 
Junior Spellweaver
Joined
Jul 5, 2010
Messages
104
Reaction score
2
Could someone explaine why I cant see items in my shops (I have made 3 shops in Bloody Ice)
The item that iam using = Itemid 5 (Test item).
I can see the shops and also sell stuff and see coin tab with the basic stuff.

But the problem is: I dont see Item5.
Screenshot :

cabal_msg
<msg id="npc01-0099" cont="Shop 1 Armor" />
<msg id="npc01-0100" cont="Shop 2 Weapon" />
<msg id="npc01-0101" cont="Shop 3 Dungeon" />

extra_obj_msg
<msg id="extra_npc_099" cont="Shop 1 Armor" />
<msg id="extra_npc_100" cont="Shop 2 Weapon" />
<msg id="extra_npc_101" cont="Shop 3 Dungeon" />

extra_obj
<extra_stuff ID="13" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,2800" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_99" npc_id="99" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="14" filename="character\man_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3000" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="14" name="extra_npc_99" npc_id="100" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="15" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3200" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="15" name="extra_npc_99" npc_id="101" npc_tag="0" npc_type="1" />
</extra_stuff>

cabal.enc
<world_npc id="77" npc_name="npc01-0077" x="41" y="46" is_obj="1" />
<world_npc id="99" npc_name="npc01-0099" x="23" y="28" is_obj="0" />
<world_npc id="100" npc_name="npc01-0100" x="23" y="30" is_obj="0" />
<world_npc id="101" npc_name="npc01-0101" x="23" y="32" is_obj="0" />
<shop id="99" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>
<shop id="100" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>
<shop id="101" >
<item slot_id="9" item_id="5" option="0" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>

world1_npc.scp
48 0 99 23 28 1 0
49 0 100 23 30 1 0
50 0 101 23 32 1 0

NPCSHOP.scp
33 1 1 0 99 33 2
34 1 1 0 100 34 2
35 1 1 0 101 35 2

-------------------------------------------------
Trying to add item= 5

870 33 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20
871 34 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20
872 35 9 5 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20

Also tried
2 extra_obj_msg (99/100/101)


extra_obj

<extra_stuff ID="13" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,2800" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_99" npc_id="99" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="14" filename="character\man_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3000" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="14" name="extra_npc_100" npc_id="100" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="15" filename="character\woman_pshop.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2300,0,3200" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="15" name="extra_npc_101" npc_id="101" npc_tag="0" npc_type="1" />
</extra_stuff>



*** Solved - edit NPCSHOP.spc correctly.
thx work good
 
Newbie Spellweaver
Joined
Oct 18, 2008
Messages
79
Reaction score
3
I can make own NPC, I can open shop but no items are being shown..

-cabal.enc-
Code:
 <world	id="12"	name="world12"	type="0"	map_file="world_50.mcl"	terrain_mesh=""	icon="J_icn_map12"	m_code="1"	t_max_x="1"	t_max_z="1"	gpsorder="12"	allowedwar="1"	warcontrol="0"	>
			<world_npc	id="8"	npc_name="npc12-0008"	x="231"	y="41"	is_obj="0"	/>
			<world_npc	id="9"	npc_name="npc12-0009"	x="23"	y="215"	is_obj="0"	/>
			<world_npc	id="16"	npc_name="npc12-0016"	x="236"	y="41"	is_obj="1"	/>
			<world_npc	id="17"	npc_name="npc12-0017"	x="18"	y="215"	is_obj="1"	/>
			<world_npc	id="18"	npc_name="npc12-0018"	x="190"	y="74"	is_obj="1"	/>
			<world_npc	id="19"	npc_name="npc12-0019"	x="65"	y="181"	is_obj="1"	/>
			<world_npc	id="20"	npc_name="npc12-0020"	x="133"	y="90"	is_obj="1"	/>
			<world_npc	id="50"	npc_name="npc12-0050"	x="0"	y="0"	is_obj="0"	/>
			<world_npc	id="51"	npc_name="npc12-0051"	x="0"	y="0"	is_obj="0"	/>
			<shop    id="8"    >
                <item    slot_id="0"    item_id="1"    option="0"    reputation_class="-19"    duration_id="0"    price="10000"    />
            </shop>
			<shop    id="9"    >
                <item    slot_id="0"    item_id="1"    option="0"    reputation_class="-19"    duration_id="0"    price="10000"    />
            </shop>
		</world>

-World-

Code:
[ShopLst] NpcsIdx NSetIdx ItemKind ItemOpt ReputationClass DurationIdx Price
1	8	0	1	0	1	0 	10000
2	9	0	1	0	1	0 	10000

NPC id is the ID from Cabal.enc right? And do I have to add anything to the other list like warp list?
 
Junior Spellweaver
Joined
Sep 29, 2013
Messages
169
Reaction score
31
I can make own NPC, I can open shop but no items are being shown..

-cabal.enc-
Code:
 <world    id="12"    name="world12"    type="0"    map_file="world_50.mcl"    terrain_mesh=""    icon="J_icn_map12"    m_code="1"    t_max_x="1"    t_max_z="1"    gpsorder="12"    allowedwar="1"    warcontrol="0"    >
            <world_npc    id="8"    npc_name="npc12-0008"    x="231"    y="41"    is_obj="0"    />
            <world_npc    id="9"    npc_name="npc12-0009"    x="23"    y="215"    is_obj="0"    />
            <world_npc    id="16"    npc_name="npc12-0016"    x="236"    y="41"    is_obj="1"    />
            <world_npc    id="17"    npc_name="npc12-0017"    x="18"    y="215"    is_obj="1"    />
            <world_npc    id="18"    npc_name="npc12-0018"    x="190"    y="74"    is_obj="1"    />
            <world_npc    id="19"    npc_name="npc12-0019"    x="65"    y="181"    is_obj="1"    />
            <world_npc    id="20"    npc_name="npc12-0020"    x="133"    y="90"    is_obj="1"    />
            <world_npc    id="50"    npc_name="npc12-0050"    x="0"    y="0"    is_obj="0"    />
            <world_npc    id="51"    npc_name="npc12-0051"    x="0"    y="0"    is_obj="0"    />
            <shop    id="8"    >
                <item    slot_id="0"    item_id="1"    option="0"    reputation_class="-19"    duration_id="0"    price="10000"    />
            </shop>
            <shop    id="9"    >
                <item    slot_id="0"    item_id="1"    option="0"    reputation_class="-19"    duration_id="0"    price="10000"    />
            </shop>
        </world>

-World-

Code:
[ShopLst] NpcsIdx NSetIdx ItemKind ItemOpt ReputationClass DurationIdx Price
1    8    0    1    0    1    0     10000
2    9    0    1    0    1    0     10000

NPC id is the ID from Cabal.enc right? And do I have to add anything to the other list like warp list?

Yow No need to edit cabal.enc(client) you only have to configure NCPshop.scp(serverside)
 
Newbie Spellweaver
Joined
Mar 13, 2014
Messages
64
Reaction score
0
When i edit everything and try to start cabal:
trungnt88 - Guide to add a NPC and config it to work as a Shop - RaGEZONE Forums
 
Back
Top