Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
with out target
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
with out target
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
02-13-2014 11:09 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: with out target
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?

[Image: 2nis46r.jpg]
02-13-2014 11:40 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: with out target
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.
02-14-2014 01:42 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #4
RE: with out target
why this is happening?
02-14-2014 07:37 PM
Find all posts by this user Like Post Quote this message in a reply
DavideRei
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2013
Reputation: 0



Post: #5
RE: with out target
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
02-14-2014 08:02 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: with out target
yees DavideRei thats right! What is the solution for this problem?
02-14-2014 08:14 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #7
RE: with out target
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).
02-14-2014 08:50 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #8
RE: with out target
thank anyway! mb Ben will look at this problem
02-15-2014 07:37 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #9
RE: with out target
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

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
02-16-2014 12:47 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #10
RE: with out target
The powerful darksun84 solved the problem times ago

http://forum.spherecommunity.net/Thread-...7#pid13447
02-16-2014 01:33 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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