Jump to content
  • 0

run or dead


grimmm

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  08/16/12
  • Last Seen:  

  hi rathena! How can I expand the area of effect? it's ten seconds and it gives time to scroll through many cells
Thank you!

 

 

	announce "Get out of there! You have 10 seconds to get away or you will die!",bc_yellow|bc_all;
	sleep2 10000;	
	.@area = getbattleflag("area_size");
	getmapxy .@map$, .@x, .@y, 0;
	.@dx = rand( -.@area, .@area );
	.@dy = rand( -.@area, .@area );
	if ( !checkcell( .@map$,(.@x+.@dx),(.@y+.@dy),cell_chkpass )) {
		unitkill getcharid(3);
	} else {			
		specialeffect(EF_SCREEN_QUAKE, AREA,getcharid(3));
		end;

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

You can just change the value of .@area variable, it seems it's using now the default sight range set in battle configs.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  08/16/12
  • Last Seen:  

Thank you for answering so quickly. I already tried as you say, but the range of action is not centered with the NPC

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  08/16/12
  • Last Seen:  

(solved) I think I approach it badly, solve the problem using "distance".
again, thank you very much for helping

 

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