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
Any Meditation?
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
Any Meditation?
Any gradual meditation there?
^_^ thanks.

[Image: 2hy9q0y.png]
08-09-2012 04:49 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: Any Meditation?
????????????????????????

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.
08-09-2012 04:55 PM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #3
RE: Any Meditation?
I believe he wants what's more commonly called a passive meditation script.

Code:
[ITEMDEF i_focus_timer]
Id=i_memory
name = Focus timer
type = t_eq_script
layer = 30

On=@Create
ATTR=attr_invis|attr_decay

On=@Equip
   link = <src.uid>
   timer = 10
   return 1

On=@Timer
    IF (<LINK.FINDLAYER(6).TYPE>==t_armor) || (<LINK.FINDLAYER(13).TYPE>==t_armor) || (<LINK.FINDLAYER(24).TYPE>==t_armor) || (<LINK.FINDLAYER(19).TYPE>==t_armor) || (<LINK.FINDLAYER(10).TYPE>==t_armor) || (<LINK.FINDLAYER(7).TYPE>==t_armor)
        IF (<LINK.ACTION> == SKILL_MEDITATION)
            LINK.SYSMESSAGE You cannot meditate in heavy armor.
            LINK.ACTION = -1
        ENDIF
        IF ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>) || (<link.hits> < <link.MAXhits>)) && !(<link.flags>&statf_dead)
            IF  (<link.SKILLLOCK.50> == 0) && ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>))
                link.skillgain focus 1000
            ENDIF
            link.TAG.OVERRIDE.Regen_0=<EVAL (((<link.FOOD> * 100)/<link.MAXFOOD>)/12)>
            link.TAG.OVERRIDE.Regen_1=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 165)>
            link.TAG.OVERRIDE.Regen_2=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 120)>
        ENDIF

    ELSE

        IF ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>) || (<link.hits> < <link.MAXhits>)) && !(<link.flags>&statf_dead)
            IF  (<link.SKILLLOCK.50> == 0) && ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>))
                link.skillgain focus 1000
            ENDIF
            link.TAG.OVERRIDE.Regen_0=<EVAL (((<link.FOOD> * 100)/<link.MAXFOOD>)/12)>
            link.TAG.OVERRIDE.Regen_1=<EVAL (((<link.FOCUS>+<link.Skillmod Focus>) / 165) + ((<link.Meditation>+<link.Skillmod Meditation>) / 165))>
            link.TAG.OVERRIDE.Regen_2=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 120)>
        ENDIF
    ENDIF
    timer = 10
    return 1
This is designed to be used with Focus as you might guess. It blocks armor but doesn't have a system for Mage Armor yet. It uses the override regen rate tags on the assumption only it will be modding the, you can change regen amount for a troll or hydra but this will overwrite other changes to the regen rate. It also slightly increases hit regen if you are full.

Oh and the regen values are keyed for my baseline regens so you may need to alter them.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
08-09-2012 07:10 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: #4
RE: Any Meditation?
(08-09-2012 07:10 PM)Anarch Cassius Wrote:  I believe he wants what's more commonly called a passive meditation script.

Code:
[ITEMDEF i_focus_timer]
Id=i_memory
name = Focus timer
type = t_eq_script
layer = 30

On=@Create
ATTR=attr_invis|attr_decay

On=@Equip
   link = <src.uid>
   timer = 10
   return 1

On=@Timer
    IF (<LINK.FINDLAYER(6).TYPE>==t_armor) || (<LINK.FINDLAYER(13).TYPE>==t_armor) || (<LINK.FINDLAYER(24).TYPE>==t_armor) || (<LINK.FINDLAYER(19).TYPE>==t_armor) || (<LINK.FINDLAYER(10).TYPE>==t_armor) || (<LINK.FINDLAYER(7).TYPE>==t_armor)
        IF (<LINK.ACTION> == SKILL_MEDITATION)
            LINK.SYSMESSAGE You cannot meditate in heavy armor.
            LINK.ACTION = -1
        ENDIF
        IF ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>) || (<link.hits> < <link.MAXhits>)) && !(<link.flags>&statf_dead)
            IF  (<link.SKILLLOCK.50> == 0) && ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>))
                link.skillgain focus 1000
            ENDIF
            link.TAG.OVERRIDE.Regen_0=<EVAL (((<link.FOOD> * 100)/<link.MAXFOOD>)/12)>
            link.TAG.OVERRIDE.Regen_1=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 165)>
            link.TAG.OVERRIDE.Regen_2=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 120)>
        ENDIF

    ELSE

        IF ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>) || (<link.hits> < <link.MAXhits>)) && !(<link.flags>&statf_dead)
            IF  (<link.SKILLLOCK.50> == 0) && ((<link.STAM> < <link.MAXSTAM>) || (<link.mana> < <link.MAXmana>))
                link.skillgain focus 1000
            ENDIF
            link.TAG.OVERRIDE.Regen_0=<EVAL (((<link.FOOD> * 100)/<link.MAXFOOD>)/12)>
            link.TAG.OVERRIDE.Regen_1=<EVAL (((<link.FOCUS>+<link.Skillmod Focus>) / 165) + ((<link.Meditation>+<link.Skillmod Meditation>) / 165))>
            link.TAG.OVERRIDE.Regen_2=<EVAL ((<link.FOCUS>+<link.Skillmod Focus>) / 120)>
        ENDIF
    ENDIF
    timer = 10
    return 1
This is designed to be used with Focus as you might guess. It blocks armor but doesn't have a system for Mage Armor yet. It uses the override regen rate tags on the assumption only it will be modding the, you can change regen amount for a troll or hydra but this will overwrite other changes to the regen rate. It also slightly increases hit regen if you are full.

Oh and the regen values are keyed for my baseline regens so you may need to alter them.

Yes ^_^ I want that.
The script uses the food too, rly?
I'll change some factors... if I can Sad

I don't use FOCUS or FOOD lvls, but thanks! rly Smile I'll see how works

sry for my english.


Lazarus.

[Image: 2hy9q0y.png]
08-10-2012 02:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #5
RE: Any Meditation?
ya rly.

Smile

Since as I noted the system override the rates I had all the factors that affect it worked in here: focus, meditation and on many servers food.
Code:
Code:
[ITEMDEF i_focus_timer]
Id=i_memory
name = Focus timer
type = t_eq_script
layer = 30

On=@Create
ATTR=attr_invis|attr_decay

On=@Equip
   link = <src.uid>
   timer = 10
   return 1

On=@Timer
    IF (<LINK.FINDLAYER(6).TYPE>==t_armor) || (<LINK.FINDLAYER(13).TYPE>==t_armor) || (<LINK.FINDLAYER(24).TYPE>==t_armor) || (<LINK.FINDLAYER(19).TYPE>==t_armor) || (<LINK.FINDLAYER(10).TYPE>==t_armor) || (<LINK.FINDLAYER(7).TYPE>==t_armor)
        IF (<LINK.ACTION> == SKILL_MEDITATION)
            LINK.SYSMESSAGE You cannot meditate in heavy armor.
            LINK.ACTION = -1
        ENDIF
            link.TAG.OVERRIDE.Regen_1=0
        ENDIF

    ELSE

        IF <link.mana> < <link.MAXmana> && !(<link.flags>&statf_dead)
            link.TAG.OVERRIDE.Regen_1=<EVAL ((<link.Meditation>+<link.Skillmod Meditation>) / 165)>
        ENDIF
    ENDIF
    timer = 10
    return 1
This is simplified for just mana. Your own your own from here. Smile

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
08-10-2012 07:05 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: #6
RE: Any Meditation?
(08-10-2012 07:05 AM)Anarch Cassius Wrote:  ya rly.

Smile

Since as I noted the system override the rates I had all the factors that affect it worked in here: focus, meditation and on many servers food.
Code:
Code:
[ITEMDEF i_focus_timer]
Id=i_memory
name = Focus timer
type = t_eq_script
layer = 30

On=@Create
ATTR=attr_invis|attr_decay

On=@Equip
   link = <src.uid>
   timer = 10
   return 1

On=@Timer
    IF (<LINK.FINDLAYER(6).TYPE>==t_armor) || (<LINK.FINDLAYER(13).TYPE>==t_armor) || (<LINK.FINDLAYER(24).TYPE>==t_armor) || (<LINK.FINDLAYER(19).TYPE>==t_armor) || (<LINK.FINDLAYER(10).TYPE>==t_armor) || (<LINK.FINDLAYER(7).TYPE>==t_armor)
        IF (<LINK.ACTION> == SKILL_MEDITATION)
            LINK.SYSMESSAGE You cannot meditate in heavy armor.
            LINK.ACTION = -1
        ENDIF
            link.TAG.OVERRIDE.Regen_1=0
        ENDIF

    ELSE

        IF <link.mana> < <link.MAXmana> && !(<link.flags>&statf_dead)
            link.TAG.OVERRIDE.Regen_1=<EVAL ((<link.Meditation>+<link.Skillmod Meditation>) / 165)>
        ENDIF
    ENDIF
    timer = 10
    return 1
This is simplified for just mana. Your own your own from here. Smile

Thanks Smile
I'd create a new one but I will take something of this.

Mbe, I have a new
On=@skillchange
99 to 100
tag regen 9
etc etc etc Tongue

this is for the passive meditation ^_ ^

[Image: 2hy9q0y.png]
08-12-2012 03:47 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)