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
Insert the Combat scp of s.c.pack in own server.
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
Insert the Combat scp of s.c.pack in own server.
Hi! first, my english sucks so... try to understand please ^_ ^

I want to use the community files, but... my saveworld get's too many errors and i can't [Because items and NPC'S have's others def's and names]. Because that, i want to put the combat system of the community pack in my own server of 56b last nightly...

How can I do this?

I got the full script: sphere_combat_functions.scp
and the full: The sphere_combat_events.scp
and some little fragment of Sphere_Settings.scp [For options combat]

Code:
[DEFNAME SPHERE_COMMUNITY_PACK_SETTINGS]

///////////////////////////////////////////////////////////////
//////// Combat System Settings
///////////////////////////////////////////////////////////////
// Formulas or main system used in here. It will vary from expansion to expansion.
// 0 = Default: Use Sphere's default system.
// 1 = Custom: Use different settings from different expansions
// 2 = Ultima Online: Renaissance
// 3 = Ultima Online: Age of Shadows
scp.Combat_FormulasUsed=3

// VELOCIDAD DE GOLPE
// 0 = Default. 1 = UO:R. 2 = AOS.
scp.Combat_HitSpeed=2

// CHANCE DE GOLPE
// 0 = Default. 1 = UO:R. 2 = AOS.
scp.Combat_HitChance=0

// CHANCE DE BLOQUEAR EL GOLPE
// 0 = Default. 1 = UO:R. 2 = AOS.
scp.Combat_BlockChance=2

// DAÑO BASE
// 0 = Default. 1 = UO:R. 2 = AOS.
scp.Combat_BaseDamage=2

// BONUS DAÑO
// 0 = Default. 1 = UO:R. 2 = AOS.
scp.Combat_DamageBonus=2

// SPELL DAMAGE BONUS DE AOS?
// 0 = No. 1 = AOS.
scp.Combat_SpellBonus=1

// Use or not the Age of Shadows Resistances.
// Note that this will be used only if scp.Combat_FormulasUsed is 1
// Automatically used if it is 3.
scp.Combat_UseResistances=3

// The cap for resistances used in the elemental fighting formula.
// From 0 to 100. Default = 70 (EA-Like).
scp.Combat_ResistancesCap=70

// If set to 1, combat system will use the body's damage when polymorph
scp.Combat_PolymorphDamage=1

[eof]

I put the flags in the sphere.ini like this:
Code:
EventsPlayer = e_PlayerCombatEvent
and changes the spheretables.scp to add the scripts [the folder of the new scripts]

and when I will to hit in game with a weapon, i get this error:

Code:
04:12:ERROR:(sphere_combat_functions.scp,98)Can't resolve <max -32, 13>
04:12:ERROR:(sphere_combat_functions.scp,120)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,123)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,38)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,43)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,128)Can't resolve <max 101,2>
04:12:ERROR:(sphere_combat_functions.scp,98)Can't resolve <max -32, 13>
04:12:ERROR:(sphere_combat_functions.scp,120)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,123)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,38)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,43)Undefined symbol ''
04:12:ERROR:(sphere_combat_functions.scp,128)Can't resolve <max 101,2>


Anyone can help me to add the full custom combat and get work in my shard? and obviusly, I want the settings to test the best option...
I don't want to do all sphereworld again and i don't know how to build a new combat scp... I m noob in this and I want a functional server for private use, to pvp ^_^

Thanks for reading!

P.S. [And, if anyone can help me, how can i add the special moves too of the community pack and get work in my shard? i can't -.- so nooooooooooob]

[Image: 2hy9q0y.png]
(This post was last modified: 07-07-2012 05:20 PM by Lazarus.)
07-07-2012 05:17 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Insert the Combat scp of s.c.pack in own server.
Copy this file too: sphere_general_functions.scp
And this part
Code:
///////////////////////////////////////////////////////////////
//////// Item Magic Properties Settings
///////////////////////////////////////////////////////////////
UNTIL
///////////////////////////////////////////////////////////////
//////// Jail System Settings
///////////////////////////////////////////////////////////////
of sphere_settings.scp

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
(This post was last modified: 07-08-2012 01:40 AM by Extreme.)
07-08-2012 01:40 AM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #3
RE: Insert the Combat scp of s.c.pack in own server.
(07-08-2012 01:40 AM)Extreme Wrote:  Copy this file too: sphere_general_functions.scp
And this part
Code:
///////////////////////////////////////////////////////////////
//////// Item Magic Properties Settings
///////////////////////////////////////////////////////////////
UNTIL
///////////////////////////////////////////////////////////////
//////// Jail System Settings
///////////////////////////////////////////////////////////////
of sphere_settings.scp

Thanks for the quickly reply ^_^

I have a problem now, I had added the sphere_general_Functions
and the UNTIL had added in the last of the settings

Now i can hit ^_^ but when i hit i get some 4 errors

Code:
17:43:ERROR:(sphere_combat_functions.scp,120)Undefined symbol ''
17:43:ERROR:(sphere_combat_functions.scp,123)Undefined symbol ''
17:43:ERROR:(sphere_combat_functions.scp,38)Undefined symbol ''
17:43:ERROR:(sphere_combat_functions.scp,43)Undefined symbol ''

The respective lines in the txt:

Code:
if <def.scp.ItemProp_HitChanceIncrease> == 1
if <def.scp.ItemProp_DefenseChanceIncrease> == 1
if <def.scp.ItemProp_MageWeapon> == 1
if <def.scp.ItemProp_BestWeaponSkill> == 1

What is happend ^_^? mbe i need to add e_PlayerPropertiesEvent in sphere.ini?

Again: Thanks! rly! Smile


Oh and the special moves? i can get them now?

[Image: 2hy9q0y.png]
(This post was last modified: 07-08-2012 06:55 AM by Lazarus.)
07-08-2012 06:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Insert the Combat scp of s.c.pack in own server.
Check in your sphere_settings.scp if you copied the part where you activate the properties.
Look for scp.ItemProp_HitChanceIncrease, scp.ItemProp_DefenseChanceIncrease.. etc...

Special Moves isn`t working very good, you should wait we fix it or fix yourself.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-08-2012 07:16 AM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #5
RE: Insert the Combat scp of s.c.pack in own server.
(07-08-2012 07:16 AM)Extreme Wrote:  Check in your sphere_settings.scp if you copied the part where you activate the properties.
Look for scp.ItemProp_HitChanceIncrease, scp.ItemProp_DefenseChanceIncrease.. etc...

Special Moves isn`t working very good, you should wait we fix it or fix yourself.

This? Just copy in the settings before the "UNTIL" and works?
I rly don't want the magic propieties of the weapons ^_^

Ok, i don't add the special moves ^_^ no problem.

1 last question: RESISTANCES works in magic too? [I never play a OSI shard] mbe i'll use the resistances to apply new magic attributes like INMUNE TO FIRE [100% fire res] and others thinks


REALLY, REALLY THANKS ^_^ you made my day man. Thank you! and the team for the forum Smile

Code:
///////////////////////////////////////////////////////////////
//////// Item Magic Properties Settings
///////////////////////////////////////////////////////////////
// Enable or disable any of the Item Properties listed below
// Please, note that the name are very descriptive, if not, drop a message on forums.
// <boolean> (1 if yes, 0 if not).
scp.ItemProp_BestWeaponSkill=0
scp.ItemProp_DamageIncrease=0
scp.ItemProp_DefenseChanceIncrease=0
scp.ItemProp_DexterityBonus=0
scp.ItemProp_EnhancePotion=0 // NOT DONE
scp.ItemProp_FasterCastRecovery=0
scp.ItemProp_FasterCasting=0
scp.ItemProp_HitChanceIncrease=0
scp.ItemProp_HitColdArea=0 // NOT DONE
scp.ItemProp_HitDispel=0
scp.ItemProp_HitEnergyArea=0 // NOT DONE
scp.ItemProp_HitFireArea=0 // NOT DONE
scp.ItemProp_HitFireball=0
scp.ItemProp_HitHarm=0
scp.ItemProp_HitLifeLeech=0
scp.ItemProp_HitLightning=0
scp.ItemProp_HitLowerAttack=0
scp.ItemProp_HitLowerDefense=0
scp.ItemProp_HitMagicArrow=0
scp.ItemProp_HitManaLeech=0
scp.ItemProp_HitPhysicalArea=0 // NOT DONE
scp.ItemProp_HitPoisonArea=0 // NOT DONE
scp.ItemProp_HitStaminaLeech=0
scp.ItemProp_HitPointIncrease=0
scp.ItemProp_IntelligenceBonus=0
scp.ItemProp_LowerManaCost=0
scp.ItemProp_LowerReagentCost=0
scp.ItemProp_Luck=0
scp.ItemProp_MageArmor=0
scp.ItemProp_MageWeapon=0
scp.ItemProp_ManaIncrease=0
scp.ItemProp_ManaRegeneration=0
scp.ItemProp_NightSight=0
scp.ItemProp_ReflectPhysicalDamage=0
scp.ItemProp_StaminaRegeneration=0
scp.ItemProp_HitPointRegeneration=0
scp.ItemProp_SelfRepair=0
scp.ItemProp_SkillBonus=0
scp.ItemProp_Slayer=0
scp.ItemProp_SpellChanneling=0
scp.ItemProp_SpellDamageIncrease=0
scp.ItemProp_StaminaIncrease=0
scp.ItemProp_StrengthBonus=0
scp.ItemProp_SwingSpeedIncrease=0
scp.ItemProp_CraftingBonus=0 // NOT DONE
scp.ItemProp_CraftingExceptionalBonus=0 // NOT DONE
scp.ItemProp_UsesRemaining=0

[Image: 2hy9q0y.png]
07-08-2012 07:26 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #6
RE: Insert the Combat scp of s.c.pack in own server.
A new question: The system of resist spell it's implemented?

[Image: 2hy9q0y.png]
07-08-2012 11:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #7
RE: Insert the Combat scp of s.c.pack in own server.
Yes, resistances affects in spell damages, but I really don't know if its already done.
Resisting Spells is working, just need know if you copied the right script.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-08-2012 12:13 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #8
RE: Insert the Combat scp of s.c.pack in own server.
(07-08-2012 12:13 PM)Extreme Wrote:  Yes, resistances affects in spell damages, but I really don't know if its already done.
Resisting Spells is working, just need know if you copied the right script.

I copy just the last script that we say...
I need to copy too sphere_skill_magicresistance?

I have a new question, because i want to use the UO:R bonus mode but i need to bonus DAMAGE LUMBERJACKING in ALL weapon
Because that, i've added the weapon types in the right line.
Just in case i left here the original script part:

Code:
if <def.scp.Combat_UOR_LumberBonus>
   if <weapon.type> == t_weapon_axe
      local.bonus.lumber = <eval <lumberjacking> / 50>
      if <lumberjacking> >= 100.0
         local.bonus.lumber += 10
      endif
   else
      local.bonus.lumber = 0
   endif
endif

But when i do that, the bonus doesn't works.
I had do this to repair that:

Code:
local.bonus.lumber = <eval <lumberjacking> / 10>

return <eval <local.bonus.tactics> + <local.bonus.anatomy> + <local.bonus.str> + <local.bonus.lumber>>

But, with this, the bonus incorpore to ALL damage, like WRESTLING too...
I don't want the Lumberjacking bonus in Wrestling because the Polymorph in Drake, got too damn damage ^_^

how is the IF of weapons to select this bonus ONLY in the right weapons type?
I just try like
if <weapon.type> == (t_weapon_axe) || (t_weapon_fence) ... etc...

but doesn't work!



THANKS rly, thanks so much Smile

[Image: 2hy9q0y.png]
07-08-2012 01:14 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: Insert the Combat scp of s.c.pack in own server.
No no, the Lumberjacking bonus will apply only if you use an Axe.
If you are disarmed, it won't apply bonus.

if <def.scp.Combat_UOR_LumberBonus>
if <weapon.type> == t_weapon_axe
local.bonus.lumber = <eval <lumberjacking> / 50>
if <lumberjacking> >= 100.0
local.bonus.lumber += 10
endif

else
local.bonus.lumber = 0
endif
endif

You can see it in highlighted code.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-08-2012 03:33 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #10
RE: Insert the Combat scp of s.c.pack in own server.
(07-08-2012 03:33 PM)Extreme Wrote:  No no, the Lumberjacking bonus will apply only if you use an Axe.
If you are disarmed, it won't apply bonus.

if <def.scp.Combat_UOR_LumberBonus>
if <weapon.type> == t_weapon_axe
local.bonus.lumber = <eval <lumberjacking> / 50>
if <lumberjacking> >= 100.0
local.bonus.lumber += 10
endif

else
local.bonus.lumber = 0
endif
endif

You can see it in highlighted code.

Yep yep! I know! but I want to use this bonus in other type weapons too.

how can i add the weapons there? If i add

if (<weapon.type> == t_weapon_axe || t_weapon_Fence || t_weapon sword)
doesn't works =(

How can i?

EDIT: I fix it i turn on this:

Code:
// If set to 1, combat system will use the body's damage when polymorph
scp.Combat_PolymorphDamage=0

and im using my changes ^_^
now i get a problem

with hit chance on default (ALWAYS HIT)
with hit chance UO:R (something hits with 100 combat skill too less)
with hit chance AOS (something hits with 100 combat skill too less...)

:'( but... i'll try to fix on my own

Thanks ^_ ^

[Image: 2hy9q0y.png]
(This post was last modified: 07-08-2012 07:29 PM by Lazarus.)
07-08-2012 05:46 PM
Visit this user's website 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)