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
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Strength of a Potion
Potion Theory :

While potion more2 is the strength of a potion, potion more1 is the spell that the item "use" when the player drink it.

In the heal spell script block there is this field :
EFFECT=5,20

When an healing potion is drinked, its more2 value just give more chance to heal a number of hitpoints more near to 20 than to 5.

Anyway i don't know why you get always 9hp.

But you should try to use this sort of template for you custom potion
PHP Code:
[SPELL 1000]
DEFNAME=s_healing_potion
NAME
=Healing Potion Effect
SOUND
=snd_SPELL_HEAL
RUNES
=IM
FLAGS
=SPELLFLAG_TARG_CHAR SPELLFLAG_FX_TARG SPELLFLAG_GOOD
EFFECT_ID
=i_fx_HEAL_EFFECT
EFFECT
=20  //should heal always 20, no matter potion  strength
DURATION=0.0
MANAUSE
=4
SKILLREQ
=MAGERY 10.0
INTERRUPT
=100.0,100.0

then on your healing potion item script
in more1 you will put s_healing_potion and so on.

Remember that you have to restart the server everytime you create a new spell 

Anyway i can't test it right so i don't know if it will work Big Grin

There are faster way to create custom various potion, but i consider this the more correct.
(This post was last modified: 05-14-2013 09:18 PM by darksun84.)
05-14-2013 09:17 PM
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: 1 Guest(s)