Jump to content
  • 0

@armor


bartoaldo

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

speaks guys ... I would like some help from you about this my new command that I am creating @armor ... to wanting when I use command "@armor Ghostring" he can give the status of armor.

 

-	script	atcmd_armor#main	-1,{
OnInit:
	bindatcmd "armor", "atcmd_armor#main::OnStart";
	end;


L_Help:
	dispbottom "Build it's:";
	dispbottom "Available Stats: Ghostring, Holy";
	return;


OnStart:
	
	if (!getarraysize(.@atcmd_parameters$)) {
		callsub L_Help;
		end;
	}
	
	.@command$ = strtolower(.@atcmd_parameters$[0]);
	if (.@command$ == "ghostring") {
		dispbottom "Build it's: Ghostring";
		unequip EQI_ARMOR;
		equip 15008;
		if(isequipped(15008)) { bonus bDefEle,Ele_Ghost; bonus bHPrecovRate,-25; bonus bStr,55; bonus bVit,24; bonus bDex,15; bonus bLuk,15; bonus bInt,20; }
		
		end;
		
	} else if (.@command$ == "holy") {
		dispbottom "Build it's: Holy";
		unequip EQI_ARMOR;
		equip 15008;
		end;
	}
}
Edited by bartoaldo
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

Not sure with what you want here.

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