NPC Merchants e Leather hides - Help me.
Moderator: POL Developer
NPC Merchants e Leather hides - Help me.
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!!!
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!!!
-
- Grandmaster Poster
- Posts: 178
- Joined: Tue Sep 08, 2009 1:57 am
Re: NPC Merchants e Leather hides - Help me.
in the pkg\systems\merchants\config\npcdesc.cfg file, there will be something like this
then go to Distro\pkg\systems\merchants\config\buySell.cfg
Scroll down about 1/3 of the way through the cfg file, and it starts showing things like this:
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"?
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
}
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
}
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.
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
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
-
- 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.
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.
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.
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
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
-
- Grandmaster Poster
- Posts: 178
- Joined: Tue Sep 08, 2009 1:57 am
Re: NPC Merchants e Leather hides - Help me.
Code: Select all
item.movable := 0; //this sets an item to unmovable
item.movable := 1; //this sets an item to movable
Is that what you meant?
Re: NPC Merchants e Leather hides - Help me.
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
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.
You are testing this with a staff character that probably have enabled the privilege "moveany"
http://docs.polserver.com/pol099/privileges.php
http://docs.polserver.com/pol099/privileges.php
Re: NPC Merchants e Leather hides - Help me.
I just want to make a stool fixed to the side of the forge, but I can not fix.
I have developer privileges
I have developer privileges
Re: NPC Merchants e Leather hides - Help me.
I think, u must create a player and check with his, standart privileges.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
-
- 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.
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.
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.
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.
-
- 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.
Don't feel bad Mutley. There's so much to remember we all get confused sometimes.