SphereCommunity
How to check if can drink t_potion - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: How to check if can drink t_potion (/Thread-How-to-check-if-can-drink-t-potion)



How to check if can drink t_potion - Monty - 08-31-2013 04:07 AM

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


RE: How to check if can drink t_potion - darksun84 - 08-31-2013 04:27 AM

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.


RE: How to check if can drink t_potion - Monty - 08-31-2013 05:56 AM

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