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

How to check if locked to Magisters Terrace

dan54

New Member
Joined
May 3, 2015
Messages
9
Reaction score
0
Not sure if this is the right place to ask for help but here goes...

I want to check if my character is locked to Magisters Terrace for farming the White Hawkstrider mount. Heres the code I'm using:

<If Condition="(Lua.GetReturnValues(&quot;for i=1,GetNumSavedInstances() do local n,_,_,_,l = GetSavedInstanceInfo(i) if (n == 'Magisters Terrace' and l == true) then return 1 end end return 0&quot;).First() == &quot;1&quot;)" >
<CustomBehavior File="Message" Text="Locked to Magisters Terrace" LogColor="Orange" />
</If>

But it doesn't work because the name should be "Magister's Terrace", but the profile can't compile when there's an apostrophe in the name. So, I tried using getmapnamebyid:

<If Condition="(Lua.GetReturnValues(&quot;for i=1,GetNumSavedInstances() do local n,_,_,_,l = GetSavedInstanceInfo(i) if (n == GetMapNameByID(798) and l == true) then return 1 end end return 0&quot;).First() == &quot;1&quot;)" >
<CustomBehavior File="Message" Text="Locked to Magisters Terrace" LogColor="Orange" />
</If>

But this doesn't work also... I think becuase the map name is called Magisters' Terrace but the lock ID is called Magister's Terrace

Is there anyway to fix it?
 
this is honorbuddy support. not developer support, the best place to go to get help with scripting would be the developers section.
 
Back
Top