Jump to content
  • 0

How to Enabled Fire Pillar in Land Protection


Question

Posted (edited)

good day guys i want to know how to enabled fire pillar in land protector, right now my land protector cancel the effect of fire pillar , does any one here can help me? thank you in advance

 

 

 

Edited by sader1992
remove the photos

2 answers to this question

Recommended Posts

  • 1
Posted

db/import/skill_db.txt and paste:

80,9,8,2,3,0x20,1:1:1:1:1:2:2:2:2:2:2,10,3:4:5:6:7:8:9:10:11:12,yes,0,0x2000,5,magic,0,0x1,	WZ_FIREPILLAR,Fire Pillar

src/map/skill.cpp

Find this line:

	case WZ_FIREPILLAR:
		if( map_getcell(src->m, x, y, CELL_CHKLANDPROTECTOR) )
			return NULL;
		if((flag&1)!=0)
			limit=1000;
		val1=skill_lv+2;
		break;

And comment below

	case WZ_FIREPILLAR:
		//if( map_getcell(src->m, x, y, CELL_CHKLANDPROTECTOR) )
			//return NULL;
		if((flag&1)!=0)
			limit=1000;
		val1=skill_lv+2;
		break;
Search this:

			//It deletes everything except traps and barriers
			if ((!(skill_get_inf2(unit->group->skill_id)&(INF2_TRAP)) && !(skill_get_inf3(unit->group->skill_id)&(INF3_NOLP))) || unit->group->skill_id == WZ_FIREPILLAR || unit->group->skill_id == GN_HELLS_PLANT) {
				if (skill_get_unit_flag(unit->group->skill_id)&UF_RANGEDSINGLEUNIT) {
					if (unit->val2&UF_RANGEDSINGLEUNIT)
						skill_delunitgroup(unit->group);
				} else
					skill_delunit(unit);
				return 1;
			}
			break;

and remove: unit->group->skill_id == WZ_FIREPILLAR ||
  
			//It deletes everything except traps and barriers
			if ((!(skill_get_inf2(unit->group->skill_id)&(INF2_TRAP)) && !(skill_get_inf3(unit->group->skill_id)&(INF3_NOLP))) || unit->group->skill_id == GN_HELLS_PLANT) {
				if (skill_get_unit_flag(unit->group->skill_id)&UF_RANGEDSINGLEUNIT) {
					if (unit->val2&UF_RANGEDSINGLEUNIT)
						skill_delunitgroup(unit->group);
				} else
					skill_delunit(unit);
				return 1;
			}
			break;

Then recompile your server, i've tested by myself. Hope it helps.

  • Upvote 1

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