• 0
Sign in to follow this  
Akaiger

Is it possible to use NeedSkillList for more than one job?

Question

Posted (edited)

I'm trying to add Remove Trap skill to the SA expanded tree, but for some reason, whenever I add its reqs, it causes the game to crash. It seems like it's a crash related to NeedSkillList not accepting a second parameter. Everything else is ok, when I remove the super novice lines(including commas) from that one skill, I get no error. Otherwise, the game seems to stop loading my character's skill tree once it hits the Remove Trap code, reporting the "bad argument #2, expected number, got nil" lua error, and the game resumes with its incomplete skilltree. Since the skill is used by Hunters skill, I can't change the _NeedSkillList, same with Rogues, I can't remove it from the NeedSkillList. Any thoughts on solving this situation? I think this maybe a syntax issue... but I can't tell.

EDIT: the bad argument error above happens at "c_AddNeedSkillList", and proceeds to happen again once I reload skill_db in-game

Quote
	[SKID.HT_REMOVETRAP] = {
		"HT_REMOVETRAP",
		SkillName = "Remove Trap",
		MaxLv = 1,
		SpAmount = { 5 },
		bSeperateLv = false,
		AttackRange = { 2 },
		_NeedSkillList = {
			{ SKID.HT_LANDMINE, 1 }
		},
		NeedSkillList = {
			[JOBID.JT_ROGUE] = {
				{ SKID.AC_DOUBLE, 5 }
			},
			[JOBID.JT_SUPERNOVICE2] = {
				{ SKID.HT_ANKLESNARE, 1}
			}
		},
	},

 

 

Edited by Akaiger
info

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Posted (edited)
19 hours ago, Naruto said:

well if you cant see that then your a retard 

Why are you insulting someone who is legit asking about how to do something? I just asked that because your answer was off-topic. What you said isn't going to help me do the client edit, you didn't have to say anything about how the skill tree progression works because it's not an proper answer. You just came here and replied to my question with a pointless choice of words. Don't do that, if you're not trying to help.

EDIT:

On 10/7/2019 at 9:52 PM, JohnnyPlayy said:
	[SKID.HT_REMOVETRAP] = {
		"HT_REMOVETRAP",
		SkillName = "Remover armadilha",
		MaxLv = 1,
		SpAmount = {5},
		bSeperateLv = false,
		AttackRange = {2},
		_NeedSkillList = {
			{SKID.HT_LANDMINE, 1}
		}
		NeedSkillList = {
			[JOBID.JT_ROGUE] = {
				{SKID.AC_DOUBLE, 5}
			}
			[JOBID.JT_SUPERNOVICE2] = {
				{SKID.HT_ANKLESNARE, 1}
			}
		}
	},

Looks like there is one more comma

 

Ok, looks like your script removed three commas, I was supposed only to remove the last one(which I didn't see, beforehand), ty anyway. Solved.

Edited by Akaiger
Edit I found out the error

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
	[SKID.HT_REMOVETRAP] = {
		"HT_REMOVETRAP",
		SkillName = "Remover armadilha",
		MaxLv = 1,
		SpAmount = {5},
		bSeperateLv = false,
		AttackRange = {2},
		_NeedSkillList = {
			{SKID.HT_LANDMINE, 1}
		}
		NeedSkillList = {
			[JOBID.JT_ROGUE] = {
				{SKID.AC_DOUBLE, 5}
			}
			[JOBID.JT_SUPERNOVICE2] = {
				{SKID.HT_ANKLESNARE, 1}
			}
		}
	},

Looks like there is one more comma

 

Edited by JohnnyPlayy

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

maybe but heres a fact

 

super novice cant use bows but needs all vultures eyes and owls eye to unlock attention concentrate

Edited by Naruto

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
15 hours ago, JohnnyPlayy said:
	[SKID.HT_REMOVETRAP] = {
		"HT_REMOVETRAP",
		SkillName = "Remover armadilha",
		MaxLv = 1,
		SpAmount = {5},
		bSeperateLv = false,
		AttackRange = {2},
		_NeedSkillList = {
			{SKID.HT_LANDMINE, 1}
		}
		NeedSkillList = {
			[JOBID.JT_ROGUE] = {
				{SKID.AC_DOUBLE, 5}
			}
			[JOBID.JT_SUPERNOVICE2] = {
				{SKID.HT_ANKLESNARE, 1}
			}
		}
	},

Looks like there is one more comma

 

Removing the comma between the requirements in NeedSkillList causes an lua error, " expected (to close '{' at line 1327) near '[' "
Any other thoughts?
Edit: same with removing the comma between the _NeedSkillList and NeedSkillList

20 minutes ago, Naruto said:

maybe but heres a fact

 

super novice cant use bows but needs all vultures eyes and owls eye to unlock attention concentrate

How is that related to what I asked?

Edited by Akaiger

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, Akaiger said:

Removing the comma between the requirements in NeedSkillList causes an lua error, " expected (to close '{' at line 1327) near '[' "
Any other thoughts?
Edit: same with removing the comma between the _NeedSkillList and NeedSkillList

How is that related to what I asked?

well if you cant see that then your a retard 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

double post, delete please

Edited by Akaiger
double post

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, Akaiger said:

Why are you insulting someone who is legit asking about how to do something? I just asked that because your answer was off-topic. What you said isn't going to help me do the client edit, you didn't have to say anything about how the skill tree progression works because it's not an proper answer. You just came here and replied to my question with a pointless choice of words. Don't do that, if you're not trying to help.

EDIT:

Ok, looks like your script removed three commas, I was supposed only to remove the last one(which I didn't see, beforehand), ty anyway. Solved.

well i was suggesting you werent able to do it, but you were stuck on your commas? thats the most basic error...

so before you start making up hocus pocus modifications to your client,learn how to count your comas 

Share this post


Link to post
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.

Guest
Answer this question...

×   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.

Loading...
Sign in to follow this