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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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
Post Reply 


Messages In This Thread
skillgain - richm - 09-13-2014 07:38 PM
RE: skillgain - kn4tseb - 09-14-2014, 02:31 AM
RE: skillgain - richm - 09-14-2014, 08:22 AM
RE: skillgain - kn4tseb - 09-14-2014, 12:45 PM
RE: skillgain - Coruja - 09-14-2014, 03:32 PM

Forum Jump:


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