Guide to add a NPC and config it to work as a Shop
In this tutorial, I'll show you how to add "Rune Agent Flasha" into Bloody Ice and let him sell Upgrade Core(High) at 1 Alz.
***********
1, What do I have to know before reading this tutorial?
Where's client and server files? How to encrypt/decrypt ENC files? How to edit server's SCP files?
Why I have to know these things?
Cuz I don't show you how to do (search for answer).
2, Add NPC into a map:
By modifying "extra_obj.enc" and "extra_obj_msg.enc" in Client you can add a NPC :)
Here's the way.
a, Edit "extra_obj.enc"
First, with "extra_obj.enc", by adding those lines you'll add an object in to specified map.
Code:
<cabal>
<version index="1" />
<extra_object world_id="1">
<extra_stuff id="2" filename="Character\w1rune.ebm" min="-170.87 3,-25.31 12,-244.7 27" max="215.37 9,650,17 2.775 " />
<extra_entity type="1" pos="149 6,0,434 5" rotate="0,0,0 ,0" scale="1,1, 1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="1" />
</extra_object>
</cabal>
extra_object
extra_stuff
id : ID of object in current map filename : 3D Model for object min : ? max : ?
extra_entity
type : Object type
filename : 3D Model for object pos : NPC Position (All pos is multiplied by 100 for more accuracy)
rotate : NPC Rotation
1st : Always = 0 2nd : Degree for X axis 3rd : Degree for Z axis 4th : Degree for Y axis scale : scaling ratio (1,1,1 for normal size)
disable_cell_radius : Radius of area which the object placed in (player can't cross over that area) stuff_id : id of extra_stuff which this extra_entity describe about name : stuff name npc_id : ID of NPC npc_tag : ? npc_type :
1 : Normal NPC 7 : Shop NPC Other value : Not sure
b, Edit "extra_obj_msg.enc"
File "extra_obj_msg.enc" must have some data to hold NPC name which stored in "extra_obj.enc".
Here is an example.
Code:
<cabal_msg>
<version index="1"/>
<nation code="EU"/>
<extra_obj_msg>
<msg id="extra_npc_003" cont="Rune Agent Flasha" />
</extra_obj_msg>
</cabal_msg>
So the thing you have to do here is adding a new <msg /> with corrected value.
msg
id : Same value with extra_entity > name cont : Name of NPC
OK, now try to run your client. Can you see "Rune Agent Flasha" in Bloody Ice? If not, try again!
3, Modified NPC from Normal NPC to Shop NPC
Now you have to decide, which item you want to sell in that NPC. For example UCH at 1Alz, OK?
a, With "cabal.enc"
Find:
Now find: (mean Bloody Ice)
Code:
<world id="1" name="world1" type="0" map_file="world_01.mcl"
Add this new line to describe about your new NPC.
Code:
<world_npc id="35" npc_name="npc01-003 5" x="14" y="43" is_obj="0" />
world_npc
id : same id in "extra_obj.enc" npc_name : follow this pattern "npcXX-YYYY" where
x : X Position y : Y Position is_obj:
0 : Is not Object (is a NPC) 1 : Is a normal Object (non-clickable)
Now add those lines to describe which items your NPC sells:
Code:
<shop id="35" >
<item slot_id="0" item_id="1" option="0" reputation_class="-19" duration_id="0" price="1" />
</shop>
shop
item
slot_id : Slot on shop screen item_id : ID of item option : Option of item reputation_class : Honor class required to buy (-19 = no required) duration_id : Item duration price : Price of item
b, With "cabal_msg.enc"
Add new line to describe about NPC name likes that:
Code:
<msg id="npc01-0035" cont="Rune Agent Flasha" />
c, With server file.
Find correct NPC data file for your map (Ex : for Bloody Ice : /etc/cabal/data/data_world/world1-npc.scp)
Open it and add a line to let server know about the NPC which id is 35 (our Rune Agent)
Add into [NpcPos] Flags Index PosX PosY Type IsRangeCheck section
Now add new line in this file for 1Alz UCH :)
Add into [ShopLst] NpcsIdx NSetIdx ItemKind ItemOpt ReputationClass DurationIdx Price section
And that's all, restart your server, and start your client. Now you'll see NPC "Rune Agent Flasha" in Bloody Ice who sells UCH for 1 Alz :)
---------- Post added at 02:34 AM ---------- Previous post was at 02:24 AM ----------
Here's some NPC XML data which you can use to put into "extra_obj.enc".
X'Mas Tree in Bloody Ice
Code:
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.87 3,-25.31 12,-244.72 7" max="215.37 9,650,17 2.77 5" />
<extra_entity type="0" pos="2252,-3 1,306 8" rotate="0,0,0, 0" scale="1,1, 1" disable_cell_radius="2" stuff_id="0" />
Chaos Arena Entrance Sign
Code:
<extra_stuff id="1" filename="object\snow\f_snow_guidace.ebm" min="-170.87 3,-25.311 2,-244.72 7" max="215.37 9,650,17 2.77 5" />
<extra_entity type="1" pos="1115, 0,302 2" rotate="0,0.70 7107,0 ,0.70710 7" scale="1,1,1 " disable_cell_radius="1" stuff_id="1" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7" />
Rune Agent Flasha
Code:
<extra_stuff id="2" filename="Character\w1rune.ebm" min="-170.87 3,-25.31 12,-244.72 7" max="215.3 79,65 0,172.77 5" />
<extra_entity type="1" pos="149 6,0,434 5" rotate="0,0,0 ,0" scale="1,1, 1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="1" />
Lady Yekaterina
Code:
<extra_stuff id="3" filename="Character\w1agent.ebm" min="-170.87 3,-25.31 12,-244.72 7" max="215.3 79,65 0,172.77 5" />
<extra_entity type="1" pos="2338,12 7,163 3" rotate="0,1,0,0 " scale="1,1 ,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="7"/>
X'Mas Tree in Desert Scream
Code:
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.87 3,-25.31 12,-244.7 27" max="215.37 9,650,1 72.77 5" />
<extra_entity type="0" pos="852 4,-1,231 40" rotate="0,0,0, 0" scale="1,1,1" disable_cell_radius="2" stuff_id="0" />
X'Mas Tree in Green Despair
Code:
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873 ,-25.31 12,- 244.7 27" max="215.37 9,650,17 2.77 5" />
<extra_entity type="0" pos="208 24,0,424 0" rotate="0,0,0, 0" scale="1,1, 1" disable_cell_radius="2" stuff_id="0" />
Event Girl - Yul
Code:
<extra_stuff id="1" filename="Character\w29etc17.EBM" min="-170.87 3,-25.31 12,-244.72 7" max="215.3 79,65 0,172.77 5" />
<extra_entity type="1" pos="1950 5,0,56 61" rotate="0,0,0 ,0" scale="1,1,1 " disable_cell_radius="1" stuff_id="1" name="extra_npc_002" npc_id="49" npc_tag="0" npc_type="7" />
That's all :)
--------
Added on Monday March 29th 2010
--------
For ppl who got problem with synchronizing client/server files. I made a tool (temporary) called "Cabal Enc Tool" :D
It will help you convert data of ENC to SCP and vice versa.
Here's its screenshot and a little of guide for using it.
1, ENC data here
2, Click to convert from ENC (text in #1) to SCP (fill #3 and #4 before click this)
3, NPC Id (must be integer, ex 4,5,7,35,...)
4, Item Index Start (value of 1st row of 1st column in SCP which will be generated)
5, Click to convert from SCP (text in #7) to ENC (no need to fill #3, #4)
6, SCP data column name
7, SCP data here
Get it here : http://www.mediafire.com/?1dhgjl20ddz
Note : You must have .Net Framework 2.0 in order to use this.
--------
Added on Monday April 5th 2010
--------
If you have problem with determining SlotIdx (position of item in NPC Shop), you can check this out :
Re: Guide to add a NPC and config it to work as a Shop
Nice :)
I have one question.If i edited extra_obj.enc then i login my server, show me clientt est soft error message..What is the problem....? :)
I want to edited Lady Yekaterina Agent Shop...only object ,not npc :D sry my bad english :D
Re: Guide to add a NPC and config it to work as a Shop
Nice guide, i like it.
Quote:
Originally Posted by
mophisto
Nice :)
I have one question.If i edited extra_obj.enc then i login my server, show me clientt est soft error message..What is the problem....? :)
I want to edited Lady Yekaterina Agent Shop...only object ,not npc :D sry my bad english :D
If you are using the patchtool ont he server try using the enc packer that comes with balq's tools or Yamachi's COZip. I have had some very strange results with phantom*'s code and i have never figured out why.
Re: Guide to add a NPC and config it to work as a Shop
same guide in adding warp points in dungeon.
Re: Guide to add a NPC and config it to work as a Shop
@All:
+ If you have problem with ENC, please use Balq's tool : http://forum.ragezone.com/f459/playe...ml#post5330232
@mophisto
+ If you want to add NPC as an object so you skip from "3, Modified NPC from Normal NPC to Shop NPC" that's all :D
Re: Guide to add a NPC and config it to work as a Shop
Hmm. I have a question.
I get an error when buying from the shop with the Upgrade core. I have entered exactly what you have put in your guide and I get a client error 161 and I have to re-login again.
What else could I be doing wrong??
Here is my error log from WorldSvr:
Code:
[Mon Mar 29 2010 11:22:19.160531 72731536]: [##ERROR##] OnCSCItemBuyings(): invalid pNpcsData. charIdx(16), worldIdx(1), iNpcsIdx(35)
[Mon Mar 29 2010 11:22:19.160644 72731536]: [##ERROR##] 'OnCSCItemBuyings' fail (Proc/Inventory.cpp:3231)
[Mon Mar 29 2010 11:22:19.160691 72731536]: [##ERROR##] UsrMap Fail : MainCmd(161) Ret(290C9F:41:3231) Addr(192.x.x.x)
[Mon Mar 29 2010 11:22:19.169830 1126512]: sock 11=> close by finish waiting(192.x.x.x)
[Mon Mar 29 2010 11:22:19.171362 1126512]: 1.close user 11 [9DC6C98] (192.x.x.x)
Re: Guide to add a NPC and config it to work as a Shop
@Daman2009 : Please ensure that client and server data is matched.
Re: Guide to add a NPC and config it to work as a Shop
Ok here is what I have. Tell me if im doing something wrong because I cannot see it ;-)
Code:
World1-npc.scp:
24 0 29 160 195 7 0
25 0 30 59 68 7 0
26 0 50 0 0 1 0
28 0 35 15 43 1 1
140 50 36 8 50 3 0 250000
141 50 37 12 30 3 0 24000
142 35 38 91 0 -19 0 600
Cabal ENC:
<shop id="35" >
<item slot_id="0" item_id="91" option="0" reputation_class="-19" duration_id="0" price="600" />
</shop>
What doesn't match here??
Re: Guide to add a NPC and config it to work as a Shop
@Daman2009
Slot ID must be the same in two position:
Code:
142 35 38 91 0 -19 0 600
Quote:
<item slot_id="0 " item_id="91" option="0" reputation_class="-19" duration_id="0" price="600" />
Re: Guide to add a NPC and config it to work as a Shop
Yeah sorry, I noticed this already but still d/c!
Re: Guide to add a NPC and config it to work as a Shop
@All :
For ppl who got problem with synchronizing client/server files. I made a tool (temporary) called "Cabal Enc Tool" :D
It will help you convert data of ENC to SCP and vice versa.
See 1st post for more details.
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
trungnt88
@All :
For ppl who got problem with synchronizing client/server files. I made a tool (temporary) called "Cabal Enc Tool" :D
It will help you convert data of ENC to SCP and vice versa.
See 1st post for more details.
Great tool, but still no worky for me :-(
Also, Why doesn't extra_obj_msg.enc work for naming the flasha NPC and lady whatever her name is???
I found that I had these nps's set up in Cabal.enc too. Im gonna remove them maybe there is a conflict??
Quote:
Originally Posted by
Daman2009
Great tool, but still no worky for me :-(
Also, Why doesn't extra_obj_msg.enc work for naming the flasha NPC and lady whatever her name is???
I found that I had these nps's set up in Cabal.enc too. Im gonna remove them maybe there is a conflict??
NPC Name was stored in "cabal_msg.enc" check 1st post for detail.
About your problem, I can't find why it happened :(
--------
Added on Monday April 5th 2010
--------
If you have problem with determining SlotIdx (position of item in NPC Shop), you can check this out :
---
1st post has been updated too.
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
I buy stuffs from the shop. It gives Error Code 6.
Am I doing it right?
Code:
cabal.enc
<shop id="35" >
<item slot_id="0" item_id="9" option="0" reputation_class="-19" duration_id="0" price="250000" />
<item slot_id="1" item_id="10" option="0" reputation_class="-19" duration_id="0" price="500000" />
<item slot_id="2" item_id="1" option="0" reputation_class="-19" duration_id="0" price="1000000" />
<item slot_id="3" item_id="1214" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="5" item_id="310" option="0" reputation_class="-19" duration_id="0" price="10000000" />
<item slot_id="6" item_id="311" option="0" reputation_class="-19" duration_id="0" price="500000000" />
<item slot_id="16" item_id="637" option="0" reputation_class="-19" duration_id="0" price="25000000" />
<item slot_id="17" item_id="638" option="0" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="18" item_id="639" option="0" reputation_class="-19" duration_id="0" price="100000000" />
<item slot_id="19" item_id="1216" option="0" reputation_class="-19" duration_id="0" price="500000000" />
<item slot_id="21" item_id="313" option="0" reputation_class="-19" duration_id="0" price="10000000" />
<item slot_id="22" item_id="314" option="0" reputation_class="-19" duration_id="0" price="500000000" />
<item slot_id="32" item_id="1209" option="0" reputation_class="-19" duration_id="0" price="500000000" />
<item slot_id="35" item_id="1210" option="0" reputation_class="-19" duration_id="0" price="500000000" />
<item slot_id="38" item_id="1208" option="0" reputation_class="-19" duration_id="0" price="500000000" />
</shop>
World1-npc.scp:
115 35 0 9 0 -19 0 250000
116 35 1 10 0 -19 0 500000
117 35 2 1 0 -19 0 1000000
118 35 3 1214 0 -19 0 5000000
119 35 5 310 0 -19 0 10000000
120 35 6 311 0 -19 0 500000000
121 35 16 637 0 -19 0 25000000
122 35 17 638 0 -19 0 50000000
123 35 18 639 0 -19 0 100000000
124 35 19 1216 0 -19 0 500000000
125 35 21 313 0 -19 0 10000000
126 35 22 314 0 -19 0 500000000
127 35 32 1209 0 -19 0 500000000
128 35 35 1210 0 -19 0 500000000
129 35 38 1208 0 -19 0 500000000
Re: Guide to add a NPC and config it to work as a Shop
By setting "Price" = 0 you can hide item from the shop but in memory (or smt like that) it's still there. So you must double check the value in "slot_id" (both client and server side) and ensure that there isn't any duplicated values.
Re: Guide to add a NPC and config it to work as a Shop
I did check. No duplicate values whatsoever.
Re: Guide to add a NPC and config it to work as a Shop
Re: Guide to add a NPC and config it to work as a Shop
question how to put name this npc in game cos all npc new not have name in game
thanks
Re: Guide to add a NPC and config it to work as a Shop
Just follow the guide and you'll do fine.
EDIT: Your enc tool is not properly working, It crashes when i try to convert enc format to scp.
Re: Guide to add a NPC and config it to work as a Shop
i'm also having disconnection issue but only when buying ACCOUNT BINDING ITEMS like costumes and pets in the NPC but with non-account binding item like astral bikes and cores no disconnection is there a fix for this or is there a way to DELETE the ACCOUNT BINDING attribute of an item??? oh btw just want to ask what's the maximum price of item in npc? because i have an item that sells for 10 billion alz but the price in the store dont display correctly it display something like 1,457,xxx,xxx only.
Re: Guide to add a NPC and config it to work as a Shop
how do i get position coordiantes to create some whole new npcs?
Re: Guide to add a NPC and config it to work as a Shop
@DuntBugme
# type : Object type
* 0 : Normal Object
* 1 : NPC
# filename : 3D Model for object
# pos : NPC Position (All pos is multiplied by 100 for more accuracy)
* 1st : X
* 2nd : Z
* 3rd : Y
# rotate : NPC Rotation
* 1st : Always = 0
* 2nd : Degree for X axis
* 3rd : Degree for Z axis
* 4th : Degree for Y axis
# scale : scaling ratio (1,1,1 for normal size)
* 1st : X
* 2nd : Z
* 3rd : Y
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
TanGzkie
@DuntBugme
# type : Object type
* 0 : Normal Object
* 1 : NPC
# filename : 3D Model for object
# pos : NPC Position (All pos is multiplied by 100 for more accuracy)
* 1st : X
* 2nd : Z
* 3rd : Y
# rotate : NPC Rotation
* 1st : Always = 0
* 2nd : Degree for X axis
* 3rd : Degree for Z axis
* 4th : Degree for Y axis
# scale : scaling ratio (1,1,1 for normal size)
* 1st : X
* 2nd : Z
* 3rd : Y
yes, i read this myself, but this doesnt tell me, how i get for example the position of the ghost ship in port lux or any other costum position i want - and thats what i want to know!
EDIT:
i found out, that u can use the ingame gps coordinates or the coordinates given by those GM Tools (and always multiply them by 100). for the "Z" coordinate, u have to figure out by urself, what the best value is. good hints are already given in this tutorial.
Re: Guide to add a NPC and config it to work as a Shop
adding a npc to cabal is one thing, but giving them a name is another thing...
and that the problem; it doesnt matter, what i edit. i cant fkn get the npc to have a name displayed above him -.-'
here are the things i've done so far:
-i followd EXACTLY the tutorial - i edited (/added the lines) the extra_obj.enc and of course the extra_obj_msg.enc - just like the toturial says.
it didnt work
just for a failsave methode, i just copied and pasted the xml code. for both files. so, nothing else than the tutotial xml code was in those files.
it didnt work
i added a line in the cabal_msg.enc, just like how all the other npcs (like Henkoff and co) got their names. i thought, that its worth a try.
it didnt work
after comparing with the up-to-date EU clientfiles, i noticed that the xml code was a bit different - so i changed the xml code given by the tutorial to the correct xml code, how it normally has to be!
the npcs are there - just like before, but still without names. so..
it didnt work
patching the up-to-date EU clientfiles with my own privat server patchfiles wont work. the cabalmain.exe wont start with the "breaklee" command (whould be very dumb of ESTsoft if they didnt fixed that already xDD) - but it was worth the try. so...
it didnt work
i dont know if i made a mistake, im just not able to see, or maybe i made a mistake, of wich i just dont know that it actually is a mistake :D
so here are some xml coding forms:
extra_obj.enc:
EU version:
Code:
<cabal>
<version index="1" />
<extra_object world_id="1" >
<extra_stuff ID="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1115,0,3022" rotate="0,270,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="1" filename="Character\w1agent.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2338,127,1633" rotate="0,180,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="12" />
</extra_stuff>
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
</extra_object>
<extra_object world_id="3" >
<extra_stuff ID="0" filename="\Character\w29etc17.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="19505,0,5661" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_002" npc_id="49" npc_tag="0" npc_type="8" />
</extra_stuff>
</extra_object>
<extra_object world_id="4" >
<extra_stuff ID="0" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="23742,337,391" rotate="0,126,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="0" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
<extra_stuff ID="1" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="22644,460,86" rotate="0,51,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="1" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
</extra_object>
<extra_object world_id="33" >
<extra_stuff ID="0" filename="Object\object_fx\port_ex\ptEx_whale\ptEx_whale.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1959,0,6122" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="13" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="1912,0,11031" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="16" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="3219,0,689" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="17" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7371,0,24490" rotate="0,123,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="18" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="1" filename="Object\object_fx\port_ex\ptEx_whale_a\ptEx_whale_a.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="15817,0,22950" rotate="0,60,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="14" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23876,0,22421" rotate="0,115,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="19" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="9021,0,22846" rotate="0,15,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="20" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="24389,0,12812" rotate="0,25,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="21" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="20221,0,3522" rotate="0,35,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="22" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="2" filename="Object\object_fx\port_ex\ptEx_fish\ptEx_fish.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="24047,0,9643" rotate="0,180,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="15" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="2371,0,18976" rotate="0,270,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="23" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="8615,0,24155" rotate="0,165,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="24" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="13999,0,22620" rotate="0,220,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="25" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23131,0,24564" rotate="0,120,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="26" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23643,0,23691" rotate="0,150,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="27" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="22887,0,15229" rotate="0,265,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="28" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="22750,0,12430" rotate="0,300,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="29" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="24921,0,4973" rotate="0,15,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="30" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="17350,0,2130" rotate="0,170,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="31" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18237,0,21012" rotate="0,234,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="42" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18475,0,21117" rotate="0,258,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="43" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18126,0,21116" rotate="0,262,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="44" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18393,0,21082" rotate="0,257,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="45" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21447,0,19015" rotate="0,331,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="46" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21666,0,19082" rotate="0,339,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="47" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21825,0,19147" rotate="0,337,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="48" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21896,0,18992" rotate="0,339,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="49" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21690,0,18776" rotate="0,340,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="71" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21530,0,19176" rotate="0,343,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="72" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="6873,0,21369" rotate="0,245,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="32" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7368,0,21725" rotate="0,236,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="33" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7683,0,21849" rotate="0,244,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="34" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7690,0,21669" rotate="0,245,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="35" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7833,0,21616" rotate="0,243,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="36" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7865,0,21942" rotate="0,247,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="37" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7940,0,21944" rotate="0,246,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="38" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18299,0,21244" rotate="0,240,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="39" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18147,0,21039" rotate="0,248,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="40" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18445,0,21236" rotate="0,256,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="41" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21513,0,19081" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="73" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="3" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4707,429,3650" rotate="0,244,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="3" name="" npc_id="74" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="4" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4899,286,4258" rotate="0,276,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="4" name="" npc_id="75" npc_tag="0" npc_type="13" />
</extra_stuff>
</extra_object>
</cabal>
My try #1:
Code:
<cabal>
<version index="1" />
<extra_object world_id="1">
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0" />
</extra_stuff>
<extra_stuff id="500" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1100,0,2800" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_500" npc_id="500" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
</cabal>
my try #2 (from the tut):
Code:
<cabal>
<version index="1" />
<extra_object world_id="1">
<extra_stuff id="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="1" />
</extra_object>
</cabal>
extra_obj_msg.enc:
EU version:
Code:
<cabal_msg>
<version index="2"/>
<nation code="ENG"/>
<extra_obj_msg>
<msg id="extra_npc_000" cont="Entrance of Chaos Arena" />
<msg id="extra_npc_001" cont="Agent Shop Lady Yekatrina" />
<msg id="extra_npc_002" cont="Event NPC Yul" />
</extra_obj_msg>
</cabal_msg>
my try #1:
Code:
<cabal_msg>
<version index="1"/>
<nation code="CN"/>
<extra_obj_msg>
<msg id="extra_npc_500" cont="Core Shop" />
</extra_obj_msg>
</cabal_msg>
in different tries i changed the nation code, from CN to EU, to US, to ENG, to almost everything. CN was the original code.
cabal_msg.enc (a little part of it):
my try:
Code:
<msg id="npc01-0030" cont="Mountain Goat Shepherd's Quarters" />
<msg id="npc01-0031" cont="Chaos Arena Entrance" />
<msg id="npc01-0050" cont="" />
<msg id="npc01-0500" cont="LALA" />
<msg id="npc02-0001" cont="Dunhike(Officer)" />
<msg id="npc02-0002" cont="Gette(Instructor)" />
<msg id="npc02-0003" cont="Cox(Agent of Port Service)" />
<msg id="npc02-0004" cont="Mezias(Weapon Shopkeeper)" />
<msg id="npc02-0005" cont="Dion(Armor Shopkeeper)" />
<msg id="npc02-0006" cont="Sullivan(Core Alchemist)" />
<msg id="npc02-0007" cont="Eillen(Grocer)" />
after doing so much, it pretty seems to be, that the cabalmain.exe simply ignores the extra_obj.enc file, wich im not wondering about, because i can remember the time, as the official EU server got the chaos entrance sign in bloody ice - but with no function, nor a name to it. maybe the implemention of reading the extra_obj_msg.enc was an update when ESTsoft finished their work on the chaos arena itself...
what im using:
-the actual release of chumpywumpi server files (dunno version number right now),
-the US client (cabalsetup_us.exe, last modified at 30.01.2008, 878.127.502 bytes)
-my totally smoked brain.... screw this crap -.-
if someone got the custom npcs to work, it whould be veery nice, to share ur wisdom with some really sad guy... xD
it also may helps, if that person may upload following files:
-cabal.exe
-cabalmain.exe
-cabal.enc
-extra_obj_msg.enc
-extra_obj.enc
-cabal_msg.enc
-any other file, relating to my problem
thx ;)
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
<cabal>
<version index="1" />
<extra_object world_id="1">
<!--<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>-->
<extra_stuff id="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>
<!--<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0"/>-->
<extra_entity type="1" pos="1115,0,3022" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7" />
</extra_object>
</cabal>
<cabal_world>
<prison world_id="19" obj1="object\object\boss\boss_por(1_1)\por_01_a.ebm" obj2="Object\Object\boss\nalak\prison_wall.efx" />
<world id="1" name="world1" type="0" map_file="world_01.mcl" terrain_mesh="" icon="J_icn_map1" m_code="1" t_max_x="1" t_max_z="1" gpsorder="1" allowedwar="0" warcontrol="0" >
<world_npc id="1" npc_name="npc01-0001" x="36" y="41" is_obj="0" />
<world_npc id="2" npc_name="npc01-0002" x="37" y="36" is_obj="0" />
<world_npc id="3" npc_name="npc01-0003" x="37" y="13" is_obj="0" />
<world_npc id="4" npc_name="npc01-0004" x="18" y="13" is_obj="0" />
<world_npc id="5" npc_name="npc01-0005" x="28" y="40" is_obj="0" />
<world_npc id="6" npc_name="npc01-0006" x="12" y="43" is_obj="0" />
<world_npc id="7" npc_name="npc01-0007" x="43" y="27" is_obj="0" />
<world_npc id="8" npc_name="npc01-0008" x="23" y="49" is_obj="0" />
<world_npc id="9" npc_name="npc01-0009" x="17" y="49" is_obj="0" />
<world_npc id="14" npc_name="npc01-0014" x="219" y="184" is_obj="1" />
<world_npc id="15" npc_name="npc01-0015" x="19" y="113" is_obj="1" />
<world_npc id="16" npc_name="npc01-0016" x="65" y="242" is_obj="1" />
<world_npc id="17" npc_name="npc01-0017" x="128" y="232" is_obj="1" />
<world_npc id="18" npc_name="npc01-0018" x="240" y="116" is_obj="1" />
<world_npc id="19" npc_name="npc01-0019" x="87" y="163" is_obj="1" />
<world_npc id="20" npc_name="npc01-0020" x="52" y="172" is_obj="1" />
<world_npc id="21" npc_name="npc01-0021" x="83" y="139" is_obj="1" />
<world_npc id="22" npc_name="npc01-0022" x="166" y="65" is_obj="1" />
<world_npc id="23" npc_name="npc01-0023" x="185" y="28" is_obj="1" />
<world_npc id="24" npc_name="npc01-0024" x="73" y="164" is_obj="1" />
<world_npc id="25" npc_name="npc01-0025" x="55" y="159" is_obj="1" />
<world_npc id="26" npc_name="npc01-0026" x="145" y="34" is_obj="1" />
<world_npc id="27" npc_name="npc01-0027" x="15" y="111" is_obj="1" />
<world_npc id="28" npc_name="npc01-0028" x="22" y="72" is_obj="1" />
<world_npc id="29" npc_name="npc01-0029" x="160" y="195" is_obj="1" />
<world_npc id="30" npc_name="npc01-0030" x="59" y="68" is_obj="1" />
<world_npc id="31" npc_name="npc01-0031" x="10" y="28" is_obj="1" />
<world_npc id="50" npc_name="npc01-0050" x="0" y="0" is_obj="0" />
<shop id="4" >
<cabal_msg>
<version index="1"/>
<nation code="CN"/>
<extra_obj_msg>
<msg id="extra_npc_000" cont="Entrada da Arena do Caos" />
</extra_obj_msg>
</cabal_msg>
<msg id="npc01-0020" cont="Entrada da Caverna Abandonada nas Colinas" />
<msg id="npc01-0021" cont="Entrada da Cabana Velha nas Colinas" />
<msg id="npc01-0022" cont="Entrada do Covil dos Ladrões" />
<msg id="npc01-0023" cont="Entrada da Vila dos Ladrões" />
<msg id="npc01-0024" cont="Retiro do Sirius" />
<msg id="npc01-0025" cont="Lápide" />
<msg id="npc01-0026" cont="Árvore Esburacada" />
<msg id="npc01-0027" cont="Primeiro bilhete deixado por Yuan" />
<msg id="npc01-0028" cont="Segundo bilhete deixado por Yuan" />
<msg id="npc01-0029" cont="Osso Colossal" />
<msg id="npc01-0030" cont="Sede temporária do pastor de cabritos da montanha" />
<msg id="npc01-0031" cont="Entrada da Arena do Caos" />
world1_npc.scp
26 0 31 10 28 7 0
want to know why I'm doing wrong because my npc does not work and did not appear
name?
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
quenio
want to know why I'm doing wrong because my npc does not work and did not appear
name?
IDK why your NPC name's didn't appear. But even it appeared it still couldn't work because Chaos Arena didn't work with our server.
Quote:
Originally Posted by
DontBugMe
adding a npc to cabal is one thing, but giving them a name is another thing...
and that the problem; it doesnt matter, what i edit. i cant fkn get the npc to have a name displayed above him -.-'
To add a name to NPC you have to:
1, Add a line into extra_obj_msg.enc
Code:
<cabal_msg>
<version index="1"/>
<nation code="EU"/>
<extra_obj_msg>
<msg id="extra_npc_003" cont="Rune Agent Flasha" />
</extra_obj_msg>
</cabal_msg>
2, Add a line into cabal_msg.enc
Code:
<msg id="npc01-0035" cont="Rune Agent Flasha" />
That's all, everything is ok with me :thumbup1: My files have been changed a lot since I tried to make a NPC who sells all Craft Material. But I'll try to find an old version of these files then upload here, asap.
Re: Guide to add a NPC and config it to work as a Shop
i observate in the tutorials of the lady choas arena and yul npc type 7
cabalmain suport this enc type?
in my server when i put tpc type 7 on chaos arena enterente i can't enter .....
it is problem of cabalmain?:scared:
Re: Guide to add a NPC and config it to work as a Shop
I successfully make all this work, But theres only 1 thing error error code 6, when I buy item in new NPC, surely I done all what exactly the tutorial here :)
Re: Guide to add a NPC and config it to work as a Shop
Who can tell me where i wrong,because when i buy i get error code 06:grr:
*My cabal.Enc edit
<cabal_world>
Code:
<world_npc id="32" npc_name="npc01-0032" x="23" y="16" is_obj="0" />
Code:
<shop id="32" >
<item slot_id="0" item_id="1653" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="16" item_id="1635" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="48" item_id="1641" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="64" item_id="1647" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="2" item_id="1654" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="18" item_id="1636" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="50" item_id="1642" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="66" item_id="1648" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="4" item_id="1655" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="20" item_id="1637" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="52" item_id="1643" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="68" item_id="1649" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="6" item_id="1656" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="22" item_id="1638" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="54" item_id="1644" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="70" item_id="1650" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="80" item_id="1651" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="96" item_id="1633" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="82" item_id="1639" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="98" item_id="1645" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="84" item_id="1652" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="100" item_id="1634" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="86" item_id="1640" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="102" item_id="1646" option="536870912" reputation_class="-19" duration_id="0" price="50000000" />
<item slot_id="118" item_id="1457" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="119" item_id="1460" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="126" item_id="311" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="127" item_id="314" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="114" item_id="408" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="122" item_id="1448" option="0" reputation_class="-19" duration_id="0" price="5000000" />
<item slot_id="123" item_id="824" option="0" reputation_class="-19" duration_id="0" price="5000000" />
</shop>
*My world1-npc.scp edit
[NpcPos] Flags Index PosX PosY Type IsRangeCheck
[ShopLst] NpcsIdx NSetIdx ItemKind ItemOpt ReputationClass DurationIdx Price
Code:
142 32 0 1653 536870912 -19 0 50000000
143 32 16 1635 536870912 -19 0 50000000
144 32 48 1641 536870912 -19 0 50000000
145 32 64 1647 536870912 -19 0 50000000
146 32 2 1654 536870912 -19 0 50000000
147 32 18 1636 536870912 -19 0 50000000
148 32 50 1643 536870912 -19 0 50000000
149 32 66 1648 536870912 -19 0 50000000
150 32 4 1655 536870912 -19 0 50000000
151 32 20 1637 536870912 -19 0 50000000
152 32 52 1643 536870912 -19 0 50000000
153 32 68 1649 536870912 -19 0 50000000
154 32 6 1656 536870912 -19 0 50000000
155 32 22 1638 536870912 -19 0 50000000
156 32 54 1644 536870912 -19 0 50000000
157 32 70 1650 536870912 -19 0 50000000
158 32 80 1651 536870912 -19 0 50000000
159 32 96 1633 536870912 -19 0 50000000
160 32 82 1639 536870912 -19 0 50000000
161 32 98 1645 536870912 -19 0 50000000
162 32 84 1652 536870912 -19 0 50000000
163 32 100 1634 536870912 -19 0 50000000
164 32 86 1640 536870912 -19 0 50000000
165 32 102 1646 536870912 -19 0 50000000
166 32 118 1457 0 -19 0 5000000
167 32 119 1460 0 -19 0 5000000
168 32 126 311 0 -19 0 5000000
169 32 127 314 0 -19 0 5000000
170 32 114 408 0 -19 0 5000000
171 32 122 1448 0 -19 0 5000000
172 32 123 824 0 -19 0 5000000
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
xDoryx
Who can tell me where i wrong,because when i buy i get error code 06:grr:
[/code]
First of all, thanks for this nice tutorial :)
@xDoryx:
I got the same problem. We did everything correct in this guide.
But i cant buy an item from an self createt npc.
Iam still testing to fix this problem ...
Re: Guide to add a NPC and config it to work as a Shop
please anyone can help me how to edit the extra_obj see bcoz when i edit the extra_object using notepad [Correct me if i wrong] i put the code in the last page of my extra_object.enc
i saw this
Code:
cabal>
<version index="1" />
<extra_object world_id="1" >
<extra_stuff ID="0" filename="Character\w1craft.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2338,127,1633" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
<extra_object world_id="4" >
<extra_stuff ID="0" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="23742,337,391" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
<extra_stuff ID="1" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="22644,460,86" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
</extra_object>
<extra_object world_id="6" >
<extra_stuff id="0" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7738,0,1733" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0035" npc_id="35" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff id="1" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="11738,0,5633" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0036" npc_id="36" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff id="2" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4838,0,3133" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0037" npc_id="37" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
<extra_object world_id="30">
<extra_stuff ID="0" filename="\Character\warp-pf.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13705,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="9" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="1" filename="\Character\warp-mf.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14005,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_002" npc_id="10" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="2" filename="\Character\warp-fr.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14305,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="11" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="3" filename="\Character\warp-ug.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14605,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_004" npc_id="12" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="4" filename="\Character\w1agent.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13805,0,24805" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="4" name="extra_npc_006" npc_id="14" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="5" filename="\Character\warp-sod.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,23805" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="5" name="extra_npc_007" npc_id="15" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="6" filename="\Character\warp-eod.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,23505" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="6" name="extra_npc_008" npc_id="16" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="7" filename="\Character\warp-ls.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,24505" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="7" name="extra_npc_009" npc_id="17" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="8" filename="\Character\warp-ft.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,24205" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="8" name="extra_npc_010" npc_id="18" npc_tag="0" npc_type="6" />
</extra_stuff>
</extra_object>
<extra_object world_id="20">
<extra_stuff ID="0" filename="\Character\w29etc12.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1705,0,17405" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="1" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="1" filename="\Character\w29etc2.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="3805,0,21105" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_002" npc_id="2" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_stuff>
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0" />
</cabal>
---------- Post added at 01:37 AM ---------- Previous post was at 01:36 AM ----------
and when i log in it again not work :( please help me need it bcoz the crismast is coming
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
cabalboy
please anyone can help me how to edit the extra_obj see bcoz when i edit the extra_object using
notepad [Correct me if i wrong] i put the code in the last page of my extra_object.enc
i saw this
Code:
cabal>
<version index="1" />
<extra_object world_id="1" >
<extra_stuff ID="0" filename="Character\w1craft.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2338,127,1633" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
<extra_object world_id="4" >
<extra_stuff ID="0" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="23742,337,391" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
<extra_stuff ID="1" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="22644,460,86" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
</extra_object>
<extra_object world_id="6" >
<extra_stuff id="0" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7738,0,1733" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0035" npc_id="35" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff id="1" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="11738,0,5633" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0036" npc_id="36" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff id="2" filename="Object\city\3d\tree_oi.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4838,0,3133" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0037" npc_id="37" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
<extra_object world_id="30">
<extra_stuff ID="0" filename="\Character\warp-pf.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13705,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="9" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="1" filename="\Character\warp-mf.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14005,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_002" npc_id="10" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="2" filename="\Character\warp-fr.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14305,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="11" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="3" filename="\Character\warp-ug.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="14605,0,23205" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_004" npc_id="12" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="4" filename="\Character\w1agent.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13805,0,24805" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="4" name="extra_npc_006" npc_id="14" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="5" filename="\Character\warp-sod.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,23805" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="5" name="extra_npc_007" npc_id="15" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="6" filename="\Character\warp-eod.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,23505" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="6" name="extra_npc_008" npc_id="16" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="7" filename="\Character\warp-ls.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,24505" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="7" name="extra_npc_009" npc_id="17" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="8" filename="\Character\warp-ft.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13405,0,24205" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="8" name="extra_npc_010" npc_id="18" npc_tag="0" npc_type="6" />
</extra_stuff>
</extra_object>
<extra_object world_id="20">
<extra_stuff ID="0" filename="\Character\w29etc12.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1705,0,17405" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_001" npc_id="1" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="1" filename="\Character\w29etc2.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="3805,0,21105" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_002" npc_id="2" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_stuff>
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0" />
</cabal>
---------- Post added at 01:37 AM ---------- Previous post was at 01:36 AM ----------
and when i log in it again not work :( please help me need it bcoz the crismast is coming
Just Try This One :)
Attachment 82540
tnx TanGzkie !! your are the best i thanks your post everytime i see you tnx !!!
i have problem sir tangzkie i same problem when i put RUNE FLASHA and auction in bloody ice with xmas tree decoration i got same error nothing happend please help me like you do
i need like extra_obj.enc
with rune flasha with craft materials items
and auction with craft material also
and christmas decoration in BI
bcoz i got some error and no work when i do it.
sir tanGzKie , Chumpy and the others help me
Re: Guide to add a NPC and config it to work as a Shop
I have a question.If I give price 25b by server and client side in the shop i see PRICE : 0.. I dont know what's wrong
Re: Guide to add a NPC and config it to work as a Shop
Useful piece of information =)
@sunde86
Edit the pricing on the client side.
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
cabalboy
tnx TanGzkie !! your are the best i thanks your post everytime i see you tnx !!!
i have problem sir tangzkie i same problem when i put RUNE FLASHA and auction in bloody ice with xmas tree decoration i got same error nothing happend please help me like you do
i need like extra_obj.enc
with rune flasha with craft materials items
and auction with craft material also
and christmas decoration in BI
bcoz i got some error and no work when i do it.
sir tanGzKie , Chumpy and the others help me
why didn't u try to create those things by urself? use my tutorial, it's not too hard... even when TanGzkie did it for you, you should spend a little time for it again to check why yours caused error :)
Re: Guide to add a NPC and config it to work as a Shop
Reviewed this again and I must say, I succeeded this time round adding all the Bloody Ice NPC's!
One note though, for some reason, 'extra_obj_msg.enc' doesn't seem to want to name items in Cabal. They are all named from 'cabal_msg.enc' so forget the 'extra_obj_msg.enc' for these NPC's!
Thanks! ( I USED THE BUTTON ;) )
And thanks to everybody who helped me with posting these (REQUESTED) files?!?!
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
Hi!
What could be wrong with this?
Why can I not see?
[IMG]http://img860.imageshack.us/img860/6524/extraobj.th.png[/IMG
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
gerokrisz
Hi!
What could be wrong with this?
Why can I not see?
[IMG]http://img860.imageshack.us/img860/6524/extraobj.th.png[/IMG
You forgot the </extra_stuff> closing tag.
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
Not so good :S
I have to write something somewhere?
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
Why is Error Code 6?:grr:
Re: Guide to add a NPC and config it to work as a Shop
can anyone explain why after adding the npc, the map is also changed .. take a look and how can i fix this :sleep:[IMG]http://img195.imageshack.us/img195/4...7150414000.jpg Uploaded with ImageShack.us [/IMG]
[IMG]http://img12.imageshack.us/img12/452...7150414000.jpg Uploaded with ImageShack.us [/IMG]
Re: Guide to add a NPC and config it to work as a Shop
Because you've got the rotate and/or scale values set incorrectly. I believe the rotation in the EP2 extra_obj is represented by a quaternion, whereas in the newer clients it's represented as radians or degrees.
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Yamachi
Because you've got the rotate and/or scale values set incorrectly. I believe the rotation in the EP2 extra_obj is represented by a quaternion, whereas in the newer clients it's represented as radians or degrees.
fixed thx
Re: Guide to add a NPC and config it to work as a Shop
Please use the "Like" feature in future instead of replying with "thanks". Thank you.
Re: Guide to add a NPC and config it to work as a Shop
i put event girl in GD, how can i work the event girl that he gives an information like event. giving details on all players. in short, she's not an NPC.
Re: Guide to add a NPC and config it to work as a Shop
hi, i tryed to put some items in shop and it work perfecly .. the second shop added but here is my problem . why items crafted cannot be seen exacly how they are with craft ?? in shop it show like a normal item for example 1/2 slot and if you buy is crafted. The point is i want in shop items who can be seen crafted and craft when is bought.Any ideea ? help
[IMG][IMG=http://img696.imageshack.us/img696/2393/lastsj.jpg][/IMG] Uploaded with ImageShack.us [/IMG]
Re: Guide to add a NPC and config it to work as a Shop
Hi!
My error in WorldSvr_01_01.log :
[Mon Jul 4 2011 17:25:03.119804 64002960]: AntiAddictInit UserNum:1, CharIdx:8, IsAdult:1, PersonId:0, PlayTimeMin:0
[Mon Jul 4 2011 17:25:08.873212 64002960]: [##ERROR##] OnCSCItemBuyings(): invalid pNpcsData. charIdx(8), worldIdx(1), iNpcsIdx(35)
[Mon Jul 4 2011 17:25:08.873256 64002960]: [##ERROR##] 'OnCSCItemBuyings' fail (Proc/Inventory.cpp:3231)
[Mon Jul 4 2011 17:25:08.873268 64002960]: [##ERROR##] UsrMap Fail : MainCmd(161) Ret(290C9F:41:3231) Addr(89.133.xx.xxx)
Whats the problem?
---
Blo0dAnGeL - Check ItemOpt value!
Re: Guide to add a NPC and config it to work as a Shop
These guides are great! I had successfully made all npc & the name appeared accordingly. But the problem now, UCH in rune agent shop had bug. When i buy it show error 6!. Same goes to Lady Yekaterina i had UCH placed in her shop still i get Error 6! I had followed the guide properly again & again still the same & i still cant figure out whats the problem. pls help :(
Re: Guide to add a NPC and config it to work as a Shop
anyone here how to compute the rotation of the object?
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
mikkomoley
anyone here how to compute the rotation of the object?
Rotation is represented by a quaternion, if I'm not mistaken.
Re: Guide to add a NPC and config it to work as a Shop
hi all
when i try add RuneAgent i get error
"Tell pls to EST Soft and etc..." WFoCD :DDD
where problem?
I enabled Load manwoman 12.ech but its dont sloved problem
Re: Guide to add a NPC and config it to work as a Shop
This is working so add this to your following files:
<extra_obj.enc>
Code:
<extra_stuff id="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775">
<extra_entity type="1" pos="1115,0,3022" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7"/>
</extra_stuff>
<extra_stuff ID="1" filename="Character\w29etc35.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2320,127,1633" rotate="0,.999,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
<cabal_msg.enc>
Code:
<msg id="npc01-0031" cont="Chaos Arena Entrance" />
<msg id="npc01-0032" cont="Lady Yekaterina (Agent Shop)" />
<msg id="npc01-0033" cont="Bodyguard Hurdor" />
<msg id="npc01-0034" cont="Bodyguard Hursurf" />
<msg id="npc01-0035" cont="Rune Agent Flasha" />
<cabal.enc>
Code:
<world_npc id="31" npc_name="npc01-0031" x="10" y="28" is_obj="0"/>
<world_npc id="32" npc_name="npc01-0032" x="23" y="16" is_obj="0"/>
<world_npc id="33" npc_name="npc01-0033" x="28" y="16" is_obj="0"/>
<world_npc id="34" npc_name="npc01-0034" x="17" y="16" is_obj="0"/>
<world_npc id="35" npc_name="npc01-0035" x="14" y="43" is_obj="0"/>
If this STILL doesn't work, make sure you have the *.EBM files listed in <extra_obj.enc>.
Shouldn't have any problem with this! The above is a snapshot from my server which is working!!
Re: Guide to add a NPC and config it to work as a Shop
I have a problem.. when i add only rune agent flasha the est soft error massage appears when i connect to the world server :( but when i add them both the game works but two looks like the same.. did i get anything wrong?
"extra_obj.enc"
<cabal>
<version index="1" />
<extra_object world_id="1">
<!--<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775"/>-->
<!--<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0"/>-->
<extra_stuff id="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775">
<extra_entity type="1" pos="1115,0,3022" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7"/>
</extra_stuff>
<extra_stuff ID="1" filename="Character\w29etc35.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2320,127,1633" rotate="0,.999,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
</extra_object>
</cabal>
http://i1020.photobucket.com/albums/...g?t=1335578162
http://i1020.photobucket.com/albums/...g?t=1335578162
srry for bad english :(
Re: Guide to add a NPC and config it to work as a Shop
They both have the same stuff_id, then it's normal that they look the same.
Re: Guide to add a NPC and config it to work as a Shop
hmm..ok let me try again :D
EDIT:
it worked ! thank you @SpeedDevil
Edit:
okay srry for bother but ive got a problem again..
my " WorldSvr_XX_XX " stopped when i add my item in " world1-npc.scp "
WorldSvr_XX_XX file:
98 32 0 1 0 -19 0 1
cabal.enc
<shop id="32" >
<item slot_id="0" item_id="1" option="0" reputation_class="-19" duration_id="0" price="1" />
</shop>
have i done anything wrong plzzz help tnx...
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Metal556
hmm..ok let me try again :D
EDIT:
it worked ! thank you @SpeedDevil
Edit:
okay srry for bother but ive got a problem again..
my " WorldSvr_XX_XX " stopped when i add my item in " world1-npc.scp "
WorldSvr_XX_XX file:
98 32 0 1 0 -19 0 1
cabal.enc
<shop id="32" >
<item slot_id="0" item_id="1" option="0" reputation_class="-19" duration_id="0" price="1" />
</shop>
have i done anything wrong plzzz help tnx...
Please use the Other Slots of the NPC to make it work .. :-)
Re: Guide to add a NPC and config it to work as a Shop
Great guide but am I missing something here. I still do not see the npc I added with the codes provided...am I to config something I missed?
Re: Guide to add a NPC and config it to work as a Shop
me too...i not able to see even i follow the guide carefully..then how to add or any thing lucking?
Re: Guide to add a NPC and config it to work as a Shop
Yea clearly something is not right...none of it works -.-
Any pointers...
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Darkforce74
Yea clearly something is not right...none of it works -.-
Any pointers...
any reply?
Re: Guide to add a NPC and config it to work as a Shop
Having the same problem added everything but nothing is working ... maybe because EBM model is not working or missing ? :D
Hm or maybe cabalmain doesint load it ;)
Re: Guide to add a NPC and config it to work as a Shop
can some 1 explain me whats wrong?! I deleted fountain and I get est soft error ?! my extra_object.enc :
ssd
<cabal>
<version index="1" />
<extra_object world_id="1" >
<extra_stuff ID="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1115,0,3022" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="2" filename="Character\w29etc35.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2338,127,1633" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
<extra_object world_id="6">
<extra_stuff ID="0" filename="\Character\w29obj11.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13550,0,11305" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_011" npc_id="11" npc_tag="0" npc_type="6" />
</extra_stuff>
<extra_stuff ID="1" filename="\Character\w12ca_Philo.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="17500,0,4200" rotate="0,1,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_012" npc_id="12" npc_tag="0" npc_type="6" />
</extra_stuff>
</extra_object>
<extra_object world_id="25">
<extra_stuff id="0" filename="Character\w12ca_Philo.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_stuff id="1" filename="Character\w12pro_Philo.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_stuff id="2" filename="character\wRMS.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_stuff id="3" filename="character\wRMS.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="1" pos="23000,0,4100" rotate="0,0.707,0,0.707" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_106" npc_id="50" npc_tag="0" npc_type="1" />
<extra_entity type="1" pos="2330,0,21575" rotate="0,-0.707,0,0.707" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_107" npc_id="9" npc_tag="0" npc_type="7" />
<extra_entity type="1" pos="23600,0,4100" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="16" npc_tag="0" npc_type="7" />
<extra_entity type="1" pos="1800,0,21500" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="" npc_id="17" npc_tag="0" npc_type="7" />
</extra_stuff>
</extra_object>
</cabal>
AND CAN SOME 1 EXPLAIN ME HOW TO PUT FOUNTAIN IN DESERT?! PLZ!
EDIT: SOLVED
Re: Guide to add a NPC and config it to work as a Shop
Check everything 2 or 3 times make sure your client and server files are synched
I tryed a couple times :) and I got it :) now its easy :) :thumbup:
Quote:
Originally Posted by
DontBugMe
adding a npc to cabal is one thing, but giving them a name is another thing...
and that the problem; it doesnt matter, what i edit. i cant fkn get the npc to have a name displayed above him -.-'
here are the things i've done so far:
-i followd EXACTLY the tutorial - i edited (/added the lines) the extra_obj.enc and of course the extra_obj_msg.enc - just like the toturial says.
it didnt work
just for a failsave methode, i just copied and pasted the xml code. for both files. so, nothing else than the tutotial xml code was in those files.
it didnt work
i added a line in the cabal_msg.enc, just like how all the other npcs (like Henkoff and co) got their names. i thought, that its worth a try.
it didnt work
after comparing with the up-to-date EU clientfiles, i noticed that the xml code was a bit different - so i changed the xml code given by the tutorial to the correct xml code, how it normally has to be!
the npcs are there - just like before, but still without names. so..
it didnt work
patching the up-to-date EU clientfiles with my own privat server patchfiles wont work. the cabalmain.exe wont start with the "breaklee" command (whould be very dumb of ESTsoft if they didnt fixed that already xDD) - but it was worth the try. so...
it didnt work
i dont know if i made a mistake, im just not able to see, or maybe i made a mistake, of wich i just dont know that it actually is a mistake :D
so here are some xml coding forms:
extra_obj.enc:
EU version:
Code:
<cabal>
<version index="1" />
<extra_object world_id="1" >
<extra_stuff ID="0" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1115,0,3022" rotate="0,270,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_000" npc_id="31" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="1" filename="Character\w1agent.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2338,127,1633" rotate="0,180,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_001" npc_id="32" npc_tag="0" npc_type="12" />
</extra_stuff>
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
</extra_object>
<extra_object world_id="3" >
<extra_stuff ID="0" filename="\Character\w29etc17.EBM" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="19505,0,5661" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_002" npc_id="49" npc_tag="0" npc_type="8" />
</extra_stuff>
</extra_object>
<extra_object world_id="4" >
<extra_stuff ID="0" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="23742,337,391" rotate="0,126,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="0" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
<extra_stuff ID="1" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="22644,460,86" rotate="0,51,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="1" name="" npc_id="0" npc_tag="0" npc_type="0" />
</extra_stuff>
</extra_object>
<extra_object world_id="33" >
<extra_stuff ID="0" filename="Object\object_fx\port_ex\ptEx_whale\ptEx_whale.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1959,0,6122" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="13" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="1912,0,11031" rotate="0,90,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="16" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="3219,0,689" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="17" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7371,0,24490" rotate="0,123,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="" npc_id="18" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="1" filename="Object\object_fx\port_ex\ptEx_whale_a\ptEx_whale_a.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="15817,0,22950" rotate="0,60,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="14" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23876,0,22421" rotate="0,115,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="19" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="9021,0,22846" rotate="0,15,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="20" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="24389,0,12812" rotate="0,25,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="21" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="20221,0,3522" rotate="0,35,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="" npc_id="22" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="2" filename="Object\object_fx\port_ex\ptEx_fish\ptEx_fish.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="24047,0,9643" rotate="0,180,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="15" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="2371,0,18976" rotate="0,270,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="23" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="8615,0,24155" rotate="0,165,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="24" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="13999,0,22620" rotate="0,220,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="25" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23131,0,24564" rotate="0,120,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="26" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="23643,0,23691" rotate="0,150,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="27" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="22887,0,15229" rotate="0,265,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="28" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="22750,0,12430" rotate="0,300,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="29" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="24921,0,4973" rotate="0,15,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="30" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="17350,0,2130" rotate="0,170,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="31" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18237,0,21012" rotate="0,234,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="42" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18475,0,21117" rotate="0,258,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="43" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18126,0,21116" rotate="0,262,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="44" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18393,0,21082" rotate="0,257,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="45" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21447,0,19015" rotate="0,331,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="46" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21666,0,19082" rotate="0,339,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="47" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21825,0,19147" rotate="0,337,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="48" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21896,0,18992" rotate="0,339,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="49" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21690,0,18776" rotate="0,340,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="71" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21530,0,19176" rotate="0,343,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="72" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="6873,0,21369" rotate="0,245,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="32" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7368,0,21725" rotate="0,236,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="33" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7683,0,21849" rotate="0,244,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="34" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7690,0,21669" rotate="0,245,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="35" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7833,0,21616" rotate="0,243,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="36" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7865,0,21942" rotate="0,247,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="37" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="7940,0,21944" rotate="0,246,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="38" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18299,0,21244" rotate="0,240,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="39" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18147,0,21039" rotate="0,248,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="40" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="18445,0,21236" rotate="0,256,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="41" npc_tag="0" npc_type="13" />
<extra_entity type="1" pos="21513,0,19081" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="" npc_id="73" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="3" filename="\Object\object_fx\port_ex\ptEx_ship\warpcaptain.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4707,429,3650" rotate="0,244,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="3" name="" npc_id="74" npc_tag="0" npc_type="13" />
</extra_stuff>
<extra_stuff ID="4" filename="\Object\object_fx\port_ex\ptEx_ship\sailor.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="4899,286,4258" rotate="0,276,0" scale="0.95,0.95,0.95" disable_cell_radius="1" stuff_id="4" name="" npc_id="75" npc_tag="0" npc_type="13" />
</extra_stuff>
</extra_object>
</cabal>
My try #1:
Code:
<cabal>
<version index="1" />
<extra_object world_id="1">
<extra_stuff id="0" filename="object\object_fx\x-mas\x-mastree05.efx" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="0" pos="2252,-31,3068" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="2" stuff_id="0" />
</extra_stuff>
<extra_stuff id="500" filename="object\snow\f_snow_guidace.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1100,0,2800" rotate="0,0.707107,0,0.707107" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_500" npc_id="500" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_object>
</cabal>
my try #2 (from the tut):
Code:
<cabal>
<version index="1" />
<extra_object world_id="1">
<extra_stuff id="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="1" />
</extra_object>
</cabal>
extra_obj_msg.enc:
EU version:
Code:
<cabal_msg>
<version index="2"/>
<nation code="ENG"/>
<extra_obj_msg>
<msg id="extra_npc_000" cont="Entrance of Chaos Arena" />
<msg id="extra_npc_001" cont="Agent Shop Lady Yekatrina" />
<msg id="extra_npc_002" cont="Event NPC Yul" />
</extra_obj_msg>
</cabal_msg>
my try #1:
Code:
<cabal_msg>
<version index="1"/>
<nation code="CN"/>
<extra_obj_msg>
<msg id="extra_npc_500" cont="Core Shop" />
</extra_obj_msg>
</cabal_msg>
in different tries i changed the nation code, from CN to EU, to US, to ENG, to almost everything. CN was the original code.
cabal_msg.enc (a little part of it):
my try:
Code:
<msg id="npc01-0030" cont="Mountain Goat Shepherd's Quarters" />
<msg id="npc01-0031" cont="Chaos Arena Entrance" />
<msg id="npc01-0050" cont="" />
<msg id="npc01-0500" cont="LALA" />
<msg id="npc02-0001" cont="Dunhike(Officer)" />
<msg id="npc02-0002" cont="Gette(Instructor)" />
<msg id="npc02-0003" cont="Cox(Agent of Port Service)" />
<msg id="npc02-0004" cont="Mezias(Weapon Shopkeeper)" />
<msg id="npc02-0005" cont="Dion(Armor Shopkeeper)" />
<msg id="npc02-0006" cont="Sullivan(Core Alchemist)" />
<msg id="npc02-0007" cont="Eillen(Grocer)" />
after doing so much, it pretty seems to be, that the cabalmain.exe simply ignores the extra_obj.enc file, wich im not wondering about, because i can remember the time, as the official EU server got the chaos entrance sign in bloody ice - but with no function, nor a name to it. maybe the implemention of reading the extra_obj_msg.enc was an update when ESTsoft finished their work on the chaos arena itself...
what im using:
-the actual release of chumpywumpi server files (dunno version number right now),
-the US client (cabalsetup_us.exe, last modified at 30.01.2008, 878.127.502 bytes)
-my totally smoked brain.... screw this crap -.-
if someone got the custom npcs to work, it whould be veery nice, to share ur wisdom with some really sad guy... xD
it also may helps, if that person may upload following files:
-cabal.exe
-cabalmain.exe
-cabal.enc
-extra_obj_msg.enc
-extra_obj.enc
-cabal_msg.enc
-any other file, relating to my problem
thx ;)
Re: Guide to add a NPC and config it to work as a Shop
Adding items to npc aren't in the data_world anymore. It's in NPCShop and it's some weird system, trying to figure it out.
Re: Guide to add a NPC and config it to work as a Shop
Here some quick update, the guide on the first page is still very useful.
cabal.enc and cabal_msg.enc had no effect when I edited them so I skipped it.
extra_obj.enc
extra_obj_msg.enc
world1-npc.scp Index is
NPCShop.scp NPC_ID
Observe the already existing shop, weapon or armor seller from BloodyIce for example and you will get the idea.
Copy the config and change Index, ID, name, position etc,..
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
toast2250
extra_obj.enc
extra_obj_msg.enc
world1-npc.scp
NPCShop.scp
Meaning only these 4 files needs to be edited, 2 for server side and 2 for client side... thnks
Re: Guide to add a NPC and config it to work as a Shop
Does it work if put? The pos="1496,0,4345" will not superpose even if i change in world1-npc.scp x,y coords?
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="3" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_004" npc_id="44" npc_tag="0" npc_type="1" />
</extra_stuff>
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Downforce
Does it work if put? The pos="1496,0,4345" will not superpose even if i change in world1-npc.scp x,y coords?
<extra_stuff ID="2" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_003" npc_id="35" npc_tag="0" npc_type="7" />
</extra_stuff>
<extra_stuff ID="3" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="1496,0,4345" rotate="0,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_004" npc_id="44" npc_tag="0" npc_type="1" />
</extra_stuff>
A sample In DS
Spoiler :
<extra_object world_id="2" >
<extra_dungeon dungeon_id="-1" >
<extra_stuff ID="8" filename="character\w23etc1.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7800,0,22300" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="8" name="extra_npc_021" npc_id="52" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="9" filename="character\w27etc2.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7800,0,22600" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="9" name="extra_npc_021" npc_id="53" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="10" filename="character\w29etc4.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7800,0,22900" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="10" name="extra_npc_021" npc_id="54" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="11" filename="character\w29etc2.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="7800,0,23200" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="11" name="extra_npc_021" npc_id="55" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="12" filename="character\w29etc5.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="8900,0,22300" rotate="0,187,0" scale="1,1,1" disable_cell_radius="1" stuff_id="12" name="extra_npc_021" npc_id="56" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="13" filename="character\w29etc8.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="8500,0,22300" rotate="0,187,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_021" npc_id="57" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_dungeon>
</extra_object>
http://img718.imageshack.us/img718/4...39ver37400.jpg
Re: Guide to add a NPC and config it to work as a Shop
hi Godskin, thanks for showing ur sample.
if NPC is attribute is name="extra_npc_021" in extra_obj.enc, does that mean in your extra_obj_msg.enc it is :
<msg id="extra_npc_021" cont="Shop Name 1" />
<msg id="extra_npc_021" cont="Shop Name 2" />
<msg id="extra_npc_021" cont="Shop Name 3" />
thanks again!
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Downforce
hi Godskin, thanks for showing ur sample.
if NPC is attribute is name="extra_npc_021" in extra_obj.enc, does that mean in your extra_obj_msg.enc it is :
<msg id="extra_npc_021" cont="Shop Name 1" />
<msg id="extra_npc_021" cont="Shop Name 2" />
<msg id="extra_npc_021" cont="Shop Name 3" />
thanks again!
Add name In cabal_msg
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
Hello. Help me please. I add NPC, but he don't click and no have name...
Screenshot:
Attachment 127016
extra_obj.enc
Code:
<extra_stuff ID="13" filename="Character\w1rune.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="2350,0,3050" rotate="0,90,0,0" scale="1,1,1" disable_cell_radius="1" stuff_id="13" name="extra_npc_099" npc_id="57" npc_tag="0" npc_type="7" />
</extra_stuff>
cabal.enc
Code:
<world_npc id="57" npc_name="npc01-0057" x="23" y="30" is_obj="1" />
cabal_msg.enc
Code:
<msg id="npc01-0057" cont="Test NPC" />
extra_obj_msg.enc
Code:
<msg id="extra_npc_099" cont="Test NPC" />
world1-npc.scp
Re: Guide to add a NPC and config it to work as a Shop
Im trying to add a npc in the warp center, and idk why it does not appear. Im missing something?
Code:
<extra_object world_id="30" >
<extra_dungeon dungeon_id="-1" >
<extra_stuff id="1" filename="Character\w23etc1.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="1" pos="14300,0,23900" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_099" npc_id="52" npc_tag="0" npc_type="1" />
</extra_dungeon>
</extra_object>
Code:
<msg id="extra_npc_099" cont="SHOP 1" />
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
cadena
Im trying to add a npc in the warp center, and idk why it does not appear. Im missing something?
Code:
<extra_object world_id="30" >
<extra_dungeon dungeon_id="-1" >
<extra_stuff id="1" filename="Character\w23etc1.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" />
<extra_entity type="1" pos="14300,0,23900" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_099" npc_id="52" npc_tag="0" npc_type="1" />
</extra_dungeon>
</extra_object>
Code:
<msg id="extra_npc_099" cont="SHOP 1" />
Help Testing
Ok Add new 4 Npc :alberteinstein:
http://img715.imageshack.us/img715/9477/555555uw.jpg
Cabal.enc
Cabal_msg.enc
extra_object.enc
Spoiler :
Code:
<extra_object world_id="30" >
<extra_dungeon dungeon_id="-1" >
<extra_stuff ID="0" filename="character\w29etc6.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13500,0,23500" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="0" name="extra_npc_0099" npc_id="52" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="1" filename="character\w29etc6.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13500,0,23800" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="1" name="extra_npc_0099" npc_id="53" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="2" filename="character\w29etc6.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13500,0,24200" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="2" name="extra_npc_0099" npc_id="54" npc_tag="0" npc_type="1" />
</extra_stuff>
<extra_stuff ID="3" filename="character\w29etc6.ebm" min="-170.873,-25.3112,-244.727" max="215.379,650,172.775" >
<extra_entity type="1" pos="13500,0,24500" rotate="0,238,0" scale="1,1,1" disable_cell_radius="1" stuff_id="3" name="extra_npc_0099" npc_id="55" npc_tag="0" npc_type="1" />
</extra_stuff>
</extra_dungeon>
</extra_object>
world30-npc.scp
Re: Guide to add a NPC and config it to work as a Shop
thx it's working now, but i don't see the difference, it's weird
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
A very nice NPC sample GOODSKIN... I successfully added new npc.
What is the ebm filename on this picture guys and also the ebm filename of T-Point Shop. I want to use this ebm as my NPC.
Attachment 127039
Edit: done
Re: Guide to add a NPC and config it to work as a Shop
Why I can't buy the items of my new added npc? I can click the item but when I press YES to buy it, nothing happens.
Anyone have successfully adding npc inside the warp center?
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
cadena
thx it's working now, but i don't see the difference, it's weird
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.
Re: Guide to add a NPC and config it to work as a Shop
Hi, I follow GODSKIN 4npcs sample, i can see 4 npcs but when i try add shops, no items.
NPCSHOP.scp
Quote:
[NPC] Shop_ID World_ID Order NPC_ID Pool_ID1 Pool_ID2
33 1 30 1 52 33 2
[Shop] Pool_ID SlotID ItemKind ItemOpt DurationIdx MinLevel MaxLevel Reputation OnlyPremium OnlyWin AlzPrice WExpPrice DPPrice CashPrice Renew ChracterBuyLimit SellLimit Marker MaxReputation
870 33 0 3 1 0 0 0 -19 0 0 600 0 0 0 0 0 0 0 20
Cabal.enc (to add shop afte
Quote:
<world id="30".... >
...
<world_npc id="52" npc_name="npc30-0052" x="135" y="235" is_obj="0" />
<world_npc id="53" npc_name="npc30-0053" x="135" y="238" is_obj="0" />
<world_npc id="54" npc_name="npc30-0054" x="135" y="242" is_obj="0" />
<world_npc id="55" npc_name="npc30-0055" x="135" y="245" is_obj="0" />
<shop id="50" >... </shop>
<shop id="52" >
<item slot_id="0" item_id="3" option="1" reputation_class="-19" duration_id="0" price="600" onlypremium="0" wexpprice="0" dp="0" />
</shop>
</world>
plz help
1 Attachment(s)
Re: Guide to add a NPC and config it to work as a Shop
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 : View image: npc dousnt show items
cabal_msg
extra_obj_msg
extra_obj
Spoiler :
<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
world1_npc.scp
NPCSHOP.scp
Also tried
Spoiler :
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.
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
GameMaxx
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)
Re: Guide to add a NPC and config it to work as a Shop
how to change model npc? i try change filename="character\man_pshop.ebm but npc invisible or clien crash.
Re: Guide to add a NPC and config it to work as a Shop
a better way is to add them from eventdata :P so you can stop and start the npc when you wannt ! xD
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
badboy7
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 :
View image: npc dousnt show items
cabal_msg
extra_obj_msg
extra_obj
Spoiler :
<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
world1_npc.scp
NPCSHOP.scp
Also tried
Spoiler :
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!!
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
oOSpikeOo
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
Quote:
Originally Posted by
nescafeIV
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.
Re: Guide to add a NPC and config it to work as a Shop
How to add item on shops? i tryed but i failed..
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Alterity
How to add item on shops? i tryed but i failed..
Npcshop.scp
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
GODSKIN
Npcshop.scp
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?
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
Alterity
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
Re: Guide to add a NPC and config it to work as a Shop
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
Re: Guide to add a NPC and config it to work as a Shop
Quote:
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
Re: Guide to add a NPC and config it to work as a Shop
Deserves to be sticky i think
Re: Guide to add a NPC and config it to work as a Shop
it seems like up to 875 items that can be put in NPCshop.scp
Re: Guide to add a NPC and config it to work as a Shop
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.
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
badboy7
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 :
View image: npc dousnt show items
cabal_msg
extra_obj_msg
extra_obj
Spoiler :
<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
world1_npc.scp
NPCSHOP.scp
Also tried
Spoiler :
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
Re: Guide to add a NPC and config it to work as a Shop
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?
Re: Guide to add a NPC and config it to work as a Shop
How the fuck to encrypt/decrypt ENC files
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
ruben93
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)
Re: Guide to add a NPC and config it to work as a Shop
When i edit everything and try to start cabal:
http://prikachi.com/images/100/7216100V.png
Re: Guide to add a NPC and config it to work as a Shop
Quote:
Originally Posted by
busternr
Just sync your Versions on Client & Server side..
[I hope it's fixed already but since I'm still reading this Guide / Posts ...]