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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ON=@PersonalSpace
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
ON=@PersonalSpace
Hello people, i need some help with this trigger, its the first time im using it and for some reason doesnt seem to do anything in my script.
im using it under an event for players, tried to search some examples but didnt find much, so i come to you.

reading the http://wiki.sphere.torfo.org/index.php/@PersonalSpace
page i understand that src is the character trying to step (shove) on another one...
so i tried the basics for tests but nothing seems to happen.


ON=@PersonalSpace
IF (<SRC.IsPlayer>)
src.sysmessage you shove him away.
endif

what am i doing wrong?
056c jun 14 dev.

Thank you.
(This post was last modified: 06-15-2014 07:10 AM by kn4tseb.)
06-15-2014 07:09 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: ON=@PersonalSpace
Try debugging before adding any restriction

ON=@PersonalSpace //fired on the character who is stepped in
src.say I am the SRC and I am stepping into I
say I am I and I am being stepped by SRC

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 06-15-2014 07:33 AM by Feeh.)
06-15-2014 07:31 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: ON=@PersonalSpace
i did... believe me, was the first thing done:

ON=@PersonalSpace
src.sysmessage you shove him away.
say stop it!!! YOU NOOB
src.SAY hello hello hello
SERV.B BEAT IT!
endif

but still nothing...
(This post was last modified: 06-15-2014 07:44 AM by kn4tseb.)
06-15-2014 07:43 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #4
RE: ON=@PersonalSpace
The trigger is defined on a global event or event or skillclass ? the event is set on the player who is stepped ?

The trigger is working fine here

As I said, this trigger fires on who is stepped. If player A enter on the player B space, the trigger will fire on B

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
06-15-2014 09:11 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: ON=@PersonalSpace
Okey, solved Smile, thanks feeh

but IMO would have been better to make the trigger inverse, because the ARGN1 is always limited if <SRC.STAM> = <SRC.MAXSTAM>
what if some one does not want to have stam at maximum to step on I?

i might make a new feature request like a ON=@PersonalSpaceTry???

ARGN1 stam needed to try to step on?
(This post was last modified: 06-15-2014 03:41 PM by kn4tseb.)
06-15-2014 02:19 PM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #6
RE: ON=@PersonalSpace
(06-15-2014 02:19 PM)kn4tseb Wrote:  but IMO would have been better to make the trigger inverse, because the ARGN1 is always limited if <SRC.STAM> = <SRC.MAXSTAM>
what if some one does not want to have stam at maximum to step on I?

So you will need to edit your client, it does have an internal stamina check, so even if you want to be able to step on another char, the client will not send a walk request to the server if stamina is too low. The trigger is not fired
There is nothing we can do server-side

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 06-16-2014 03:41 AM by Feeh.)
06-16-2014 03:33 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #7
RE: ON=@PersonalSpace
should have read it before.... seems beyond my knowledge, where should i start? which client files contain this information?
06-16-2014 03:37 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #8
RE: ON=@PersonalSpace
Well, this information rely inside your client.exe
Reverse engineering is needed along and other highly advanced knowledges; I can not say more than that since it void UO EULA and forum rules

In short answer: this is a extremely difficult task and there is no tutorial for such thing

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
06-16-2014 04:02 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #9
RE: ON=@PersonalSpace
xDDDD okey, im asking no more about that xd... thanks.
06-16-2014 04:53 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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