Vital Jam fix

Submit code for osProse project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Re: Vital Jam fix

Postby PurpleYouko on Tue Jun 03, 2008 7:35 pm

According to the STBs the para dances do exactly that.
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
  1. CSkills* thisskill = GetSkillByID(useitem->usetype);

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. Image
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Previous

Return to Submit Code

Who is online

Users browsing this forum: No registered users and 6 guests