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
Physical Armor is not being counted
Author Message
AmpereJoule
Journeyman
*

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



Post: #1
Physical Armor is not being counted
Hey guys,


I changed the "physical armor" in "sphere_armor_blacksmithing_platemail.scp" at "C:\sphere\scripts\items\armors"
and
every ".scp" at "C:\sphere\scripts\items\armors\colored".

Now when I equip all the parts of "Iron Set" i get 50 of "Physical Armor", but when I fight against an skeleton, for exemple, his damage is the same that if I was not using any armor.

here it is the script "sphere_armor_blacksmithing_platemail.scp" that I said above:
Code:
[ITEMDEF 01410]
DEFNAME=i_platemail_arms
TYPE=T_ARMOR
RESOURCES=18 i_ingot_iron
SKILLMAKE=BLACKSMITHING 12.3
WEIGHT=5
FLIP=1
REQSTR=130
DUPELIST=01417
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Arms
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=10
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 01417]
DUPEITEM=01410

[ITEMDEF 01411]
DEFNAME=i_platemail_leggings
TYPE=T_ARMOR
RESOURCES=20 i_ingot_iron
SKILLMAKE=BLACKSMITHING 13.8
WEIGHT=7
FLIP=1
REQSTR=130
DUPELIST=0141a
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Legs
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=15
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 0141a]
DUPEITEM=01411

[ITEMDEF 01412]
DEFNAME=i_platemail_helm
TYPE=T_ARMOR
RESOURCES=15 i_ingot_iron
SKILLMAKE=BLACKSMITHING 12.6
WEIGHT=5
FLIP=1
REQSTR=130
DUPELIST=01419
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Helm
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=10
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 01419]
DUPEITEM=01412

[ITEMDEF 01413]
DEFNAME=i_platemail_gorget
TYPE=T_ARMOR
RESOURCES=10 i_ingot_iron
SKILLMAKE=BLACKSMITHING 12.4
WEIGHT=2
FLIP=1
REQSTR=130
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Gorget
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=5
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 01414]
DEFNAME=i_platemail_gloves
TYPE=T_ARMOR
RESOURCES=12 i_ingot_iron
SKILLMAKE=BLACKSMITHING 12.9
WEIGHT=2
FLIP=1
REQSTR=130
DUPELIST=01418
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Gauntlets
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=5
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 01418]
DUPEITEM=01414

[ITEMDEF 01415]
DEFNAME=i_platemail_chest
TYPE=T_ARMOR
RESOURCES=25 i_ingot_iron
SKILLMAKE=BLACKSMITHING 14.5
WEIGHT=10.0
FLIP=1
REQSTR=130
DUPELIST=01416
CATEGORY=Provisions - Armor
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Breastplate
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=25
TAG.ResPhysical=10
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

[ITEMDEF 01416]
DUPEITEM=01415

[eof]

Does anyone know what possibly is happening?
01-14-2013 11:18 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: #2
RE: Physical Armor is not being counted
no ARMOR=<x> on any of those pieces... why is that?

[Image: 2nis46r.jpg]
01-14-2013 11:40 AM
Visit this user's website 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: #3
RE: Physical Armor is not being counted
(01-14-2013 11:40 AM)Mordaunt Wrote:  no ARMOR=<x> on any of those pieces... why is that?

Isn't it "TAG.ResPhysical=10" ?
01-14-2013 11:47 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: #4
RE: Physical Armor is not being counted
Hmm I guess it is.. this is where things get confusing between the SCP file and the standard script pack files.

Standard pack doesn't come with the TAG.RedPhysical= or infact any of the elemental resistances defines, but instead uses ARMOR= for basic armor calculations, where as the SCP uses the tags.
They can't BOTH be right.

However.... Are you creating new peices of armor after you have made the changes? They will not be reflected in items which already exist.
If that does not work, you could try looking at putting in an ARMOR= line though that may just serve to confuse things more.

[Image: 2nis46r.jpg]
01-14-2013 11:56 AM
Visit this user's website 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: #5
RE: Physical Armor is not being counted
now I put it like this:
Code:
[ITEMDEF 01410]
DEFNAME=i_platemail_arms
TYPE=T_ARMOR
RESOURCES=18 i_ingot_iron
SKILLMAKE=BLACKSMITHING 12.3
WEIGHT=5
FLIP=1
REQSTR=130
DUPELIST=01417
CATEGORY=Provisions - Armor - Blacksmithing
SUBSECTION=Platemail Armor
DESCRIPTION=Platemail Arms
ARMOR=8 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
TAG.Penalty.Meditation=1
TAG.Penalty.Stealth=10
TAG.ResPhysical=8
TAG.ResFire=1
TAG.ResCold=1
TAG.ResPoison=1
TAG.ResEnergy=1

ON=@Create
COLOR=color_o_iron
HITPOINTS={50 60}

and it still the same, they still doing their max damage on me.

EDIT* I did not create a new one, let me try it!

EDIT2* it didn't work. :/

So, I need to find where the damage calculations are in the .scp files.
(This post was last modified: 01-14-2013 12:02 PM by AmpereJoule.)
01-14-2013 11:57 AM
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: #6
RE: Physical Armor is not being counted
If the skeleton is doing cold damage... your cold resistance looks like it will be pretty small, which might explain why you take so much damage from the skeleton... Take a look at CHARDEF 04e (or whatever) and see how much all the TAG.DamCold= (or energy, fire, poison, etc...) add up to...
01-14-2013 03:01 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: #7
RE: Physical Armor is not being counted
how the **** can an skeleton do elemental damage? He only has a sword!

So, here it is the skeleton script: (I deleted the folder "Monsters" at "C:\sphere\scripts\npcs" and now I am using the "spherechar.scp" from "SCP-NightlyFriday.rar")

Code:
...
[CHARDEF 039]
DEFNAME=c_skeleton_w_sword
//DEFNAME2=BONE_KNIGHT
NAME=Skeleton
SOUND=snd_MONSTER_SKLETN1
ICON=i_pet_SKELETON
ANIM=078c7f
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP
DAM=7,13
ARMOR=9
RESOURCES=8 i_reag_bone
DESIRES=t_bone,i_gold
FOODTYPE=
//SHELTER=r_spooky
BLOODCOLOR=-1
TEVENTS=e_undead
CATEGORY=Monsters
SUBSECTION=Undeads
DESCRIPTION=Skeleton (Sword & Shield)

ON=@Create
    NPC=brain_undead
    STR={56 80}
    DEX={56 75}
    INT={16 40}
    SWORDSMANSHIP={50.0 55.0}
    PARRYING={45.0 55.0}
    MAGICRESISTANCE={45.0 60.0}
    TACTICS={45.0 60.0}
    WRESTLING={45.0 55.0}
    FAME={100 2000}
    KARMA={-999 -5999}
    //ALIGNMENT=EVIL

ON=@NPCRestock
    ITEM=i_shield_wood
    ITEM=i_CUTLASS
    ITEM={ meager_undead_backpack 1 average_undead_backpack 2 }
...

And here it is the old skeleton that I used, from "Undead.scp" at "C:\sphere\scripts\npcs\Monsters"
Code:
...
[CHARDEF 039]

DEFNAME=c_skeleton_w_sword
NAME=skeleton
ICON=i_pet_skeleton
SOUND=snd_monster_skletn1
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP
DAM=5,11
ARMOR=15
DESIRES=r_graveyards,t_coin,t_gold,t_gem,t_potion
AVERSIONS=t_trap,r_civilization
//FOODTYPE=
RESOURCES=2 i_reag_bone
BLOODCOLOR=-1
MOVERATE=100
TAG.Barding.Diff=38.9
TAG.Slayer=SLAYER_UNDEAD
TEVENTS=e_undead
CATEGORY=Monsters
SUBSECTION=Undead
DESCRIPTION=Skeleton (sword and shield)

ON=@Create
   NPC=brain_undead
   FAME=450
   KARMA=-450
   STR={56 80}
   MAXHITS={34 48}
   DEX={56 75}
   MAXSTAM={56 75}
   INT={16 40}
   MAXMANA={16 40}
   MAGICRESISTANCE={45.0 60.0}
   PARRYING={45.0 60.0}
   SWORDSMANSHIP={45.0 55.0}
   TACTICS={45.0 60.0}
   WRESTLING={45.0 55.0}
   MODAR={0 5}
   RESCOLD={25 40}
   RESENERGY={5 15}
   RESFIRE={5 10}
   RESPOISON={25 35}

ON=@NPCRestock
   ITEM=loot_skeleton
   ITEM=i_scimitar
   ITEM=i_scimitar_skeleton,1,R50
   //25 - 50 Gold. Bone Armor
...


PS: I changed these .scp files because the Undead.scp was not Indented(it was like in only one line).


PS 2: I am seeing nothing about elemental damage.
(This post was last modified: 01-15-2013 07:58 AM by AmpereJoule.)
01-15-2013 07:57 AM
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: #8
RE: Physical Armor is not being counted
I seem to recall one of those old script packs had an undead event that weakend undead creatures if they were not in the dark... Lets try a couple things, run these commands on your player and your undead monster and see what sorts of EVENTS and TAGs they have on them:

.xshow events
.xshow tevents
.xtaglist
01-15-2013 09:30 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: #9
RE: Physical Armor is not being counted
(01-15-2013 09:30 AM)RanXerox Wrote:  I seem to recall one of those old script packs had an undead event that weakend undead creatures if they were not in the dark... Lets try a couple things, run these commands on your player and your undead monster and see what sorts of EVENTS and TAGs they have on them:

.xshow events
.xshow tevents
.xtaglist

how do I do this? Is it In Game?

I tried do this while I was fighting against the skeleton, but it didn't show anything useful.
I typed ".xshow events" and clicked on me, it only said that i was guerreiro_class.
to tevents it said something about "_human"
and taglist just said "taglist=00".

I also tried to use it on the skeleton, and again nothing useful and the taglist showed nothing.
01-15-2013 02:20 PM
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: #10
RE: Physical Armor is not being counted
What values do you have in the sphere.ini for EventsPet and EventsPlayer?
01-16-2013 02:00 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)