lua .. /resetxp
Moderators: Forum moderators, developers
I didn't get that far Gotenks, I only tried preventing the initial upgrade after Dee said he couldn't get et_UpgradeSkill to work.
Anyway, I don't know if its wrong on the wiki or I'm missing something obvious, but et_UpgradeSkill( cno, skill ) doesn't seem to care what you return it, and -1 does not prevent the upgrade. However, the following does:
Its kind of cheating though, because its not intercepting or aborting the upgrade, its just always setting the skill to 0.
p.s. "etpro: et_UpgradeSkill - expected integer, got table" is being kicked up in the logs every time the function is called.
Anyway, I don't know if its wrong on the wiki or I'm missing something obvious, but et_UpgradeSkill( cno, skill ) doesn't seem to care what you return it, and -1 does not prevent the upgrade. However, the following does:
Code: Select all
function et_UpgradeSkill(cno, skill)
et.gentity_set( cno, "sess.skill", skill, 0 )
end
p.s. "etpro: et_UpgradeSkill - expected integer, got table" is being kicked up in the logs every time the function is called.
GhosT:McSteve
Ghostworks Gaming Community
Ghostworks Gaming Community