• 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.

Editing NPCs and shops

The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
I have not seen much about NPC editing posted so hopefully this will help anyone that is stuck. I don't know all the values yet but there is enough here to do some basic things like shopt editing/creating.

In Data_World\world21-npc.scp...

Code:
[COLOR="Blue"][NpcPos]	Flags	Index	PosX	PosY	Type	IsRangeCheck
0	0	1	239	241	6	1
1	0	2	147	12	6	1
2	0	3	14	204	6	1
3	0	7	120	109	1	1
4	0	50	0	0	1	0[/COLOR]

[COLOR="SeaGreen"][WarpLst]	NpcsIdx	NSetIdx	TargetIdx	LV	Fee	Type
0	1	0	39	1	0	0
1	2	0	39	1	0	0
2	3	0	39	1	0	0[/COLOR]

[SkillLst]	NSetIdx	NpcsIdx	SkillIdx	SkillLv

[COLOR="Red"][ShopLst]	NpcsIdx	NSetIdx	ItemKind	ItemOpt	ReputationClass	DurationIdx	Price
0	50	0	3	1	-19	0	60
1	50	1	4	1	-19	0	800
2	50	2	5	1	-19	0	5000
3	50	3	6	1	-19	0	60
4	50	4	7	1	-19	0	800
5	50	5	8	1	-19	0	5000
6	50	8	3	4	-19	0	240
7	50	9	4	4	-19	0	3200
8	50	10	5	4	-19	0	20000
9	50	11	6	4	-19	0	240
10	50	12	7	4	-19	0	3200
11	50	13	8	4	-19	0	20000
12	50	16	3	7	-19	0	420
13	50	17	4	7	-19	0	5600
14	50	18	5	7	-19	0	35000
15	50	19	6	7	-19	0	420
16	50	20	7	7	-19	0	5600
17	50	21	8	7	-19	0	35000
18	50	24	5	20	1	0	100000
19	50	25	8	20	1	0	100000
20	50	26	12	10	1	0	8000
21	50	27	5	30	2	0	150000
22	50	28	8	30	2	0	150000
23	50	29	12	20	2	0	16000
24	50	35	5	50	3	0	250000
25	50	36	8	50	3	0	250000
26	50	37	12	30	3	0	24000[/COLOR]

The first section is the NPCs, their types and positions...
[NpcPos] Flags Index PosX PosY Type IsRangeCheck

The numbers in the first column, [NpcPos] in this case, always start at 0 and increment by 1.

Flags - ?
Index - Pretty sure this is the NPC sprite ID
PosX - X position on the map
PosY - Y position on the map
Type - ? 6 means warp probably, a real NPC
IsRangeCheck - ? Normally means "trigger NPC when in range" ?

The second section is the warps...
[WarpLst] NpcsIdx NSetIdx TargetIdx LV Fee Type

First column [WarpLst] is the same, 0 and increments

NpcsIdx - Index number from the first list
NSetIdx - ?
TargetIdx - ? Target NPC Idx ?
LV - Level requirement to use the warp
Fee - Alz fee to use the warp
Type - ? 0 - normal warpgate ?

The third, and more useful list...
[ShopLst] NpcsIdx NSetIdx ItemKind ItemOpt ReputationClass DurationIdx Price

First column the same again.

NpcsIdx - Index number from the first list
NSetIdx - ? slot number in the window ?
ItemKind - Item number from the items list (see Clust3r's list or the sticky)
ItemOpt - The ItemOpt setting (list or sticky again)
ReputationClass - Honour class requirement
DurationIdx - Set item expiry (16 is ~6 months i think)
Price - Guess!

Duration column values
Clust3r said:
1 : 1 Hour
2 : 2 Hour
3 : 5 hour
4 : 10 hour
5 : 1 day
6 : 3 day
7 : 5 day
8 : 7 day
9 : 10 day
10 : 15 day
11 : 30 day
12 : 60 day
13 : 90 day
14 : 100 day
15 : 120 day
16 : 345 day

After between 17 and 31 generate item with bugged duration => Error Code 6


Hopefully that should help some folks out a bit.
 
Last edited:
Newbie Spellweaver
Joined
Feb 2, 2006
Messages
78
Reaction score
9
For complete your post:

Duration:
1 : 1 Hour
2 : 2 Hour
3 : 5 hour
4 : 10 hour
5 : 1 day
6 : 3 day
7 : 5 day
8 : 7 day
9 : 10 day
10 : 15 day
11 : 30 day
12 : 60 day
13 : 90 day
14 : 100 day
15 : 120 day
16 : 345 day

After between 17 and 31 generate item with bugged duration => Error Code 6
 
Experienced Elementalist
Joined
Aug 21, 2005
Messages
297
Reaction score
107
you will find problems soon with create and edit shops :)
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
you will find problems soon with create and edit shops :)

There are always problems, it's how to avoid them and you only learn that by experimenting and working out what the values all mean unless we can get the manual for it :p

@Clust3r - Thanks for the info and thanks for your guides, you saved us all a whole lot of headache!
 
Newbie Spellweaver
Joined
Feb 18, 2007
Messages
54
Reaction score
0
hy

you must config shops too at client!!!!!!!!!!! You neeed a Encoder and Decoder for client!!!!!

Code:
<shop id="4" >
   <item slot_id="0" item_id="91" option="0" reputation_class="-19" duration_id="0" price="600" />
   <item slot_id="2" item_id="92" option="0" reputation_class="-19" duration_id="0" price="1800" />
   <item slot_id="4" item_id="93" option="0" reputation_class="-19" duration_id="0" price="5400" />
   <item slot_id="6" item_id="94" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="32" item_id="76" option="0" reputation_class="-19" duration_id="0" price="600" />
   <item slot_id="34" item_id="77" option="0" reputation_class="-19" duration_id="0" price="1800" />
   <item slot_id="36" item_id="78" option="0" reputation_class="-19" duration_id="0" price="5400" />
   <item slot_id="38" item_id="79" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="64" item_id="61" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="65" item_id="62" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="66" item_id="63" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="67" item_id="64" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="68" item_id="46" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="69" item_id="47" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="70" item_id="48" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="71" item_id="49" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="96" item_id="95" option="0" reputation_class="-19" duration_id="0" price="24300" />
   <item slot_id="98" item_id="80" option="0" reputation_class="-19" duration_id="0" price="24300" />
   <item slot_id="100" item_id="65" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="101" item_id="50" option="0" reputation_class="-19" duration_id="0" price="16200" />
  </shop>
  <shop id="5" >
   <item slot_id="0" item_id="241" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="2" item_id="242" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="4" item_id="243" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="6" item_id="244" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="16" item_id="106" option="0" reputation_class="-19" duration_id="0" price="600" />
   <item slot_id="18" item_id="107" option="0" reputation_class="-19" duration_id="0" price="1800" />
   <item slot_id="20" item_id="108" option="0" reputation_class="-19" duration_id="0" price="5400" />
   <item slot_id="22" item_id="109" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="48" item_id="196" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="50" item_id="197" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="52" item_id="198" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="54" item_id="199" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="64" item_id="151" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="66" item_id="152" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="68" item_id="153" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="70" item_id="154" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="80" item_id="245" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="82" item_id="110" option="0" reputation_class="-19" duration_id="0" price="24300" />
   <item slot_id="84" item_id="200" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="86" item_id="155" option="0" reputation_class="-19" duration_id="0" price="16200" />
  </shop>
  <shop id="6" >
   <item slot_id="0" item_id="31" option="0" reputation_class="-19" duration_id="0" price="400" />
   <item slot_id="2" item_id="32" option="0" reputation_class="-19" duration_id="0" price="1200" />
   <item slot_id="4" item_id="33" option="0" reputation_class="-19" duration_id="0" price="3600" />
   <item slot_id="6" item_id="34" option="0" reputation_class="-19" duration_id="0" price="10800" />
   <item slot_id="16" item_id="35" option="0" reputation_class="-19" duration_id="0" price="16200" />
   <item slot_id="32" item_id="3" option="7" reputation_class="-19" duration_id="0" price="280" />
   <item slot_id="33" item_id="4" option="7" reputation_class="-19" duration_id="0" price="1400" />
   <item slot_id="34" item_id="5" option="7" reputation_class="-19" duration_id="0" price="7000" />
   <item slot_id="35" item_id="6" option="7" reputation_class="-19" duration_id="0" price="280" />
   <item slot_id="36" item_id="7" option="7" reputation_class="-19" duration_id="0" price="1400" />
   <item slot_id="37" item_id="8" option="7" reputation_class="-19" duration_id="0" price="7000" />
   <item slot_id="38" item_id="12" option="1" reputation_class="-19" duration_id="0" price="200" />
   <item slot_id="39" item_id="12" option="7" reputation_class="-19" duration_id="0" price="1400" />
   <item slot_id="40" item_id="5" option="20" reputation_class="1" duration_id="0" price="20000" />
   <item slot_id="41" item_id="8" option="20" reputation_class="1" duration_id="0" price="20000" />
   <item slot_id="42" item_id="12" option="10" reputation_class="1" duration_id="0" price="2000" />
   <item slot_id="43" item_id="5" option="30" reputation_class="2" duration_id="0" price="30000" />
   <item slot_id="44" item_id="8" option="30" reputation_class="2" duration_id="0" price="30000" />
   <item slot_id="45" item_id="12" option="20" reputation_class="2" duration_id="0" price="4000" />
   <item slot_id="46" item_id="5" option="50" reputation_class="3" duration_id="0" price="50000" />
   <item slot_id="47" item_id="8" option="50" reputation_class="3" duration_id="0" price="50000" />
   <item slot_id="48" item_id="12" option="30" reputation_class="3" duration_id="0" price="6000" />
   <item slot_id="56" item_id="285" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="57" item_id="293" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="58" item_id="301" option="0" reputation_class="-19" duration_id="0" price="4000" />
   <item slot_id="59" item_id="309" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="60" item_id="312" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="64" item_id="350" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="66" item_id="354" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="68" item_id="358" option="0" reputation_class="-19" duration_id="0" price="800" />
   <item slot_id="96" item_id="692" option="7809" reputation_class="1" duration_id="0" price="40" />
   <item slot_id="97" item_id="692" option="7937" reputation_class="1" duration_id="0" price="40" />
   <item slot_id="98" item_id="692" option="8065" reputation_class="1" duration_id="0" price="40" />
   <item slot_id="99" item_id="692" option="8193" reputation_class="1" duration_id="0" price="40" />
   <item slot_id="100" item_id="692" option="8321" reputation_class="1" duration_id="0" price="40" />
  </shop>[/CENTER]

Credits:[CzF]eRRoR


 
Newbie Spellweaver
Joined
Jan 18, 2008
Messages
63
Reaction score
9
For complete your post:

Duration:
1 : 1 Hour
2 : 2 Hour
3 : 5 hour
4 : 10 hour
5 : 1 day
6 : 3 day
7 : 5 day
8 : 7 day
9 : 10 day
10 : 15 day
11 : 30 day
12 : 60 day
13 : 90 day
14 : 100 day
15 : 120 day
16 : 345 day

After between 17 and 31 generate item with bugged duration => Error Code 6

Wrong, not all items are same
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
@LeChuck - Can you give me a few examples i can experiment with?

@Deathzonemu - First you appear claiming to have keyfiles that cure the login bug, but refuse to share, and now you claim to know of an .enc decoder and again give us nothing. Are you actually going to share with us, are you just trying to show off or are you a faker?
 
Newbie Spellweaver
Joined
Feb 2, 2006
Messages
78
Reaction score
9
Wrong, not all items are same

agree, but Shop only use the Item Type 1 from file /etc/cabal/Data/Product.scp :)

Same for item send by Cashshop
if you don't trust me try this; add entry in MyCashItem with Duration : 3 in Duration column. You receive item tagged in description : 3 hour. But if you look expiration date 5 hours :)
 
Newbie Spellweaver
Joined
Feb 18, 2007
Messages
54
Reaction score
0
chumpywumpy;3753431
@Deathzonemu - First you appear claiming to have keyfiles that cure the login bug, but refuse to share, and now you claim to know of an .enc decoder and again give us nothing. Are you actually going to share with us, are you just trying to show off or are you a faker?

If eRRoR will release is it his Release i can not Release from a Coder from me without the OK!! He work a bit on Cabal not more!!

And about Key Server!! I dont ahve ask that i have the files!!!!! i only have ask we miss the Keyserver!! OK??

THX
[]MG[]KILL​
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
In which case i apologise. You didn't really explain before and i got the wrong idea. Sorry :/
 
Newbie Spellweaver
Joined
Feb 16, 2008
Messages
70
Reaction score
2
agree, but Shop only use the Item Type 1 from file /etc/cabal/Data/Product.scp :)

Same for item send by Cashshop
if you don't trust me try this; add entry in MyCashItem with Duration : 3 in Duration column. You receive item tagged in description : 3 hour. But if you look expiration date 5 hours :)

mmmm... in your server maibe, in our work ok.
the complete list of times and items have 1,798 rows in ur sql. You just need know what its the correct settnig for each item.

and a little tip:
the id 31, one of you say "generate item with bugged duration", when you have your server working ok, its the one you need use for permanent items.
 
Experienced Elementalist
Joined
Aug 21, 2005
Messages
297
Reaction score
107
yes is as they said above, you must sync client and server shop file or user will get disconnect when attempt to use.
 
Junior Spellweaver
Joined
Oct 25, 2008
Messages
137
Reaction score
1
can someone help me fix the npcs fort ruin, because many items are with bug
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
No they aren't as they were fixed ages ago. Make sure you are using Lost-Spirit's updates in the releases section.
 
Newbie Spellweaver
Joined
Jun 8, 2014
Messages
10
Reaction score
0
Is there a list of NpcsIdx like I want Veradrex to sell an Item in Green Despair? And also how do I know the map name. Ex. "world##-npc.scp is Bloody Ice or etc." So that is would be easy to identify of which map were I add an NPC. Any help would be nice :)
 
Back
Top