SphereCommunity
How to change the Player SkillClass - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: How to change the Player SkillClass (/Thread-How-to-change-the-Player-SkillClass)

Pages: 1 2 3 4 5 6


RE: How to change the Player SkillClass - AmpereJoule - 01-08-2013 09:55 AM

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?


RE: How to change the Player SkillClass - Mordaunt - 01-08-2013 12:03 PM

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.


RE: How to change the Player SkillClass - RanXerox - 01-08-2013 02:05 PM

You are missing some ITEMDEFs: http://code.google.com/p/sphere-community-pack/source/browse/trunk/scripts/items/sphere_item_deco_weapons.scp


RE: How to change the Player SkillClass - AmpereJoule - 01-09-2013 10:18 AM

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'



RE: How to change the Player SkillClass - AmpereJoule - 01-10-2013 07:19 PM

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")


RE: How to change the Player SkillClass - Shaklaban - 01-11-2013 12:09 AM

you can use notepad++ and find in files feature for searching purposes like this.


RE: How to change the Player SkillClass - RanXerox - 01-11-2013 04:03 AM

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



RE: How to change the Player SkillClass - Mordaunt - 01-11-2013 08:14 AM

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


RE: How to change the Player SkillClass - Muke - 01-07-2023 06:42 AM

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