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
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: #51
RE: How to change the Player SkillClass
thank you very much, but now it is getting these errors:

"

21:54:ERROR:(Giants.scp,135)Undefined symbol 'i_hammer_ettin'
21:54:ERROR:(Lizardmen.scp,144)Undefined symbol 'i_mace_lizardman'
21:54:ERROR:(Lizardmen.scp,94)Undefined symbol 'i_spear_lizardman'
21:54:ERROR:(Lizardmen.scp,144)Undefined symbol 'i_mace_lizardman'
21:54:ERROR:(Orcs.scp,146)Undefined symbol 'i_club_orc'
21:54:ERROR:(Lizardmen.scp,94)Undefined symbol 'i_spear_lizardman'
21:54:ERROR:(Giants.scp,135)Undefined symbol 'i_hammer_ettin'
21:54:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
21:54:ERROR:(Ratmen.scp,140)Undefined symbol 'i_sword_ratman'
21:54:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
21:54:ERROR:(Ratmen.scp,140)Undefined symbol 'i_sword_ratman'
21:54:ERROR:(Lizardmen.scp,144)Undefined symbol 'i_mace_lizardman'
"

Should I change those scripts to the nightly version?
(This post was last modified: 01-08-2013 09:56 AM by AmpereJoule.)
01-08-2013 09:55 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #52
RE: How to change the Player SkillClass
That would not be related to the changes you made to either my script or to the names of the spawn groups.
I'd suggest checking those lines in said scripts to see what's there.

[Image: 2nis46r.jpg]
01-08-2013 12:03 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #53
RE: How to change the Player SkillClass
01-08-2013 02:05 PM
Find all posts by this user Like Post Quote this message in a reply
AmpereJoule
Journeyman
*

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



Post: #54
RE: How to change the Player SkillClass
my "Ratman.scp" is like ****, it is not indented!

But what RanXerox said worked, but now I am getting these errors:

"
Code:
22:14:ERROR:(spherechar_anim.scp,675)Undefined symbol 'i_pet_wolf_gray'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(spherechar_evil.scp,1253)Undefined symbol 'loot_elem_snow'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:14:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:15:ERROR:(spherechar_evil.scp,1253)Undefined symbol 'loot_elem_snow'
22:15:ERROR:(UntestedMonsters.scp,1614)Undefined symbol 'random_clothing'
22:15:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:15:ERROR:(UntestedMonsters.scp,1614)Undefined symbol 'random_clothing'
22:15:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:3fc:'AmpereJoule' commands 'go britain graveyard'=1
22:15:3fc:'AmpereJoule' commands 'tele'=1
22:15:ERROR:(UntestedMonsters.scp,1614)Undefined symbol 'random_clothing'
22:15:ERROR:(spherechar_evil.scp,1253)Undefined symbol 'loot_elem_snow'
22:15:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:15:ERROR:(UntestedMonsters.scp,1614)Undefined symbol 'random_clothing'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:15:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(spherechar_evil.scp,1253)Undefined symbol 'loot_elem_snow'
22:16:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:16:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
22:16:ERROR:(spherechar_evil.scp,1253)Undefined symbol 'loot_elem_snow'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(Ratmen.scp,140)Undefined symbol 'random_weapon_sword_normal'
22:16:ERROR:(spherechar_evil.scp,310)Undefined symbol 'loot_elem_ice'
(This post was last modified: 01-09-2013 10:18 AM by AmpereJoule.)
01-09-2013 10:18 AM
Find all posts by this user Like Post Quote this message in a reply
AmpereJoule
Journeyman
*

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



Post: #55
RE: How to change the Player SkillClass
Hey guys, I think I made it! And it is working!

Thank you all.


PS: where can I change color_o_gold to other value?
PS 2: How can I make all the Vendors "[invul]"?

C:\sphere\scripts\npcs\Civilized\Tradesman, "human_chemist.scp":
Code:
[CHARDEF c_h_alchemist]
DEFNAME=C_H_ALCHEMIST
NAME=#NAMES_HUMANMALE the Alchemist
ID=C_MAN
DESIRES=i_gold,e_notoriety,t_magic
AVERSIONS=t_TRAP,t_eerie_stuff

TSPEECH=spk_human_prime
TSPEECH=jobalchemist
TSPEECH=spk_shopkeep
TSPEECH=spk_needs
TSPEECH=spk_rehello
TSPEECH=spk_human_default
TEVENTS=e_Human_HearUnk
TEVENTS=e_Human_ConvInit
TEVENTS=e_Human_Greet
TEVENTS=e_Human_Space
TEVENTS=e_Human_Needs
TEVENTS=e_Human_Refuse
TEVENTS=e_Human_Environ

CATEGORY=Civilized
SUBSECTION=Tradesmen
DESCRIPTION=Alchemist (male)

ON=@Create
    NPC=brain_vendor
    COLOR=colors_skin

    STR={36 50}
    DEX={36 50}
    INT={51 65}

    ALCHEMY={55.0 78.0}
    TasteID={55.0 78.0}
    WRESTLING={15.0 38.0}
    MAGICRESISTANCE={25.0 48.0}
    TACTICS={15.0 38.0}
    POISONING={35.0 55.0}

    ITEMNEWBIE=random_male_hair
    COLOR=colors_hair
    ITEMNEWBIE=random_facial_hair
    COLOR=match_hair

ON=@NPCRestock
    ITEM=RANDOM_LIGHT
    ITEM=i_shirt_plain
    COLOR=colors_all
    ITEM=random_pants
    COLOR=colors_all
    ITEM=i_robe
    COLOR=colors_red
    ITEM=random_shoes
    COLOR=colors_neutral
    ITEM=random_coin_purse
    SELL=VENDOR_S_ALCHEMIST
    BUY=VENDOR_B_ALCHEMIST

Where can I change the stock of the vendors?
(where can I change the "VENDOR_S_ALCHEMIST"
and "VENDOR_B_ALCHEMIST")
(This post was last modified: 01-10-2013 07:27 PM by AmpereJoule.)
01-10-2013 07:19 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #56
RE: How to change the Player SkillClass
you can use notepad++ and find in files feature for searching purposes like this.
01-11-2013 12:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #57
RE: How to change the Player SkillClass
As Shak pointed out, you can use notepad++ to search (or you can use Windows Explorer, or the findstr command, or many other things...) In any case, if you search the files you will find that...

Colors are typically defined in sphere_defs.scp file.

Vendor buy and sell lists are setup using SELL= and BUY= statements in the @NPCRestock trigger... those statements can be individual ITEMDEF entries, or they can leverage TEMPLATE lists. The default script pack puts vendor templates in sphere_template_vend.scp file.

As far as making vendors invul... you can set FLAGS |= statf_invul in the @Create trigger and respawn them all... or if you don't want to respawn them all, you can use the @EnvironChange trigger in an EVENTS trigger collection... for example, I added TEVENTS=e_npc_vendor to all my vendor CHARDEFs, and defined it like this:

Code:
[EVENTS e_npc_vendor]
ON=@EnvironChange
   //Use this trigger to make changes to vendors without needing to respawn them all
   TAG.NAME.HUE=1191
   FLAGS |= statf_invul
ON=@ClientToolTip
   //Show the vendor TITLE when the cursor hovers over them
   SRC.ADDCLILOC 1070722,<TITLE>
ON=@Click
   //Show the vendor's TITLE when they initially come into view
   MESSAGELOC 1191,3,1049644,<TITLE>
ON=@Hunger
   //Prevent vendors from requiring food
   RETURN 1
01-11-2013 04:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #58
RE: How to change the Player SkillClass
Ok.. this is turning into a never ending thread... and so I am splitting it.
Please make new threads for each request otherwise people will assume that the discussion pertains to the same issue and may ignore it thinking they cannot help or assume that help has been given

[Image: 2nis46r.jpg]
01-11-2013 08:14 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Muke
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2017
Reputation: 0



Post: #59
RE: How to change the Player SkillClass
I would need advice on how exactly the code should look. I want to make 6 classes. Can it also be done when creating a character? (The selection? )


[SKILLCLASS 1]
// undeclared class.
// max skills for players of this skill class.
DEFNAME=Class_Undeclared
NAME=War
//EVENTS=e_ClassUndeclared
STATSUM=300
SKILLSUM=10000.0
STR=100
INT=100
DEX=100
Alchemy=100.0
Anatomy=100.0
AnimalLore=100.0
ItemId=100.0
ArmsLore=100.0
Parrying=100.0
Begging=100.0
Blacksmithing=100.0
Bowcraft=100.0
Peacemaking=100.0
Camping=100.0
Carpentry=100.0
Cartography=100.0
Cooking=100.0
DetectingHidden=100.0
Enticement=100.0
EvaluatingIntel=100.0
Healing=100.0
Fishing=100.0
Forensics=100.0
Herding=100.0
Hiding=100.0
Provocation=100.0
Inscription=100.0
LockPicking=100.0
Magery=100.0
MagicResistance=100.0
Tactics=100.0
Snooping=100.0
Musicianship=100.0
Poisoning=100.0
Archery=100.0
SpiritSpeak=100.0
Stealing=100.0
Tailoring=100.0
Taming=100.0
TasteId=100.0
Tinkering=100.0
Tracking=100.0
Veterinary=100.0
Swordsmanship=100.0
Macefighting=100.0
Fencing=100.0
Wrestling=100.0
Lumberjacking=100.0
Mining=100.0
Meditation=100.0
Stealth=100.0
RemoveTrap=100.0
Necromancy=100.0
Focus=100.0
Chivalry=100.0
Bushido=100.0
Ninjitsu=100.0
Spellweaving=100.0
Mysticism=100.0
Imbuing=100.0
Throwing=100.0

ON=@Login
IF !(<isempty <ACCOUNT.TAG.GMPage.Response>>)
SDIALOG d_gmpage_response
ENDIF

ON=@ItemEquip
IF (<ACT.TYPE> == t_armor) && !(<ACT.MageArmor>)
TAG0.MeditPenalty ++
f_meditation_setup
ENDIF

ON=@ItemUnequip
IF (<ACT.TYPE> == t_armor) && !(<ACT.MageArmor>)
TAG0.MeditPenalty --
f_meditation_setup
ENDIF



Thanks
01-07-2023 06:42 AM
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)