Custom Jedi Question - Force Shrine

nugax

New Member
Joined
Mar 23, 2016
Messages
8
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?

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
 

NaTaS

New Member
Joined
Jul 14, 2013
Messages
2
So are you modifying the C++ code? Cause what you are showing here is LUA
 

Pake

Member
Joined
Dec 8, 2011
Messages
147
So what was the resolution? So others seeing this form with the same issue would know.
 
Top Bottom