View Single Post
09-08-06, 10:46 PM   #59
Auren
An Aku'mai Servant
 
Auren's Avatar
Join Date: Sep 2006
Posts: 37
Originally Posted by Josephine
Hey there,

here's my problem

I want to have the bagbar only shown when I am in town/at a bank.

The most fitting event I found is PLAYER_UPDATE_RESTING (I think). This covers at least the 3 mayor cities. However I can't seem to get it to work. An example script would help me out greatly.

Thanks
bar: bags
event: PLAYER_UPDATE_RESTING
if IsResting() then
bar:Show()
else
bar:Hide()
end
I don't code in lua, i used to program in delphi and vb, and the languages are same for if statements.
Worked for my level 11 paladin inside goldshire inn.
As for the other places i don't know.
Give it a shot.
  Reply With Quote