- CSkills* thisskill = GetSkillByID(useitem->usetype);
Regular dances don't though
To find out what effect stuff has, look at the useitems stb
the value in column V either represents the amount of something or (if there is no value in column U) a skill id.
Use that number to reference LIST_SKILL.STB and you can find out the effects it should have.
Para Dance [basic] has a skill id of 3171
Looking up skill 3171 we find an AOE range of 1200 and the effect is to give 30 points of stamina to anyone in that range.
I've just spent the last couple of hours trying to rewrite the code that takes away your stamina when using skill based items.
I am trying to cast a local structure as CSkill so that I can read back teh cost type and cost amount for all these type 313 items (all skill based) but I'm getting stumped on what should be a very basic piece of code.
this line
crashes the server as soon as I attempt to use one of the items.
Compiles fine. Just won't run.
I have tracked the code through. It reaches this line ok
it goes on into GetSkillByID without a problem and from there it even returns the correct skill.
It just point blank refuses to cast it into thisskill though
It's driving me insane.