NPC Merchants e Leather hides - Help me.

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

NPC Merchants e Leather hides - Help me.

Post by Mutley »

Hello, I'm using the SVN distro 99 but can not find where to edit the quantity of items sold in NPC merchants.

Nor do I find where to add the amount of hides required to an item of type Studded Tunic.

Please help me, already researched the DOCS and all files not found. In itemdesc not say the amount of hides required. Is spending only to hide the item when should spend 14 hides.

Armor 0x13DB
{
/ / Main Stuff
Name StuddedTunic
Desc studded leather tunic

VendorBuysFor 64
VendorSellsFor 128

/ / Equipment Info
MaxHP 40
StrRequired 35

/ / Armor Info
AR 16
Body Coverage

/ / Scripts
DefaultDex -4
MagicPenalty 10

Script: equipment: useItem
MethodScript types / studdedLeather
DestroyScript: equipment: onDestroy
}


Help me please. Thank You!!!
gundamwing84
Grandmaster Poster
Posts: 178
Joined: Tue Sep 08, 2009 1:57 am

Re: NPC Merchants e Leather hides - Help me.

Post by gundamwing84 »

in the pkg\systems\merchants\config\npcdesc.cfg file, there will be something like this

Code: Select all

NPCTemplate Blacksmith
{
	Name			<random> - the blacksmith
	Script			:brainAI:brain
 
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
 
	RunSpeed		200
	Alignment		good
	Category		Merchants
 
 	Privs			invul
	Settings		invul

	Strength		150
	Intelligence		150
	Dexterity		150

	Blacksmithy 150
	Mining 150
	ArmsLore 150

	HITS			150
	MANA			150
	STAM			150

	AttackDamage		100d100
	AttackAttribute		Wrestling

	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

        GuardKill	1
        GuardIgnore     1

	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	AreaSize	i2

	AIScripts	genericMerchant
        
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	BlackSmith           //this is where it points to the BlackSmith group
        Wealth          Middle
}
then go to Distro\pkg\systems\merchants\config\buySell.cfg

Code: Select all

MerchantType BlackSmith  //BlackSmith group
{
	Sells	Blacksmithy         //then it points to selling the BlackSmithy group
	Sells	Mining
 
	Buys	ChainmailArmor
	Buys	PlateHelmet
	Buys	Shield
	Buys	RingmailArmor
	Buys	PlateArmor
	Buys	BoneArmor
	Buys	OtherArmor
}
Scroll down about 1/3 of the way through the cfg file, and it starts showing things like this:

Code: Select all

ProductGroup Blacksmithy //BlackSmithy group :) thats how it all ties together.
{
	Item 	0x0FBB  3 //tongs           //where the number 3 is, is where you change the amount of items sold
	Item 	0x13E3  3 //smithhammer
	Item 	0x0FB4  3 //sledgehammer
}

From my past experience with the distro, I'm pretty sure that the number just before the "//comment" is how many get stocked onto a vendor. Do some testing to make sure this is right, and always make sure you're changing the NPC's assigned group :)


that should be everything you need to know for changing amount of items sold, but i was unsure about what you meant by "Nor do I find where to add the amount of hides required to an item of type Studded Tunic"?
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: NPC Merchants e Leather hides - Help me.

Post by Mutley »

Thank Gundam ...

I'll do the tests here. That must be the same as the Merchant.

I did a Leather Tunic with only 1 hide when it should be at 12 hides.
Do not know if it's in the Tailoring scritp or template of Leather Tunic :/

Thanks

Mutley
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: NPC Merchants e Leather hides - Help me.

Post by Yukiko »

Mutley,

The file you need to edit to change the quantity of material required to craft a tailored item can be found in ...pol\pkg\skills\crafter\tailoring\config\tailoring.cfg

The same applies for other crafting skills. Just look in the appropriate skill folder in the config directory for the cfg file for the particular skill.
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: NPC Merchants e Leather hides - Help me.

Post by Mutley »

Thank Yukiko, I was many hours working on distro, could no longer think straight ... kkkk

Now I have a new problem ... I can not make an item stand still, it seems that the command ". Movable 1" is not running :/

greetings

Mutley
gundamwing84
Grandmaster Poster
Posts: 178
Joined: Tue Sep 08, 2009 1:57 am

Re: NPC Merchants e Leather hides - Help me.

Post by gundamwing84 »

Code: Select all

item.movable := 0; //this sets an item to unmovable
item.movable := 1; //this sets an item to movable
(This can only be used on items, not NPC's, players, etc. I'm not sure if this is correct, but the item must not be in a backpack or container of any kind (correct me if i'm wrong))

Is that what you meant?
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: NPC Merchants e Leather hides - Help me.

Post by Mutley »

Yes, exactly.

But what happens is that the command is not working. I tried to fix an item like a chair, but the command ". Movable 0" did not work: (
The command exists and I can apply it however the item remains mobile.

Thanks
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: NPC Merchants e Leather hides - Help me.

Post by Tomi »

You are testing this with a staff character that probably have enabled the privilege "moveany"

http://docs.polserver.com/pol099/privileges.php
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: NPC Merchants e Leather hides - Help me.

Post by Mutley »

I just want to make a stool fixed to the side of the forge, but I can not fix. :|

I have developer privileges
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: NPC Merchants e Leather hides - Help me.

Post by Harley »

Mutley wrote:I just want to make a stool fixed to the side of the forge, but I can not fix. :|

I have developer privileges
I think, u must create a player and check with his, standart privileges.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: NPC Merchants e Leather hides - Help me.

Post by Yukiko »

Use the command .info on your admin character and click the "Privileges" button. Then make sure the "MoveAny" privilege is not set. If that is set then your character can pick-up items regardless of their "Movable" member setting.
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: NPC Merchants e Leather hides - Help me.

Post by Mutley »

My god how I'm noob ... Searching much files and forgetting to study the gumps kkkk

Thanks again Yukiko.
Harley and I'm sorry, I was so stupid that I could not understand what you were trying to tell me.

Thank you.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: NPC Merchants e Leather hides - Help me.

Post by Yukiko »

Don't feel bad Mutley. There's so much to remember we all get confused sometimes.
Post Reply