Jump to content
  • 0

Desperado on Land Protector


Question

Posted

I've tried on my server that if a Gunslinger is using Desperado skill on Land protector, enemies aren't affected by Desperado's skill..

How will I enable the Desperado skill to work on Land Protector's area?

11 answers to this question

Recommended Posts

Posted

Go to your ...db/(pre-re)re/skill_db and find Desperado:

516,0,8,4,-1,0x2,3,10,1,no,0,0,0,weapon,0, GS_DESPERADO,Desperado

Now, looking at this:

// 12 inf2 (skill information 2):
//	0x0001- quest skill
//	0x0002- npc skill
//	0x0004- wedding skill
//	0x0008- spirit skill
//	0x0010- guild skill
//	0x0020- song/dance
//	0x0040- ensemble skill
//	0x0080- trap
//	0x0100- skill that damages/targets yourself
//	0x0200- cannot be casted on self (if inf = 4, auto-select target skill)
//	0x0400- usable only on party-members (and enemies if skill is offensive)
//	0x0800- usable only on guild-mates (and enemies if skill is offensive)
//	0x1000- disable usage on enemies (for non-offensive skills).
//	0x2000- skill ignores land protector (e.g. arrow shower)
//	0x4000- chorus skill

I think you would wanna use this:

0x2000- skill ignores land protector (e.g. arrow shower)

Posted

I only have the following

12 inf2 (skill information 2):

// 0x0001- quest skill

// 0x0002- npc skill

// 0x0004- wedding skill

// 0x0008- spirit skill

// 0x0010- guild skill

// 0x0020- song/dance

// 0x0040- ensemble skill

// 0x0080- trap

// 0x0100- skill that damages/targets yourself

// 0x0200- cannot be casted on self (if inf = 4, auto-select target skill)

// 0x0400- usable only on party-members (and enemies if skill is offensive)

// 0x0800- usable only on guild-mates (and enemies if skill is offensive)

// 0x1000- disable usage on enemies (for non-offensive skills).

Posted

I only have the following

12 inf2 (skill information 2):

// 0x0001- quest skill

// 0x0002- npc skill

// 0x0004- wedding skill

// 0x0008- spirit skill

// 0x0010- guild skill

// 0x0020- song/dance

// 0x0040- ensemble skill

// 0x0080- trap

// 0x0100- skill that damages/targets yourself

// 0x0200- cannot be casted on self (if inf = 4, auto-select target skill)

// 0x0400- usable only on party-members (and enemies if skill is offensive)

// 0x0800- usable only on guild-mates (and enemies if skill is offensive)

// 0x1000- disable usage on enemies (for non-offensive skills).

That's cause you're probably using eAthena or 3CeAM =/.

Posted

Please test. It's just a copy of Ind's INF2_NOLP.

Go to src/map/skill.c:

Find:

if( !(skill_get_inf2(group->skill_id)&(INF2_SONG_DANCE|INF2_TRAP)) && map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) )

Change to:

if( !(skill_get_inf2(group->skill_id)&(INF2_SONG_DANCE|INF2_TRAP|INF2_NOLP)) && map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) )

Go to src/map/skill.h:

Find:

INF2_NO_ENEMY       = 0x1000,

Add after:

INF2_NOLP           = 0x2000,

Go to db/skill_db.txt:

Find:

516,0,8,4,-1,0x2,3,10,1,no,0,0,0,weapon,0,    GS_DESPERADO,Desperado

Change to:

516,0,8,4,-1,0x2,3,10,1,no,0,0x2000,0,weapon,0,    GS_DESPERADO,Desperado

Remember to recompile your emulator.

I can't test, ...your emulator is kinda old.

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