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
[split] 56b - some problems ....
Author Message
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #11
RE: [split] 56b - some problems ....
aaah, i get it...that's coz u used a numerical ID, i didn't know what was that and i'm not testing the script i'm doing for ya, just following my sense, so, here it is:

Code:
[ITEMDEF i_restore_bers]
Name=Restoration
ID=i_bottle_6
WEIGHT=25

On=@Create
    COLOR=042c
    more2 = 25

on=@click
message <name> (<eval <more2>>)
return 1

ON=@DCLICK
IF !(<SRC.TAG0.BERSERKER>)
SRC.MESSAGE @55 Only Berserker can drink restoration!
RETURN 1
ELSE
    IF (<SRC.TAG0.BERSERKER>==1)
        MOREX={15 17}
    ELIF (<SRC.TAG0.BERSERKER>==2)
        MOREX={17 20}    
    ELIF (<SRC.TAG0.BERSERKER>==3)
        MOREX={20 23}
    ELSE
        MOREX={23 26}
    ENDIF            
ENDIF
IF (<SRC.HITS> >= <SRC.MAXHITS>)
        SRC.MESSAGE @55 You are already at maximum healt!
        RETURN 1
ENDIF
IF (<SRC.FINDID.i_rest_delay_level1>)
        SRC.SYSMESSAGE @55 You can't drink restoration potion yet
        RETURN 1
ENDIF
IF (<EVAL <MORE2>> > 0)
    SRC.EFFECT=3,0376a,10,25,10
    IF (<EVAL <SRC.HITS> + <MOREX>> >= <SRC.MAXHITS>)
        SRC.HITS = <SRC.MAXHITS>
    ELSE
        SRC.HITS += <EVAL <MOREX>>
        ENDIF
    SERV.NEWITEM=i_rest_delay_level1
    NEW.EQUIP=<SRC.UID>
    MORE2 -= 1
    SRC.SYSMESSAGE Charges left <EVAL <MORE2>>
ELSE
    SRC.SYSMESSAGE @55 Charges over!
        REMOVE
ENDIF

[ITEMDEF i_rest_delay_level1]
ID=i_memory
Name=Restore Delay level 1
Type=t_eq_script

On=@Create
    attr = attr_newbie | attr_decay

On=@Equip
IF (<SRC.TAG0.BERSERKER>==1)
    TIMER=5
ELIF (<SRC.TAG0.BERSERKER>==2)
    TIMER=4
ELIF (<SRC.TAG0.BERSERKER>==3)
    TIMER=3
ELSE
    TIMER=3
ENDIF    
RETURN 0

ON=@Timer
REMOVE
RETURN 1
03-10-2013 01:23 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)