SphereCommunity
with out target - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: with out target (/Thread-with-out-target)

Pages: 1 2


with out target - mrkarlo - 02-13-2014 11:09 PM

hey! can I make this little function work with out target? thanx!
Code:
[FUNCTION bandage]
IF (<SRC.FINDID.i_bandage>)
   SRC.FINDID.i_bandage.USE
SRC.SELF
ELSE
   SRC.SYSMESSAGE Bandages not found.
ENDIF



RE: with out target - Mordaunt - 02-13-2014 11:40 PM

Yes, but not like that since bandage is a specific type (t_bandage) who's default behavior is to present you with a target.
You're basically going to have to re-script the bandage item itself/override the default behavior to get it to do what you want.

Also you'd have to bare in mind that if you don't get a target, how would you heal a 3rd party?


RE: with out target - mrkarlo - 02-14-2014 01:42 AM

ye Mordaunt, the fact is that - character (with this function) heals himself automatically, and only thereafter appears target. After, when you click with that target - Unexpected target info.


RE: with out target - mrkarlo - 02-14-2014 07:37 PM

why this is happening?


RE: with out target - DavideRei - 02-14-2014 08:02 PM

mrkarlo want a function to allow players to heal themselves without select a target.

The problem is that "self" and "last" functions take the target but don't close the target cursor(so you can select another target with an error).

I reported the problem here:
http://tracker.sphere.torfo.org/bugs/view.php?id=2241


RE: with out target - mrkarlo - 02-14-2014 08:14 PM

yees DavideRei thats right! What is the solution for this problem?


RE: with out target - XuN - 02-14-2014 08:50 PM

I'm not expert in packets, but I took a look short time ago, and I guess its cliend side, so 3rd party programs can do it but we cannot (maybe Ben correct me).


RE: with out target - mrkarlo - 02-15-2014 07:37 AM

thank anyway! mb Ben will look at this problem


RE: with out target - Ben - 02-16-2014 12:47 AM

I did look at packets... there may be a way to send a target cancel packet but I'm not 100% sure. going to have to do some testing first


RE: with out target - darksun84 - 02-16-2014 01:33 AM

The powerful darksun84 solved the problem times ago

http://forum.spherecommunity.net/Thread-TARGET?pid=13447#pid13447