therkyn
Jul 5 2006, 07:27 PM
Hi all,
I was experimenting with using this to eliminate my need to click all those times to raise skills after I unspec/spec them. However, I couldnt seem to get it to work.
I tried this as an initial test:
| CODE |
function main() { var daggerskill = skapi.SkinfoFromSkid(skidDagger); sSay("Raising XP Dagger - invested:"+daggerskill.expInvested); skapi.RaiseSkill(skidDagger); skapi.WaitEvent(1000,3); sSay("Raised XP Dagger - invested:"+daggerskill.expInvested); skapi.RaiseSkill(skidBow, 10000); } |
Which resulted in reporting that I had spend 5534 XP so far into dagger skill, and that after raising skill, I still had spent 5844. While I didnt re-query the skinfo, so it may be expected that the 2nd time still reports the same xp, I also didnt see an increase in the skill level.
Any thoughts on what I'm doing wrong? I want to get this working before I add a "check XP available v. XP needed and apply as appropriate" routine to the actual raising. Oh, and raising with specific XP into the skill didnt work either (bow)...
-t
GKusnick
Jul 5 2006, 11:41 PM
It's not you. Turns out the names of those Decal hooks changed recently and I didn't notice. I'll need to make a new release to fix it. Not sure yet quite when that will be. (I moved into a new apartment last week and my machines aren't all set up yet.)
By the way, for serious use of these functions you probably want to wait for OnStatSkillExp or something like that instead of just using a fixed timeout.
therkyn
Jul 10 2006, 05:16 PM
I just moved as well, boy, getting a boxspring up those stairs was a bear and a half. Whenever you get around to a new release would be great, I'll just use fingers 1.0 until then

.
Thanks for the advice on the event to wait for, I always forget to look for those until they start being either too long, or not long enough and cause catastrophic errors... then, then I decide I really should've built it right to begin with.
-t
therkyn
Aug 3 2006, 01:28 PM
Thanks as always for your excellent support!
-t