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:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if can drink t_potion
Author Message
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #1
How to check if can drink t_potion
Hi , again need help from the community
My problem is:
I need function called after drink type t_potion. Something like dclick but only after drink. I added typedef t_potion and after trigger @dclick i call my function. But this call my function everytime and i need only after drink how i can check if player can drink?

I try this but return alltime. True
IF (<src.restest i_handr_1>)

I think sphere add i_handr_1 from drinking potions and after is called typedef t_potion trigger @dclick is this true?

A terrible English I know maybe someone will understand. Big GrinD

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
08-31-2013 04:07 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #2
RE: How to check if can drink t_potion
Potion stores spell, so when you actually drink a potion a spell is "casted" on yourself .

That's mean that after the @dclick, the @effect(of the relative spell) and the @spelleffect trigger fires.
08-31-2013 04:27 AM
Find all posts by this user Like Post Quote this message in a reply
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #3
RE: How to check if can drink t_potion
WOW i check in @spelleffect if is argo.type = t_potion and this is all. Gj rly thx. I give you reputation for the fastest useful ansver in internet history. Big Grin

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
08-31-2013 05:56 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Monty's post
Post Reply 


Forum Jump:


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