[Request] NPC

10/30/2009 01:23 MandoPop#1
hey guys

i'm asking if i can make NPC like Pharmacist or VIPStoreKeeper

i mean ( NPC selling items )

i know that it's Type 1 !! But how can i put items i want to sell ??

any help plz


* Sorry for bad English *
10/30/2009 01:30 raidenx123#2
shop.dat and if binarys cq_goods
10/30/2009 03:32 MandoPop#3
thnx bro
10/30/2009 06:01 Co: Paze v3#4
Quote:
Originally Posted by MandoPop View Post
hey guys

i'm asking if i can make NPC like Pharmacist or VIPStoreKeeper

i mean ( NPC selling items )

i know that it's Type 1 !! But how can i put items i want to sell ??

any help plz


* Sorry for bad English *


Code:
[Header]
Amount=35 [COLOR="Red"]<----- Amount is 35 coz my last ShopNumber is 34[/COLOR]

[Shop0]
ID=3  [COLOR="Red"]<------NPC ID[/COLOR]
Name=Drugstore [COLOR="Red"]<----- NPC name[/COLOR]
Type=1 [COLOR="Red"]<----- 1 for Gold and 0 for CPs[/COLOR]
MoneyType=0
ItemAmount=19
Item0=1000000
Item1=1000010
Item2=1000020
Item3=1000030
Item4=1001000
Item5=1001010
Item6=1001020
Item7=1002000
Item8=1002010
Item9=1002020
Item10=1060020
Item11=1001030
Item12=1001040
Item13=1002030
Item14=1002040
Item15=720011
Item16=720012
Item17=720013
Item18=1002050

..........

[Shop34] [COLOR="Red"]<---so this is the last Shop number[/COLOR]
ID=4359
Name=Storekeeper
Type=1
MoneyType=0
ItemAmount=20
Item0=117093
Item1=150213
Item2=150223
Item3=152203
Item4=152223
Item5=152233
Item6=120213
Item7=120223
Item8=121213
Item9=121223
Item10=160213
Item11=160223
Item12=562000
Item13=1060030
Item14=1060040
Item15=1060050
Item16=1060060
Item17=1060070
Item18=1060080
Item19=1060090
Code:
[CODE]
[Header]
Amount=35 [COLOR="Red"]<----- Amount is 35 coz my last ShopNumber is 34[/COLOR]

[Shop0]
ID=3  [COLOR="Red"]<------NPC ID[/COLOR]
Name=Drugstore [COLOR="Red"]<----- NPC name[/COLOR]
Type=1
MoneyType=0  [COLOR="Red"]<----- 1 for Gold and 0 for CPs[/COLOR]
ItemAmount=19
Item0=1000000
Item1=1000010
Item2=1000020
Item3=1000030
Item4=1001000
Item5=1001010
Item6=1001020
Item7=1002000
Item8=1002010
Item9=1002020
Item10=1060020
Item11=1001030
Item12=1001040
Item13=1002030
Item14=1002040
Item15=720011
Item16=720012
Item17=720013
Item18=1002050

..........

[Shop34] [COLOR="Red"]<---so this is the last Shop number[/COLOR]
ID=4359
Name=Storekeeper
Type=1
MoneyType=0
ItemAmount=21 [COLOR="Red"]<-------from ItemAmount=20 to ItemAmount=21[/COLOR]
Item0=117093
Item1=150213
Item2=150223
Item3=152203
Item4=152223
Item5=152233
Item6=120213
Item7=120223
Item8=121213
Item9=121223
Item10=160213
Item11=160223
Item12=562000
Item13=1060030
Item14=1060040
Item15=1060050
Item16=1060060
Item17=1060070
Item18=1060080
Item19=1060090
[COLOR="Magenta"]Item20=137310[/COLOR][COLOR="Red"] <-----GMRobe also you can make new NPC by looking this[/COLOR]
[/CODE]

Code:
[Header]
Amount=36 [COLOR="Red"]<----- Amount is 36 coz my last ShopNumber is 35[/COLOR]

[Shop0]
ID=3  [COLOR="Red"]<------NPC ID[/COLOR]
Name=Drugstore [COLOR="Red"]<----- NPC name[/COLOR]
Type=1 [COLOR="Red"]<----- 1 for Gold and 0 for CPs[/COLOR]
MoneyType=0
ItemAmount=19
Item0=1000000
Item1=1000010
Item2=1000020
Item3=1000030
Item4=1001000
Item5=1001010
Item6=1001020
Item7=1002000
Item8=1002010
Item9=1002020
Item10=1060020
Item11=1001030
Item12=1001040
Item13=1002030
Item14=1002040
Item15=720011
Item16=720012
Item17=720013
Item18=1002050

..........

[Shop34] [COLOR="Red"]<---so this is the last Shop number[/COLOR]
ID=4359
Name=Storekeeper
Type=1
MoneyType=0
ItemAmount=21 [COLOR="Red"]<-------from ItemAmount=20 to ItemAmount=21[/COLOR]
Item0=117093
Item1=150213
Item2=150223
Item3=152203
Item4=152223
Item5=152233
Item6=120213
Item7=120223
Item8=121213
Item9=121223
Item10=160213
Item11=160223
Item12=562000
Item13=1060030
Item14=1060040
Item15=1060050
Item16=1060060
Item17=1060070
Item18=1060080
Item19=1060090

[Shop35] [COLOR="Red"]<---Don't forget to change this[/COLOR]
ID=[COLOR="Red"]Your NPC ID[/COLOR]
Name=[COLOR="Red"]Your NPC name[/COLOR]
Type=1
MoneyType=0 [COLOR="Red"]<----1 for gold and 0 for CPs[/COLOR]
ItemAmount=2 [COLOR="Red"]<-------ItemAmount is 2 because i have only 2 Items in shop[/COLOR]
Item0=117093
Item1=150213
Good Luck....anyway Tagalog ka ba? or Pinoy?
anyway Copy your Shop.dat to your source...
and this guide is for LOFT user only
Cos i dunno about TQ..
10/30/2009 13:19 zbest#5
Hmmm...and if i set "0" for CPS how can i put my prices?:):D
Example:

PHP Code:
[Header]
Amount=36

[Shop0]
ID=999999999
Name
=Shao Xeng
Type
=0
MoneyType
=0
ItemAmount
=5
Item
=055022 // Here Praying Stone (S) and i wanna set price (12 Conquer Points)
Item=022112 // Here Meteor and price ( 7 Conquer Points) 

How i do that?:-? (Newbie question);
10/30/2009 13:56 MandoPop#6
thanks for help but look at this [Only registered and activated users can see links. Click Here To Register...]

is there someing i have 2 do else ?

i opened navicat - cq_npc - and i put new one [Only registered and activated users can see links. Click Here To Register...]
Right ?!!

then i opened cq_goods - [Only registered and activated users can see links. Click Here To Register...]

is there any thing wrong ?
10/30/2009 14:04 MandoPop#7
Quote:
Originally Posted by zbest View Post
Hmmm...and if i set "0" for CPS how can i put my prices?:):D
Example:

PHP Code:
[Header]
Amount=36

[Shop0]
ID=999999999
Name
=Shao Xeng
Type
=0
MoneyType
=0
ItemAmount
=5
Item
=055022 // Here Praying Stone (S) and i wanna set price (12 Conquer Points)
Item=022112 // Here Meteor and price ( 7 Conquer Points) 

How i do that?:-? (Newbie question);
it's too easy just open cq_itemtype

and search for ur item like that

[Only registered and activated users can see links. Click Here To Register...]
10/30/2009 14:26 Zion~#8
Quote:
Originally Posted by zbest View Post
Hmmm...and if i set "0" for CPS how can i put my prices?:):D
Example:

PHP Code:
[Header]
Amount=36

[Shop0]
ID=999999999
Name
=Shao Xeng
Type
=0
MoneyType
=0
ItemAmount
=5
Item
=055022 // Here Praying Stone (S) and i wanna set price (12 Conquer Points)
Item=022112 // Here Meteor and price ( 7 Conquer Points) 

How i do that?:-? (Newbie question);
That's the shop.dat it only tells the shop what items to load, to set the prices you do that in your database.
10/30/2009 14:32 MandoPop#9
Quote:
Originally Posted by MandoPop View Post
thanks for help but look at this [Only registered and activated users can see links. Click Here To Register...]

is there someing i have 2 do else ?

i opened navicat - cq_npc - and i put new one [Only registered and activated users can see links. Click Here To Register...]
Right ?!!

then i opened cq_goods - [Only registered and activated users can see links. Click Here To Register...]

is there any thing wrong ?
hey guys what's the broplem here ?:(:confused::confused:
10/30/2009 14:44 Zion~#10
What is the ID of the newly created shop?
10/30/2009 15:28 MandoPop#11
1000000 u can see it in picture and his name Mando
10/30/2009 15:46 Fish*#12
Quote:
Originally Posted by zbest View Post
Hmmm...and if i set "0" for CPS how can i put my prices?:):D
Example:

PHP Code:
[Header]
Amount=36

[Shop0]
ID=999999999
Name
=Shao Xeng
Type
=0
MoneyType
=0
ItemAmount
=5
Item
=055022 // Here Praying Stone (S) and i wanna set price (12 Conquer Points)
Item=022112 // Here Meteor and price ( 7 Conquer Points) 

How i do that?:-? (Newbie question);
You edit prices in the Itemlist :D
10/30/2009 16:11 zbest#13
Yeah if i edit prices in itemlist those from shoppingmall wont change?:-?
Lets say in portable shopping mall a stone +3 is 160 CP's and in my NPC 80 CP's.
That 160 i think will change into 80 CP's.
Correct me if not true.
For LOTF i want hehe :D.
10/30/2009 16:15 Fish*#14
Quote:
Originally Posted by zbest View Post
Yeah if i edit prices in itemlist those from shoppingmall wont change?:-?
Lets say in portable shopping mall a stone +3 is 160 CP's and in my NPC 80 CP's.
That 160 i think will change into 80 CP's.
Correct me if not true.
For LOTF i want hehe :D.
It will change, but you have to change it in all Itemlsits + the client (If im right)
10/30/2009 16:22 zbest#15
Isn't a way like the prices from shopping mall to remain unchanged?:(