Page 1 of 1

Chest Locks with Keys not Lock Picks

Posted: Tue Feb 17, 2015 10:25 am
by Eleven Warrior
Hi al sorry about this. I think I read how someone changed the Lock on a Chest to accept a Key(s) other than the Lock Pick, if so can someone please give me the code or object etc.... Thxs for your time guys :) Or how do I change a Iron Key to be a lock pick but with a different name and GUI name?

EDIT: Also I know this script works when the champ with the right name activates it, but how do I add a else statement if the champ is not in the party?

Code: Select all

function Sercret1a()

      for i=1,4 do
     
       local name = party.party:getChampion(i):getName()
       if name == "Shadow" then
         hudPrint("Shadow: Wait!! that wall to the right seems strange.")
         playSound("discover_spell")
dungeon_door_wooden_1.door:open()

else -- If the champ is not found then it hudPrints the below line----

hudPrint("You need Shadow to open this door.")
      end
   end 
end

Re: Chest Locks with Keys not Lock Picks

Posted: Tue Feb 17, 2015 1:34 pm
by Drakkan

Re: Chest Locks with Keys not Lock Picks

Posted: Tue Feb 17, 2015 1:36 pm
by Eleven Warrior
Thxs Drakkan :)