View Single Post
  #8  
Old 09-20-2010, 07:02 AM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Got it XD

PHP Code:
thiso.weapontabs = {"Weapons"};
this.image "pa_mud-maceofthedead.png";   

function 
onActionServerside(option) {
  if (
temp.option == "onAttack") {
  
  
player.doAttack("Sword"62player.account);
}
  if (
temp.option == "Punch") {
   
player.doAttack("Punch"31player.account);
 }
}
//#CLIENTSIDE
function GraalControl.onKeyDown(codekey) {
    if (
key == "d" && this.equip == false && player.weapon == this.name) {
    
this.equip true;
    
player.attr[2] = "pa_mace-ofthedead.png";
    
replaceani("pa_scythewalk","pa_macewalk");
    
replaceani("pa_scytheidle","pa_maceidle");
    return;
    }
    if (
key == "s" && this.equip == true && player.weapon == this.name) {
    
this.onTimeout();
    return;
   }
    if (
key == "d" && this.equip == true && player.weapon == this) {
     
player.attr[2] = "";
     
this.equip false;
     return;
      }  
    if (
key == "s" && this.equip == false && player.weapon == this) {
    
triggerserver("weapon"this.name"onPunch");
    
setani("pa_punch""");
    
freezeplayer(0.25);
    
triggerserver("weapon"this.name"onPunch");
    }
   } 
    
  function 
onTimeOut() {
  if (
player.weapon != this) {
    return;
  }
  
setani("pa_maceattack"""); 
  
freezeplayer(0.25); 
  
triggerserver("weapon"this.name"onAttack");

__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote