Jump to content
  • 0

@autoattack


Elsa Mist

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

Hello rA,

 

I need a script if posible that we can prevent player use @autoattack while theyre vending.

The example situation is like player need to farm empty bottle and they just create a vending in the middle of the egg at anthell.

 

If any one could help this it really be much appreciate!

 

Sorry for my bad english...  /sob 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

It might be easier to just disable vending on those maps?

anthell	mapflag	novending

This might work though...

-	script	AT_Command	-,{
OnAT_Command:
	if( !checkvending() )
		atcommand "@autoattack";
	else
		message strcharinfo(0), "This command can't be used while vending.";
	end;
	
OnInit:
	bindatcmd "autoattack","AT_Command::OnAT_Command";
}
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

Thank Skorm for the reply...

 

Yeah, i know mapflag could prevent this, but there is a ton of map to mapflag. case that ive stated above is just an example.

 

btw, i will try the script  /no1 


 

It might be easier to just disable vending on those maps?

anthell	mapflag	novending

This might work though...

-	script	AT_Command	-,{
OnAT_Command:
	if( !checkvending() )
		atcommand "@autoattack";
	else
		message strcharinfo(0), "This command can't be used while vending.";
	end;
	
OnInit:
	bindatcmd "autoattack","AT_Command::OnAT_Command";
}

 

 

its working!!! +1

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