Question.

03/24/2010 04:05 Danny-b77#1
Right. I'm using a 5165 source and I have the command

Quote:
if (Cmd[0] == "/stamina")
GC.MyChar.Stamina = 150;
How can I make this command to make it so if I type /stamina I have like unlimited stamina and it wont decrease so I wont have to keep waiting for stamina/typing /stamina 150
03/24/2010 04:15 Santa#2
Possibly just make it a really large number, I don't work with this source so i have no idea.
03/24/2010 04:29 Danny-b77#3
I tried but when I do it dosen't let me go past 250 I think and it dosen't make a difference =/.
03/24/2010 05:48 Arcо#4
Since it is defined as a byte it won't go past 255.
03/24/2010 16:38 Danny-b77#5
So hawh can I make it unlimited =o?
03/24/2010 16:43 xScott#6
Quote:
Originally Posted by Danny-b77 View Post
So hawh can I make it unlimited =o?
erm remove the stamina cost on Fb/Ss shouldnt be too hard to find
03/24/2010 17:21 Danny-b77#7
Yeah, but I don't just mean that. Inf stam (Like I could cast meditation 5 times without re-filling). Not just for FB/SS.
03/24/2010 18:25 .Beatz#8
Quote:
Originally Posted by Danny-b77 View Post
Yeah, but I don't just mean that. Inf stam (Like I could cast meditation 5 times without re-filling). Not just for FB/SS.
The easiest way to do that would be to edit the skills. /skilladder on your console will bring up all the skills and gibe you the chance to edit them. BE WARNED! this will affect everyone on the server. and if your not carefull the skills will be rendered useless.
03/24/2010 19:02 pro4never#9
best way to do it is add a bool for your char along the lines of unlimstam = false;, then make a cmd to set it to false (for gms only)

Then go to stamina costs for all your skills and do something along the lines of if (!unlimstam)
check/reduce stamina

That way you never check or remove stamina if they have the unlim stamina. Problem solved.
07/17/2010 10:15 folip5#10
or you could just use like an variable which can hold a lot of memory so you would do that on like every 15 mins example uint