Page 1 of 1

NPC Merchants e Leather hides - Help me.

Posted: Mon Oct 21, 2013 10:49 am
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!!!

Re: NPC Merchants e Leather hides - Help me.

Posted: Mon Oct 21, 2013 12:45 pm
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"?

Re: NPC Merchants e Leather hides - Help me.

Posted: Mon Oct 21, 2013 5:27 pm
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

Re: NPC Merchants e Leather hides - Help me.

Posted: Mon Oct 21, 2013 10:01 pm
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.

Re: NPC Merchants e Leather hides - Help me.

Posted: Tue Oct 22, 2013 4:06 am
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

Re: NPC Merchants e Leather hides - Help me.

Posted: Tue Oct 22, 2013 12:49 pm
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?

Re: NPC Merchants e Leather hides - Help me.

Posted: Thu Oct 24, 2013 9:52 am
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

Re: NPC Merchants e Leather hides - Help me.

Posted: Thu Oct 24, 2013 10:56 am
by Tomi
You are testing this with a staff character that probably have enabled the privilege "moveany"

http://docs.polserver.com/pol099/privileges.php

Re: NPC Merchants e Leather hides - Help me.

Posted: Sun Oct 27, 2013 1:16 am
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

Re: NPC Merchants e Leather hides - Help me.

Posted: Sun Oct 27, 2013 2:13 am
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.

Re: NPC Merchants e Leather hides - Help me.

Posted: Wed Oct 30, 2013 5:02 am
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.

Re: NPC Merchants e Leather hides - Help me.

Posted: Wed Oct 30, 2013 2:25 pm
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.

Re: NPC Merchants e Leather hides - Help me.

Posted: Thu Oct 31, 2013 4:38 am
by Yukiko
Don't feel bad Mutley. There's so much to remember we all get confused sometimes.