Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Condition for Profession

Featured Replies

Hey guys,

I am searching for a Profession Level Condition.

Like if Tailoring skill is =>100, then the quest is complete.

I searched for the *ObjectManager* but couldn't find what I am looking for. (I already thought about KnowsSpell, but that's too vague, as I need the exact level of skill.)

Could anybody help me out with this please? Thank you. :)

This plugin reads profession level through Lua. You can check out the source code.

Here is the relevant C# code:

private void SetMiningSkill()
    {
        CurrentMining = Lua.LuaDoString<int>(@"
        miningSkill = 1;

        for i = 1, GetNumSkillLines() do
		    local skillName, isHeader, isExpanded, skillRank, numTempPoints, skillModifier = GetSkillLineInfo(i)
		    if isHeader and not isExpanded then
			    ExpandSkillHeader(i);
            end
        end
        

	    for i = 1, GetNumSkillLines() do
		    local skillName, isHeader, isExpanded, skillRank, numTempPoints, skillModifier = GetSkillLineInfo(i)
		    if not isHeader and skillName == ""Mining"" then
			    miningSkill = skillRank
		    end
	    end
        ", "miningSkill");
    }

 

  • Author
12 minutes ago, Matenia said:

...This plugin reads profession level through Lua. You can check out the source code.

Here is the relevant C# code..

 

That's a bit more complicated than I thought it would be. Nontheless I'll use what's possible.

Thank you for your fast answer, I'll definitely try to use this for me. I sure hope there will be an easier solution in the future.

Have a nice day.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.