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-nmm6 (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-nmm6 (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-nmm6 (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
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: @SkillGain
I don't think it's safe to do that Confused

A faster and safer alternative is this, create a new file and place the following code

Code:
[DEFNAME custom_skill_flags]
skillReward  01
Open spheretables.scp and add the new file before sphere_skills.scp.
Then open sphere_skills.scp and for each skill that you want a reward add the following line in the skill block

Code:
GROUP= skillReward

Go back in your trigger SkillChange and change it in this way:

Code:
local.name = <serv.skill.<argn1>.key>
if (<serv.skill.<argn1>.group>&<def0.skillReward>) && ( <argn2> == 1000 )
     if !<eval <src.tag0.reward_<local.name>>>
            src.tag0.reward_<local.name> = 1
            src.tag0.reward_count = <eval ((<src.tag0.reward_count>) + 1)>  
            src.dialog d_reward_gump
    endif
endif

http://wiki.spherecommunity.net/index.ph...Operations
(This post was last modified: 11-10-2017 05:06 AM by darksun84.)
11-10-2017 04:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
@SkillGain - Somersby - 11-06-2017, 11:15 PM
RE: @SkillGain - darksun84 - 11-07-2017, 12:34 AM
RE: @SkillGain - Somersby - 11-07-2017, 02:17 AM
RE: @SkillGain - Somersby - 11-09-2017, 10:52 AM
RE: @SkillGain - darksun84 - 11-09-2017, 08:38 PM
RE: @SkillGain - Somersby - 11-10-2017, 04:37 AM
RE: @SkillGain - darksun84 - 11-10-2017 04:59 AM
RE: @SkillGain - Somersby - 11-10-2017, 05:35 AM
RE: @SkillGain - darksun84 - 11-10-2017, 05:38 AM
RE: @SkillGain - Somersby - 11-10-2017, 05:41 AM

Forum Jump:


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