![]() |
Stealth - disable running - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Stealth - disable running (/Thread-Stealth-disable-running) |
Stealth - disable running - Indiaret - 02-10-2020 08:59 AM 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] Code: [SKILL 47] RE: Stealth - disable running - Indiaret - 02-11-2020 04:48 AM 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 RE: Stealth - disable running - Coruja - 02-25-2020 08:16 AM 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 RE: Stealth - disable running - Llirik - 02-25-2020 10:17 AM It is easy. ;-) |