Jump to content
  • 0

How to Enabled Fire Pillar in Land Protection


Emonizer08

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

thank you its working have a nice day for sharing your knowledge bro.

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.

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.

×
×
  • Create New...