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
How to change the Player SkillClass
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #23
RE: How to change the Player SkillClass
(12-18-2012 11:49 AM)RanXerox Wrote:  Here is an example from the SCP: http://code.google.com/p/sphere-communit..._armor.scp

Thank you, but the problem was another thing.
It was a bug: When I changed the "TAG.RESPhysical" My character had the armor equipped on him. And when I restarted Sphere and logged in, it was with the same armor before I change it. And it was reducing the armor value when I unequip it, very strange. So, I can't change anything at the ".scp" if the item is on the game. Crazy.


And now I got a really boring thing. I realized that my "sphere_skillmenu.scp" (C:\sphere\scripts) is:
Code:
...
[SKILLMENU sm_dull_copper_armor]
Dull Copper Armor & Shields
...
ON=i_DULL_COPPER_PLATEMAIL_LEGGINGS <name> (<resmake>)
MAKEITEM=i_DULL_COPPER_PLATEMAIL_LEGGINGS

ON=i_DULL_COPPER_FEMALE_PLATEMAIL <name> (<resmake>)
MAKEITEM=i_DULL_COPPER_FEMALE_PLATEMAIL

ON=i_DULL_COPPER_PLATEMAIL <name> (<resmake>)
MAKEITEM=i_DULL_COPPER_PLATEMAIL
...

and my "sphere_armor_dullcopper.scp" (C:\sphere\scripts\items\armors\colored) is:
Code:
[ITEMDEF i_PLATEMAIL_CHEST_DULL_COPPER]
NAME=Dull Copper Platemail
ID=i_platemail_chest
ARMOR=0 // 25
REQSTR=171
WEIGHT=10
CATEGORY=Provisions - Armor - Colored
SUBSECTION=Dull Copper
DESCRIPTION=Platemail
RESOURCES=25 i_ingot_dull_copper
SKILLMAKE=BLACKSMITHING 25.6
TAG.Penalty.Stealth = 25
TAG.ResPhysical=11
TAG.ResFire=4
TAG.ResCold=3
TAG.ResPoison=4
TAG.ResEnergy=3
...

the ITEMDEF does not match, and then the Sphere is getting
"Bad menu" error.

So, i was thinking, May I change all the ".scp" at "C:\sphere\scripts\items\armors\colored" to match with "sphere_skillmenu.scp" or Is it a known bug that you can tell me a simple thing to do?
12-19-2012 12:06 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to change the Player SkillClass - AmpereJoule - 12-19-2012 12:06 AM

Forum Jump:


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