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
No stat cap...
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #4
RE: No stat cap...
You have a duplicated IF check inside itself... and not ended it. You dont need it there anyway

PHP Code:
ON=@EnvironChange

//IF !(<SRC.FINDID.i_rune_bless>) 
IF ((<SRC.FLAGS> & STATF_POLYMORPH) || (<SRC.FINDLAYER(LAYER_SPELL_STATS)>) || (<SRC.FINDLAYER(LAYER_FLAG_Potion)>) || (<SRC.FINDLAYER(LAYER_FLAG_Hallucination)>))
    return 
1
endif
IF !((<
SRC.FLAGS> & STATF_POLYMORPH) || (<SRC.FINDLAYER(LAYER_SPELL_STATS)>) || (<SRC.FINDLAYER(LAYER_FLAG_Potion)>) || (<SRC.FINDLAYER(LAYER_FLAG_Hallucination)>))


    IF (<eval <
SRC.STR>> > 120)
        
say @2545 Stat cap superato!
        
SRC.STR=120
    
ENDIF

    IF (<eval <
SRC.DEX>> > 120)
        
say @2444 Stat cap superato!
        
SRC.DEX=120
    
ENDIF

    IF (<eval <
SRC.INT>> > 120)
        
say @2441  Stat cap superato!
        
SRC.INT=120
    
ENDIF

    IF (<EVAL <
SRC.STR>+<SRC.DEX>+<SRC.INT>> > 300)

        
say @2545 Stat cap superato!
        IF (<EVAL <
SRC.DEX>> > <EVAL <SRC.INT>>)
            
SRC.INT=(<SRC.INT>+(-1))
            RETURN 
1
        
ENDIF

        IF (<EVAL <
SRC.INT>> > <EVAL <SRC.DEX>>)
            
SRC.DEX=(<SRC.DEX>+(-1))
            RETURN 
1
        
ENDIF

    ENDIF
ENDIF 

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 01-07-2013 11:38 PM by Ultima One.)
01-07-2013 11:33 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
No stat cap... - admin_teclis - 01-07-2013, 09:20 AM
RE: No stat cap... - Onirim - 01-07-2013, 05:25 PM
RE: No stat cap... - admin_teclis - 01-07-2013, 10:55 PM
RE: No stat cap... - Ultima One - 01-07-2013 11:33 PM
RE: No stat cap... - Onirim - 01-08-2013, 12:30 AM
RE: No stat cap... - admin_teclis - 01-08-2013, 05:42 AM
RE: No stat cap... - admin_teclis - 01-08-2013, 10:01 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)