Jump to content
  • 0

At Ecall command


wOni

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  


- script at_ecall -1,{
OnInit:
bindatcmd("@ec","at_ecall::OnEcall");
bindatcmd("@ecall","at_ecall::OnEcall");
end;
OnEcall:
if( agit_flag || agit2_flag ) {dispbottom "Disable on WoE maps Good for PvP."; end;}
if( !getcharid(2) ){dispbottom "You are not apart of a guild."; end;}
if( getguildmasterid( getcharid(2) ) != getcharid(0) ){dispbottom "Can only be used by guild leader."; end;}
if( gettimetick(2) < getd(".guild"+ getcharid(2) +"") ){dispbottom "Command Failed. Still on cooldown."; end;}
progressbar "0x00FF00",5; //5 seconds is how the skill acts.
getmapxy(.@m$,.@x,.@y,0);
warpguild .@m$,.@x,.@y,getcharid(2);
setd ".guild"+ getcharid(2) +"", gettimetick(2) + 300000;
end;
}
 

 basic @ecall command

 
how i can disable this @ecall on WoE maps?
but can be use on PvP maps and normal maps.
 
THANKS
 
reedit use code box~
Edited by wOni
  • Upvote 1
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   10
  • Joined:  01/13/12
  • Last Seen:  

bad method


if(strcharinfo(3) == "gvgmapname") {dispbottom "Disable on WoE maps Good for PvP."; end;}
  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

Please use code box, and would be nice you let us know what the error was.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  

for multimap i do this if(getmapflag(strcharinfo(3),mf_gvg_castle)) :)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

how to make @ecall/ec cancel with open chatbox ? 

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