Jump to content
  • 0

Skill require


Question

7 answers to this question

Recommended Posts

Posted

how do i add a custom skill requirement on a certain skill?

ex.

to get level2 comet they need to finish a quest

you don't need source modif

just edit your comet max skill level to 1

db/pre-re/skill_db.txt
db/re/skill_db.txt


2213,11,8,2,0,0x2,15,5,-20,yes,0,0,0,magic,2,	WL_COMET,Comet

to

2213,11,8,2,0,0x2,15,1,-20,yes,0,0,0,magic,2,	WL_COMET,Comet

and than

you need build the NPC quest.

After bla bla finish the quest, this code will increase the comet to level 2

 

skill 2213,2,0; // Make the char get level 2 comet

that is only the main idea, you need some conditions check, to make your script nice

Posted

i did that, even changed the skill into a quest skill but it didn't work once player have extra skill points they will be able to increase its level anytime

Posted

client side

 

skillinfolist.lub

[SKID.WL_COMET] = {
		"WL_COMET";
		SkillName = "Comet",
		MaxLv = 1,
		SpAmount = { 480},
		bSeperateLv = true,
		AttackRange = { 11},
		_NeedSkillList = {
			{ SKID.WL_HELLINFERNO,3 }
		}
	},
Posted (edited)

I think it's client side limitation.

I saw this

http://rathena.org/wiki/Adding_new_skills

and there's a sentence says: To support the skill in the actual client, assuming you're using XRay (required to add new IDs for skills)

I'm messing around with

skillinfolist.lua, skilldescript.lua, skillinfolist.lua

and no luck.

Edited by jigsam
Posted

If we only change on the client, any player can change the files and be able to get the level 2, no ?

 

but he's already giving this: 

2213,11,8,2,0,0x2,15,1,-20,yes,0,0,0,magic,2,	WL_COMET,Comet

max lvl 1.

Posted

and yes, player could by pass it by editing lub.

make the lub encrypted to make ur player more harder to find.

tried to make client side crimson rock to level 10,

and i able to increase crimson to level 10, but when you click spend skill, only 5 will only the max.

i think its because the client.

 

Or if you want more complex source snippet, you need contact me in PM /no1

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.

  • Recently Browsing   0 members

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