How to add stat gaining to Farmin System

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Ahriman
New User
Posts: 4
Joined: Sat Apr 14, 2012 10:58 am

How to add stat gaining to Farmin System

Post by Ahriman »

Hello I am using Zulu Hotel 099, and converted the WoD 099 Farming Script over to it. Now, I am wondering.. how can I made it so it gains stats while you harvest? Str/Dex.

Thanks in advance.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to add stat gaining to Farmin System

Post by Yukiko »

The easiest way to do that is to have a skill check for harvesting. I can't remember if WoD farming has that or not. It seems that most shards use the skill lumberjacking as the "harvesting" skill. That will build STR.
Ahriman
New User
Posts: 4
Joined: Sat Apr 14, 2012 10:58 am

Re: How to add stat gaining to Farmin System

Post by Ahriman »

Thanks Yukiko, it's me Khelendros/Azden from Hope Lives haha.

Anyways I believe I made it have the skill check already, but it's not raising str. then again my gains are SUPER SLOW to begin with for stats :/

Know where to change the gain rate?
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to add stat gaining to Farmin System

Post by Yukiko »

Well, my version of the SkillCheck function is based on Austin's from the POL 0.96 scripts. I'm not sure how it's set-up in your ZH and WoD farming scripts.

Here's the format for my version:

Code: Select all

SkillCheck(who, attribid, difficulty, points)
who is the character being checked

attribid is the string value for the skill being tested against, ie. "lumberjacking" or as I have it defined as a constant, ATTRIBUTEID_LUMBERJACKING

difficulty is the difficulty level of the skill being tested

points is the amount of points to award upon success


The quickest way to make skill gains faster is to increase the amount of points you award the player.
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

Re: How to add stat gaining to Farmin System

Post by xeon »

Just to add an hint, on our shard we developed a full "Farming" skill to plant. I think it's worth the assle, as handling plants seeds, plants grow and harvesting in Lumberjacking is way too confusing and out of scope for that skill.

To return to the original question, as others have posted, you can use the CheckSkill syshook, and add the desired str/dex points on a successfull Checkskill().
Post Reply