Jump to content

Question

Posted (edited)

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

1 answer to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...