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
Strength of a Potion
Author Message
Hustensaft
Apprentice
*

Posts: 24
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2013
Reputation: 0



Post: #3
RE: Strength of a Potion
Hi,

thx for the answerSmile I tried this, but the new spell had no healing effect. So i added this to the spell:

PHP Code:
ON=@Effect
    
if <src.hits> >= <src.maxhits>
    
src.SysMessage But you are healthy?
    return 
1
    
elseif <src.hits> >= <eval(<src.maxhits>-20)>
    
src.SysMessage Your last wounds heal.
    
src.hits=<src.maxhits>
    return 
0
    
elseif <src.hits> < <src.maxhits>
    
src.SysMessage Some of your wounds heal.
    
src.hits +=20
    
return 0
    
endif 

The Spell works now as intented, it heals 20 HP or less, if the Player is less then 20 HP missing. I now edited the script of the potion to the new Spell and the intented strength of 20:

PHP Code:
ON=@Create
    color
=055
    MORE1
=s_healing_potion_lesser
    MORE2
=20 

but the Potion doesn't work at all, you just drink it, but without any effect, no sound, no magic sparkles, no healing. Just gulp and an emtpy bottle. Do you have any idea, what i missed?
05-15-2013 04:12 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Strength of a Potion - Hustensaft - 05-14-2013, 08:30 PM
RE: Strength of a Potion - darksun84 - 05-14-2013, 09:17 PM
RE: Strength of a Potion - Hustensaft - 05-15-2013 04:12 AM
RE: Strength of a Potion - darksun84 - 05-15-2013, 08:02 AM
RE: Strength of a Potion - Hustensaft - 05-15-2013, 08:35 AM
RE: Strength of a Potion - darksun84 - 05-15-2013, 08:38 AM
RE: Strength of a Potion - Hustensaft - 05-15-2013, 11:04 PM

Forum Jump:


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