I am modifying the force shrine to grant jedi rank 02 (Padawan) if rank_01 is present. The code works and that works fine but for some reason it doesn't play the jedi music or display the string text from the tre file.
It also does not give the padawan robes...
Anyone have any idea?
It also does not give the padawan robes...
Anyone have any idea?
Code:
if (not isJediPadwan) then
--Unlock Padawan / check to see if they have iniate rank from killing mellachie
if (CreatureObject(pPlayer):hasSkill("force_title_jedi_rank_01")) then
awardSkill(pPlayer, "force_title_jedi_rank_02")
CreatureObject(pPlayer):playEffect("clienteffect/trap_electric_01.cef", "")
CreatureObject(pPlayer):playMusicMessage("sound/music_become_jedi.snd")
CreatureObject(pPlayer):sendSystemMessage("@quest/force_sensitive/intro:completed_padawan")
--Give Jedi Padawan Robes
if not (self:hasFullInventory(pPlayer)) then
local pInventory = CreatureObject(pPlayer):getSlottedObject("inventory")
local pItem = giveItem(pInventory, self.jediPadawanRobe, -1)
else
CreatureObject(pPlayer):sendSystemMessage("@jedi_spam:inventory_full_jedi_robe")
end
else
CreatureObject(pPlayer):sendSystemMessage(genericMessage)
end
end