Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Jedi Question - Force Shrine
#1
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
 
Reply
#2
So are you modifying the C++ code? Cause what you are showing here is LUA
 
Reply
#3
Resolved
 
Reply
#4
So what was the resolution? So others seeing this form with the same issue would know.
 
Reply
#5
You have to call and declare both the player and object types.
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)