[Guide] Create a real shop(not text based) with custom npc by cyberghoser1

04/28/2010 23:08 cyberghoser1#16
changed what?
06/26/2010 19:50 randy01#17
o.o ive added everything inhere and it just wont show the npc with its name and look :S
it still looks like the 100's (p-atk) ive added the ini file.

any ideas why it wont show good looking npc..but instead the p-atk?

also the epshop fixed alrdy? since i want the shop to be in eps =x but cant buy the items..how to solve?

thanks
06/26/2010 19:52 Eurion#18
Quote:
Originally Posted by randy01 View Post
o.o ive added everything inhere and it just wont show the npc with its name and look :S
it still looks like the 100's (p-atk) ive added the ini file.

any ideas why it wont show good looking npc..but instead the p-atk?
Can you post your entry from cq_npc and the entry from the npc.ini file please.

I will look at them and see if I can figure out what's causing the issue.
06/26/2010 21:18 randy01#19
npc.ini:
added this to the list of npc's
[NpcType100004]
Name=Guilda
SimpleObjID=745
StandByMotion=0745000100
BlazeMotion=0745000190
BlazeMotion1=0700000190
BlazeMotion2=0700000190
RestMotion=0745000101
Effect=other31
ZoomPercent=100
Note=4theudsummon/+255Gear

cq_npc:


100004 0 0 Guilda 123 1000040 0 0 -1 1000 264 479 900001020 0 0 0 0 0 0 0 0 1 0 0 ?ž?® 0 0 0 0 1 0 0 0 0 0

it wont even show the name i put into the note :S and the name of the npc wont be shown as well just the 100
thanks for your help :D
06/27/2010 02:25 Eurion#20
Ok those seem right, next question is did you copy another npc, or create a brand new one for the npc.ini?
06/27/2010 03:30 funhacker#21
the ep shop issue I assume that there is a hard coded list of npc IDs or a function within the code that only allows certain npc id to sell for ep.

Basicaly there must be a list like so:
1010
1076
1270
etc

or
There would be a function that does some kind of sum on the NPC ID example
1+2+7+0=10
1+3+5+2=10
etc
06/27/2010 22:01 randy01#22
Quote:
Originally Posted by Eurion View Post
Ok those seem right, next question is did you copy another npc, or create a brand new one for the npc.ini?
ive added the ini file as told..it created a new one
01/11/2011 23:59 fsfsto#23
K cool everything looks easy but ! how tO move the npc around ? How to put in market or in island or out side of market or next to the warehouse lady ???
01/12/2011 00:04 cyberghoser1#24
Quote:
Originally Posted by fsfsto View Post
K cool everything looks easy but ! how tO move the npc around ? How to put in market or in island or out side of market or next to the warehouse lady ???
Code:
1352	0	0	CastleShopEP	1	13520	0	0	-1	[COLOR="Red"]1000[/COLOR]	[COLOR="Blue"]187[/COLOR]	[COLOR="Blue"]394[/COLOR]	3911905	0	0	0	0	0	0	0	0	1	0	0	Ξή	0	0	0	0	1	0	0	0	0	0
Red = map id
Blue = coord

Simple...
02/03/2011 23:03 fsfsto#25
how to change the direction of the npc ??
02/14/2011 01:10 UniDarK[PM]#26
ok i got the npc i can ee it and everything but i cant open it :/ any help i would much aprecate it
09/01/2011 13:17 TheFlames#27
i try to make casual seller npc, but i can't buy item in eps..please help me. thank you
02/05/2012 11:39 matrix89#28
Quote:
Originally Posted by cyberghoser1 View Post
Ok now save your shop.dat

Now we are gonna make our npc custom with a title and a lookface. For the npc to have a lookface we can see in the above cq_npc entry that it uses lookface 1000040, easy here, the id of the npc is 100004, to have a lookface we have to calculate npcid*10 so 100004*10 = 1000040, this is valable for all npcs, so open up your npc.ini file and add this:
I Don't Understand how to calculate npcid..detail plss...
02/05/2012 12:45 WolvesMaster#29
Quote:
Originally Posted by UniDarK[PM] View Post
ok i got the npc i can ee it and everything but i cant open it :/ any help i would much aprecate it
it must be in the cq_action just check the IDs forwarding again or maybe you didn't put the cq_task IDs for the cq_action ?

Quote:
Originally Posted by TheFlames View Post
i try to make casual seller npc, but i can't buy item in eps..please help me. thank you
are you sure you added the items in the cq_goods ? or check the e-money column in the cq_itemtype

Quote:
Originally Posted by matrix89 View Post
I Don't Understand how to calculate npcid..detail plss...
Quote:
Originally Posted by fsfsto View Post
how to change the direction of the npc ??
in cq_npc the lookface column the last number is the direction of the NPC like 1000040 if you want to change the NPC direction so it can be like that 1000046 or 1000042 that's it ;)
02/05/2012 13:52 matrix89#30
ok..when i put new id..
example : 17000 <--this NPC id at cq_npc
and lookface i make 170004..
right?

at client..

Code:
[NpcType17000]
Name=Ovilia
SimpleObjID=745
StandByMotion=0745000100
BlazeMotion=0745000190
BlazeMotion1=0700000190
BlazeMotion2=0700000190
RestMotion=0745000101
Effect=None
ZoomPercent=100
Note=5PetEventMap
When i login..he show p-atk NPC.. id 100..

how to fix it?..emm