SphereCommunity
cast spell func - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: cast spell func (/Thread-cast-spell-func)



cast spell func - mrkarlo - 01-15-2016 12:03 AM

hi
please help. how ti cast spell in functions? for example:

[function cast_heal]
...


RE: cast spell func - Kanibal - 01-15-2016 01:49 AM

Code:
[FUNCTION f_cast_heal]
cast s_heal
self



RE: cast spell func - mrkarlo - 01-15-2016 01:57 AM

thanks! short and simple, but I need with out "on self". Possible with target and after cast?


RE: cast spell func - Kanibal - 01-15-2016 02:10 AM

Code:
[FUNCTION f_cast_heal]
cast s_heal //cast 4 is also the same



RE: cast spell func - mrkarlo - 01-15-2016 02:21 AM

thnx! one more question! when your mana is low how to move to the selection of scrolls?

[FUNCTION f_cast_heal]
cast s_heal
if......
src.findid(i_scroll_heal).dclick


RE: cast spell func - rastrero - 01-15-2016 02:28 AM

if (<mana><=40) //others: > ,< , == , >=,
//if its less or equall 40
else
//if its more
endif


RE: cast spell func - mrkarlo - 01-15-2016 02:30 AM

BIG THANX!


RE: cast spell func - rastrero - 01-15-2016 03:42 AM

140 post and u didnt know it? awsome. xD


RE: cast spell func - mrkarlo - 01-15-2016 04:03 AM

Yes, I stood in the cold and this script slipped from my mind. Anyway thanks! Big Grin