Jump to content
  • 0

Help make this command for GM only


Earnestinence

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  152
  • Reputation:   78
  • Joined:  06/13/15
  • Last Seen:  

Hi rathena community,

" please help me make this command for gm only and can be used on players by using #buff <char name>

GM:

can use this command to get buff for himself

can use this command to give a player buff

player: 

Can't use this command on him self 

can't use this command to give another player buff

Can't see this command in command list ( i mean @commands)

- script AtCmdHeal -1,{

OnInit:

bindatcmd "buff","AtCmdHeal::OnAtcommand";

end;

OnAtcommand:

percentheal 100,100;

skilleffect 384,0; sc_start SC_MELTDOWN,360000,5;

skilleffect 383,0; sc_start SC_WINDWALK,360000,5;

skilleffect 378,0; sc_start SC_EDP,360000,5;

skilleffect 465,0; sc_start SC_KAITE,360000,7;

skilleffect 464,0; sc_start SC_KAUPE,360000,3;

skilleffect 463,0; sc_start SC_KAAHI,360000,7;

skilleffect 462,0; sc_start SC_KAIZEL,360000,7;

skilleffect 8,0; sc_start SC_ENDURE,360000,10;

skilleffect 33,0; sc_start SC_ANGELUS,360000,10;

skilleffect 45,0; sc_start SC_CONCENTRATE,360000,10;

skilleffect 74,0; sc_start SC_MAGNIFICAT,360000,5;

skilleffect 75,0; sc_start SC_GLORIA,360000,5;

skilleffect 459,0; sc_start SC_ADRENALINE2,360000,1;

skilleffect 66,0; sc_start SC_IMPOSITIO,360000,5;

skilleffect 67,0; sc_start SC_SUFFRAGIUM,360000,3;

skilleffect 34,0; sc_start SC_BLESSING,360000,10;

skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;

skilleffect 112,0; sc_start SC_WEAPONPERFECTION,360000,10;

skilleffect 113,0; sc_start SC_OVERTHRUST,360000,5;

skilleffect 114,0; sc_start SC_MAXIMIZEPOWER,360000,5;

skilleffect 357,0; sc_start SC_CONCENTRATION,360000,5;

skilleffect 355,0; sc_start SC_AURABLADE,360000,5;

skilleffect 155,0; sc_start SC_LOUD,360000,1;

skilleffect 157,0; sc_start SC_ENERGYCOAT,360000,1;

sc_start SC_ASPDPOTION2,360000,0;

sc_start SC_STRFood,360000,10;

sc_start SC_AGIFood,360000,10;

sc_start SC_VITFood,360000,10;

sc_start SC_INTFood,360000,10;

sc_start SC_DEXFood,360000,10;

sc_start SC_LUKFood,360000,10;

sc_start SC_HitFood,1200000,30;

sc_start SC_FleeFood,1200000,30;

sc_start SC_BATKFood,1200000,10;

sc_start SC_MATKFood,120000,10;

skilleffect 380,0; sc_start SC_TRUESIGHT,360000,5;

skilleffect 361,0; sc_start SC_ASSUMPTIO,360000,5;

end;

}


 

Edited by Emistry
Please use CODEBOX.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try change to these

bindatcmd "buff","AtCmdHeal::OnAtcommand",99,99;
OnAtcommand:
if (.@atcmd_numparameters > 0) {
	.@name$ = implode(.@atcmd_parameters$, " ");
	if (!attachrid(getcharid(3, .@name$)))
		end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   15
  • Joined:  01/18/16
  • Last Seen:  

Try that:

 

CHANGE 

bindatcmd "buff","AtCmdHeal::OnAtcommand";

to 

bindatcmd "buff","AtCmdHeal::OnAtcommand",0,99;// You can change 99 for other groups, 99 means Administrators.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  152
  • Reputation:   78
  • Joined:  06/13/15
  • Last Seen:  

thanks both! ^_^

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