SphereCommunity
Question - Printable Version

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

Pages: 1 2 3


RE: Question - Kanibal - 01-14-2016 02:50 AM

(01-14-2016 02:44 AM)rastrero Wrote:  How can i make this? where can i get tools? ty

You need Visual Studio and (<src.c++> == 100.0)


RE: Question - rastrero - 01-14-2016 02:54 AM

(01-14-2016 02:50 AM)Kanibal Wrote:  
(01-14-2016 02:44 AM)rastrero Wrote:  How can i make this? where can i get tools? ty

You need Visual Studio and (<src.c++> == 100.0)

and the sources?


RE: Question - Kanibal - 01-14-2016 02:57 AM

(01-14-2016 02:54 AM)rastrero Wrote:  and the sources?

You'r blind? Open Source


RE: Question - zottolo - 01-14-2016 03:06 AM

ok sorry


RE: Question - rastrero - 01-14-2016 03:16 AM

(01-14-2016 02:57 AM)Kanibal Wrote:  
(01-14-2016 02:54 AM)rastrero Wrote:  and the sources?

You'r blind? Open Source

Ty. No im not blind. I thought it was not an opensource, never look for it. ty.


RE: Question - Kanibal - 01-14-2016 03:18 AM

(01-14-2016 03:16 AM)rastrero Wrote:  Ty. No im not blind. I thought it was not an opensource, never look for it. ty.

Firs thread at the top - "Open Source!" @_@


RE: Question - rastrero - 01-14-2016 03:21 AM

(01-14-2016 03:06 AM)zottolo Wrote:  ok sorry

xD i apreciate ur will to help. U dont have to sorry.
Im just saying Im highlvl sphere scripter, and u are a begginer.
Its not probably than u know anything I dont.
I recommend u to learn and use Spheretorfo wiki. if u want a quick tutorial of 20min by skype I can teach you some things to be more independent.
But i dont talk 2 much ita, just esp, deu and eng.

(01-14-2016 03:18 AM)Kanibal Wrote:  
(01-14-2016 03:16 AM)rastrero Wrote:  Ty. No im not blind. I thought it was not an opensource, never look for it. ty.

Firs thread at the top - "Open Source!" @_@

xD yeh, Im a busy man. no time for adventures xD if u know what I mean.

Anyway MY problem still, so if anynoe got a better solution than modify sphere inside im open to it. ty


RE: Question - karma - 01-14-2016 03:44 AM

I would try as a workaround, as Kannibal suggested, to set in the .ini
Code:
// This is the percent of max weight at which stamina is lost half the time
// (200 = no effect)
StaminaLossAtWeight=200

And in an event attached to your chars
Code:
ON=@PersonalSpace
ARGN1=0 //The amount of stamina needed to step on to the character.
ARGN2=1 //Setting it to 1 allow NPCs to pass over another NPCs, 0 reject the movement.

I don't remember if stamina goes down during combat, in that case you can do something like
Code:
ON=@Hit
STAM ++
IF (<STAM> > <MAXSTAM>)
STAM = <MAXSTAM>
ENDIF

The strategy here is to avoid char loosing stamina


RE: Question - rastrero - 01-14-2016 03:49 AM

Answer for karma.

I want the player to lose stamina, its a role play server.
I want them to walk but not run even with 0 stamina But i dont want them to get stuck.

is there a steptrigger? Normal steptrigger?


RE: Question - karma - 01-14-2016 03:53 AM

There's a @Step (http://wiki.sphere.torfo.org/index.php/@Enter) trigger for regions, you can attach an event to a_world, but consider that the trigger will fire at every step every char (player+npc) does in the world, and that's not exactly light for the server to handle. Anyways:

Code:
ON=@Step
IF (<SRC.STAM> < 1)
SRC.STAM = 1
ENDIF