Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stealth - disable running
Author Message
Indiaret
Apprentice
*

Posts: 38
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #1
Stealth - disable running
Hi,

is it able to disable running while player is in stealth ? I mean if he starts to run in stealth, it will reveal him. Player should move in stealth only slowly (so only walking).

Thanks

My code in hiding and stealth:
Code:
[SKILL 21]
DEFNAME=Skill_Hiding
KEY=Hiding
TITLE=Shade
PROMPT_MSG=
EFFECT=10
DELAY=3.0,1.5
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
ADV_RATE=0

ON=@Fail
    SRC.SYSMESSAGE You can't seem to hide here.

On=@Success
if !(STRCMPI(<tag.class>,thief))
tag.can_backstab=<eval <serv.time> +<var.backstab_timer>*10>
endif
if (<stealth><510)
local.steps=<eval <stealth>/250>
stepstealth=<eval 1+{0 <dlocal.steps>}>
else
float.Steps=<floatval (<stealth>/100)-0.5>
float.Steps2=<floatval 91@<float.steps>>
local.steps=<floattolocal <float.steps2>>
stepstealth=<eval 1+{<local.steps> <eval <local.steps>*2>}>
endif
sysmessage Number of steps :<eval <stepstealth>-1>


ON=@Abort
    SRC.SYSMESSAGE You stop trying to hide.

Code:
[SKILL 47]
DEFNAME=SKILL_STEALTH
KEY=Stealth
TITLE=Rogue
PROMPT_MSG=
DELAY=2.5
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
ADV_RATE=0

on=@Start
skill hiding
return 1
02-10-2020 08:59 AM
Find all posts by this user Like Post Quote this message in a reply
Indiaret
Apprentice
*

Posts: 38
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #2
RE: Stealth - disable running
I could use probably @stepstealth trigger, but how to detect something like walk or run if player moves ? Is it possible ?

I mean:
on=@stepstealth
if (client_walk)
argn1=0
elif (client_run)
argn1=1 //reveal
endif
02-11-2020 04:48 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 970
Likes Given: 5
Likes Received: 223 in 185 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: Stealth - disable running
STEPSTEALTH already exist, there's both STEPSTEALTH variable and @StepStealth trigger

STEPSTEALTH value is set when stealth skill succeed (eg: it set STEPSTEALTH=20 which means that the char can take 20 steps before get revealed). Walking will consume 1 point and running will consume 2 points, and char will be revealed when it reach 0. And @StepStealth is called when char try to move while using stealth

So you can set STEPSTEALTH=0 on @StepStealth to make the char get revealed instantly

Code:
ON=@StepStealth
IF (<FLAGS> & statf_hovering)  //char is running
  STEPSTEALTH=0
ENDIF
02-25-2020 08:16 AM
Find all posts by this user Like Post Quote this message in a reply
Llirik
Journeyman
*

Posts: 108
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0

UO Forum

Post: #4
RE: Stealth - disable running
It is easy. ;-)

http://www.uo2.ru - Best UO Forum
02-25-2020 10:17 AM
Visit this user's website 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)

This forum uses Lukasz Tkacz MyBB addons.