[Help]Infinite stamina?

01/12/2010 05:36 necuja#1
How can i make my server have infinite stamina?

I'm using 5165 source

Thanks guy's!!!:handsdown::handsdown::handsdown:
01/12/2010 06:10 spare2#2
Take out the stamina requirements for skills.
01/12/2010 06:25 necuja#3
And how do i do that :/

Thanks for the help
01/12/2010 06:37 spare2#4
What source are you using?
01/12/2010 07:03 necuja#5
5165
01/12/2010 07:42 pro4never#6
yah as said, simply remove the stamina costs associated with skills (just comment out the lines checking if stamina >= value and the removal of stamina/updating)

As an alternative you could always set character stamina = max stamina everytime the client is updated (wouldn't make any sense to do it that way as it would be needless and hog resources... but you COULD simply fill their stamina up)
01/12/2010 07:51 necuja#7
Uhh i don't understand what you mean couldn't i just make it too where the stamina never hit's 0 like u log in with full stamina and it will never go down because for some reason sometimes the stamina get's glitches and wont go up at all unless the server is restarted


Thanks again guy's
01/12/2010 08:00 pro4never#8
Locate the original definition for player stamina and change it from 0 to 100 (that way players START with 100 stamina)

Locate any skills that use stamina (hurc, fb, pray, summons etc) and remove any code that will lower stamina from them

Done!
01/12/2010 08:04 necuja#9
Yeah but where would i find the original definition for player stamina

Thanks again ;)
01/12/2010 08:17 pro4never#10
Find somewhere in the source player stamina is referred to, right click it and click go to definition.

I know in CoEmu it would be under Entities>Character.cs but I've never used lotf.
01/12/2010 08:24 necuja#11
Alright thanks ill try to figure it out


Thanks
01/13/2010 00:05 Arcо#12
Quote:
Originally Posted by necuja View Post
Yeah but where would i find the original definition for player stamina

Thanks again ;)

Where ever you see stamina, right click it then "Navigate to definition."