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
Need help for a different REQSTR script
Author Message
Onirim
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0

UO: Rebellion

Post: #1
Need help for a different REQSTR script
Hello everybody Smile

In our Shard, we want all the characters can equip all weapons and armor (because they can), but the REQSTR will be used to slow the character.

- For the Weapons, we want to slow down the attack speed if the REQSTR (or any new tag for the weapon) is < SRC.STR
- For the Armor, we want to slow down the attack speed a little AND augment the casting time.

Have you any clues of how to proceed ?
I don't want begin an impossible script Smile

Thanks !
01-06-2013 10:42 AM
Visit this user's website 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: Need help for a different REQSTR script
Well... You'll have to drop all the REQSTR since those are hardcoded to what the character needs in order to equip it and use tags instead.

[Image: 2nis46r.jpg]
01-06-2013 11:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Onirim
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0

UO: Rebellion

Post: #3
RE: Need help for a different REQSTR script
OKay but what kind of script I can use for slow down the speed of attack ?
And if I make a script who work on @equip and @unequip, it was a problem if the character die ? or if the piece or armor is destroyed ?

I hope I can make this script on an event script, and not on EVERY piece of armor and weapon Big Grin (except for the TAG, indeed)
(This post was last modified: 01-06-2013 11:41 AM by Onirim.)
01-06-2013 11:28 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: #4
RE: Need help for a different REQSTR script
You need an event on all players and monsters that recomputes the speed:

Code:
ON=@HitTry
//
// Default is the attacker.
// SRC     is the person you are trying to hit.
// ARGO    is the item being used to attack with.
// ACTDIFF is the hit difficulty and can be used to force a hit or miss.
// ARGN1   is the delay (tenths of seconds) before the hit will actually take
//         place. See SPEED settings.
//
// Figure out what weapon they are using and what armour they have equipped and apply the speed penalty.
01-07-2013 03:38 AM
Find all posts by this user Like Post Quote this message in a reply
Onirim
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0

UO: Rebellion

Post: #5
RE: Need help for a different REQSTR script
It's okay, I've handle it differently Smile

When a character equip or unequip, I compute all the TAG.MINISTR to create a TAG.MALUS on the character. +1 for each equipment who need too much STR.

And when the character Hit or Cast a Spell, it fait on 5% per point of MALUS.

So with 20 piece of equipment who require to much STR, a character can't Hit or Cast a Spell Smile
01-07-2013 04:06 AM
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)