View Single Post
  #7  
Old 06-11-2017, 10:39 PM
Jizamuss
Fire Beetle
 
Join Date: Jul 2006
Posts: 3
Default

Maybe try this and if it works please share =)

*for LUA only* Incorporated this in Mister lockout to test with and not have to level repeatedly
if(e.message:findi("hail")) then
e.other:Message(257, "Would you like to know your [" .. eq.say_link("Lockouts",false,"Lockouts") .. "] or fix your [" ..eq.say_link('skills', false, 'skills') .. "] ?")
elseif(e.message:findi("lockouts")) then
instance_requests.DisplayLockouts(e.other, e.other, lockout_globals)
elseif(e.message:findi("skills")) then

-- See the global/global_player.lua for the reference index for these values
local free_skills = {0,1,2,3,4,5,8,9,10,11,12,13,14,15,16,17,18,19,20, 21,22,23,24,25,26,28,29,30,31,32,33,34,36,37,38,39 ,41,42,43,44,45,46,47,49,51,52,54,67,70,71,72,73,7 4,76};
local MaxSkill = {eq.MaxSkill}

for k,v in ipairs(free_skills) do
if ( e.other:MaxSkill(v) > 0 and e.other:GetRawSkill(v) < 300 and e.other:CanHaveSkill(v) ) then
e.other:SetSkill(v, e.other:MaxSkill(v));
end



end
end
end
. I have also been trying to do this. I like the global_player.pl but it would be nice to have a lua version. just cant seem to get the event_level_up to work. I did add this portion onto mister lockout in pok and it updated my skills to max for my level. I have been unable to locate references to Scribe spells and Train Discs except that refer to perl. If someone helped you outside of the forum and you made it work I'd love to see what you ended up using.
Reply With Quote