Jump to content

Chenge combat options


HunterRS

Recommended Posts

Is there a way to change the combat options?

Right now I have the following code:

    	switch(style){
		case ATT:
			combatStyle = getWidgets().get(593, 3);
			break;
		case DEF:
			combatStyle = getWidgets().get(593, 15);
			break;
		case STR:
			combatStyle = getWidgets().get(593, 7);
			break;
		default:
			break;
    	}

after I set the combat style I'll interact with it

 

What I am looking for is 2 things:

1. Is there a simpler way to change style?

2. Is there a way to get the current style? (other than checking for what type of xp I get when I attack or checking the color)

  • Like 1
Link to comment
Share on other sites

1 hour ago, Apaec said:

As Kurisu said! Also, probably best to implement this as its own class

 

3 hours ago, Kurisu said:

get style by config value.

use widgets to change style

 

Where would I find the config id values?

EDIT: What do you guys even mean by config values because I think i miss understood :p

Edited by HunterRS
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...