What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Checking if Char is inside or outside

Cryogenesis

Community Developer
Joined
Jul 13, 2010
Messages
2,128
Hey guys,

Is there a way to check if a char is inside or outside?

Thanks in advance!
 
Hey Cryo,

I was thinking about this too, if there isn't a built-in one best i could come up with was identify and store the inside "volumes" (corners of buildings, not rooms) and check.

Really i was thinking of using something like that for pathing .... like if source.area != dest.area then ask for navpath to taxi. take taxi to correct area. ask navpath taxi terminal to dest.
 
It should be programmable, but what you are describing, goes beyond something you can do in profiles.
 
Yeah i know I am looking at making small plugin, but this wouldn't be something to be done on every (or every x) client-ticks so i dont think a plugin is the correct solution. And i'm nowhere near close to being able to write a whole profile.

There is a RoomName r/o property
Code:
public string RoomName { get; }
    Member of Buddy.Swtor.BaseClient

And also a similar AreaName r/o prop

But i dont know if you can use them from the XML, I haven' t reached the profiles and how they work. So yeah, not very helpful yet, but give me some time :)
 
there is coding for areaname, but i didnt got it really functioning.
See Kicks guide for profiles.
 
Which profile has the code for areaname? i might be able to give you a hand.

INTUITIVELY (as i dont know enough yet for an informed opinion, and will have more time to review code over the weekend):
Neither areaname nor roomname can apparently work.
It would need a compatible code in the conditions parser something like
Code:
   public static bool HasQuest(ulong questId)
so two new ones would be needed (in pseudo)
Code:
 public static bool IsInArea (ulong areaId) //not a clue how areas are id'd if by id or display name
{
          Char.areaId == areaId ? retrun true : return false 
}
 public static bool IsInRoom (ulong RoomId) //ditto
{
          Char.roomId== RoomId ? retrun true : return false
}
Then using those two you'd have to make the profile work
Code:
<if Condition="isinarea(xxx)">
         <if Condition="isinroom(xxx)">
        .... 
        </if>
        <if Condition="isinroom(xxx)">
        .... 
        </if>      
</if>


edit: I just realized we've gone slightly offtopic, the original question was not what room or area but in a room or outside. this should be simpler

Edit 2: i didnt know this was a valid condition <If Condition="(Me.Class == CharacterClass.Smuggler)"> so there might be a different easier way to do this.
 
Last edited:
Back
Top