The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
skillgain
Author Message
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #1
skillgain
Hi all

Hoping someone can point me in the right direction for this... :/

I've overwritten the begging skill, with farming skill, including editing the MULs and .IDX files.

Ive added it under class_undeclared also.

In game, if I type .set farming 500 or .set 6 500 it works no problems.

These are extracts from the scripts....

[SKILL 6]
DEFNAME=SKILL_Farming
KEY=Farming
TITLE=Farmer
PROMPT_MSG=
DELAY=
ADV_RATE=10.0,150.0,600.0
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0

[SKILLCLASS 0]
DEFNAME=Class_undeclared
NAME=undeclared
STATSUM=350
SKILLSUM=10000.0
STR=175
INT=175
DEX=175
Alchemy=100.0
Anatomy=100.0
AnimalLore=100.0
ItemId=100.0
ArmsLore=100.0
Parrying=100.0
Farming=100.0
...etc

When in game, i've set my farming to 5.0 and using this function, I always get the "Yep" debug message but the farming skill never increases?

[FUNCTION f_farm_setrates]
IF (<SRC.FARMING> >= 0) && (<SRC.FARMING> < 100) // 0 - 9.9
SRC.SYSMESSAGE @,,1 Yep
SRC.SKILLGAIN Farming 1 // HAVE ALSO TRIED SRC.SKILLGAIN 6 1
RETURN 1
ENDIF


...Just wondering what i am doing wrong?

Thanks for your help
09-13-2014 07:38 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #2
RE: skillgain
have you checked under the skill some triggers like @start
ON=@Start
serv.log Yep

then you might check some other things

ON=@Success
serv.log <ACTDIFF>

ON=@Gain
serv.log <ARGN2>

then trying using the skill and see what you get.

and under what event is your function executed?
(This post was last modified: 09-14-2014 04:12 AM by kn4tseb.)
09-14-2014 02:31 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #3
RE: skillgain
Cheers kn4tseb - i did away with the .skillgain in the end as i couldnt get it to work.
although i now understand that simply doing src.skillgain alchemy 1 would not work without scripting additional under @gain on the alchemy skill Smile
09-14-2014 08:22 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #4
RE: skillgain
excelent, would you share to us or me what you coded under the @gain trigger? ;D
(This post was last modified: 09-14-2014 12:45 PM by kn4tseb.)
09-14-2014 12:45 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: skillgain
try using SKILLUSEQUICK or SKILLGAIN 6 1, maybe it will work fine
(This post was last modified: 09-14-2014 03:33 PM by Coruja.)
09-14-2014 03:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)