Equipping on action
Moderator: Team Members
Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Equipping on action
I am trying to set things like the Woodchoppers in Antonica or these random guys sparring. How do we get them to wield the weapon they have? They always stay by their sides.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
I am not sure off hand but I believe it is one of the state values but not sure which one, visual and action usually controll the animations, so it might have been initial but messing with that can give all sorts of weird results. If the animations are set in visual_state you could try changing it the action_state and see if it changes.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Equipping on action
The states seem to control what they do, but not what the equip, if I am right. Do we have an zones at all where they have them equipped?
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
It is probably the initial_state that will force them to wield the weapon they have I am just not sure of the values for that field. We did have some that were wielding there weapons but that might have been in the old content. Some mendors will wield the tools but that might be part of the animation. I will probably have to dig up a log to check the initial state.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
Ok ignore the above has nothing to do with initial_state, it is visual_state and action_state that will control this. After playing with initial with no results I remembered frost fang sea might have npc's with weapons out and they did so this is how it is done.
First meet Glanald, my test dummy First thing is to set the visual_state to 11420 and that will force draw the weapon As you can see it just puts the weapon in his hand, to get the animation you will now need to use the action_state, in this case as he has a sword I used 16 (1h_sword_idle) Now he has the proper idle animation with the sword in hand, from here you would need to use scripts with timers to change the action_state to get him to swing the sword every now and then.
First meet Glanald, my test dummy First thing is to set the visual_state to 11420 and that will force draw the weapon As you can see it just puts the weapon in his hand, to get the animation you will now need to use the action_state, in this case as he has a sword I used 16 (1h_sword_idle) Now he has the proper idle animation with the sword in hand, from here you would need to use scripts with timers to change the action_state to get him to swing the sword every now and then.
You do not have the required permissions to view the files attached to this post.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Equipping on action
So that the rest can learn how did you figure this out?
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
I just went to frostfang found the archers above the third quest hub that had the bows out and did a /spawn details on one of them then looked up the visual_state and action_state id's in the `visual_states` table.Jabantiz wrote: Mon Apr 10, 2017 4:26 pm...I remembered frost fang sea might have npc's with weapons out and they did...
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Equipping on action
But how was it figured out before this? We want to learn!
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
It was probably parsed correctly from a log at some point, maybe even the frostfang logs, and just copied from there for any one else that needed it.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Equipping on action
I am guessing it just did not pull from our current dump, it was set for zero. I also notice that many of our duplicate spawns, the first one will have stats like INT, STR, WIS and then the duplicate will have zero of those stats. Seems consistent too.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
Live tends to like to change the spawn struct often so it is likely that the structs we used for the log version were not 100% causing it to miss some stuff. Even when we had a bunch of people it was difficult to keep up with the constant changes going into live.
Stats are odd, they should all have generic stats as we can't get that info from live, no clue why some are not getting them.
Stats are odd, they should all have generic stats as we can't get that info from live, no clue why some are not getting them.
-
tyrbo
- Team Member
- Posts: 271
- Joined: Thu Feb 18, 2016 12:33 pm
Re: Equipping on action
Can this apply to players as well?
I've noticed when I have auto attack on, I see the animation for a swing, but there is no idle animation happening in between.
My character will try to sheath the weapon before the next swing animation (depending on weapon delay).
It's something that's been on my radar to fix - I assume it's a similar sort of situation?
I've noticed when I have auto attack on, I see the animation for a swing, but there is no idle animation happening in between.
My character will try to sheath the weapon before the next swing animation (depending on weapon delay).
It's something that's been on my radar to fix - I assume it's a similar sort of situation?
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Equipping on action
Honestly I don't know. For the most part the server has very limited control over the spawn the client controls, most visual stuff we can change though so this might be one but I have never tried.
As far as combat goes some packets and flags on the char sheet seem to put the character into the combat stance, it could be that the flag for combat in the char sheet is off so they only play the attack animations (spell/combat art packet or auto attack packet) and don't enter the idle stance. This is one of those bugs that seems to come and go but I never considered it important so I never spent much time trying to track it down. It could be client related (char sheet is off) but I never paid enough attention to even note what client I was using at the time.
As far as combat goes some packets and flags on the char sheet seem to put the character into the combat stance, it could be that the flag for combat in the char sheet is off so they only play the attack animations (spell/combat art packet or auto attack packet) and don't enter the idle stance. This is one of those bugs that seems to come and go but I never considered it important so I never spent much time trying to track it down. It could be client related (char sheet is off) but I never paid enough attention to even note what client I was using at the time.
Who is online
Users browsing this forum: No registered users and 0 guests