gs2 to gs1

Well. i got this script. i’m not good in gs2, so i can’t translate it to gs1. could someone help me translating it to gs1? thanks!

[CODE]//#CLIENTSIDE
// LOL I RESCRIPTED THIS - KINDA? -
function onWeaponFired()
{
if (player.mp >= 8)
{
freezeplayer(1.5);

player.sprite = 24;

// player.chat = “KAMEHAMEHAAAA!!!”;
player.chat = “KAMEHAMEHAA-DISABLEDNOOB”;
// onDoFire();
}
}
function onDoFire()
{
if(playerdir=0){putexplosion 1,playerx+.5,playery-4;
putexplosion 1,playerx+.5,playery-5;
putexplosion 1,playerx+.5,playery-6;
putexplosion 1,playerx+.5,playery-7;
putexplosion 1,playerx+.5,playery-8;
putexplosion 1,playerx+.5,playery-9;
putexplosion 1,playerx+.5,playery-10;
putexplosion 1,playerx+.5,playery-11;
putexplosion 1,playerx+.5,playery-12;
putexplosion 1,playerx+.5,playery-13;
putexplosion 1,playerx+.5,playery-14;
putexplosion 1,playerx+.5,playery-15;
putexplosion 1,playerx+.5,playery-16;
putexplosion 1,playerx+.5,playery-17;
putexplosion 1,playerx+.5,playery-18;
putexplosion 1,playerx+.5,playery-19;
putexplosion 1,playerx+.5,playery-20;
putexplosion 1,playerx+.5,playery-21;
putexplosion 1,playerx+.5,playery-22;
putexplosion 1,playerx+.5,playery-23;
putexplosion 1,playerx+.5,playery-24;
putexplosion 1,playerx+.5,playery-25;
putexplosion 1,playerx+.5,playery-26;
putexplosion 1,playerx+.5,playery-27;
putexplosion 1,playerx+.5,playery-28;
putexplosion 1,playerx+.5,playery-29;
putexplosion 1,playerx+.5,playery-30;
}
if(playerdir=1){putexplosion 1,playerx-3.5,playery+.5;
putexplosion 1,playerx-4.5,playery+.5;
putexplosion 1,playerx-5.5,playery+.5;
putexplosion 1,playerx-6.5,playery+.5;
putexplosion 1,playerx-7.5,playery+.5;
putexplosion 1,playerx-8.5,playery+.5;
putexplosion 1,playerx-9.5,playery+.5;
putexplosion 1,playerx-10.5,playery+.5;
putexplosion 1,playerx-11.5,playery+.5;
putexplosion 1,playerx-12.5,playery+.5;
putexplosion 1,playerx-13.5,playery+.5;
putexplosion 1,playerx-14.5,playery+.5;
putexplosion 1,playerx-15.5,playery+.5;
putexplosion 1,playerx-16.5,playery+.5;
putexplosion 1,playerx-17.5,playery+.5;
putexplosion 1,playerx-18.5,playery+.5;
putexplosion 1,playerx-19.5,playery+.5;
putexplosion 1,playerx-20.5,playery+.5;
putexplosion 1,playerx-21.5,playery+.5;
putexplosion 1,playerx-22.5,playery+.5;
putexplosion 1,playerx-23.5,playery+.5;
putexplosion 1,playerx-24.5,playery+.5;
putexplosion 1,playerx-25.5,playery+.5;
putexplosion 1,playerx-26.5,playery+.5;
putexplosion 1,playerx-27.5,playery+.5;
putexplosion 1,playerx-28.5,playery+.5;
putexplosion 1,playerx-29.5,playery+.5;
putexplosion 1,playerx-30.5,playery+.5;
putexplosion 1,playerx-31.5,playery+.5;
putexplosion 1,playerx-32.5,playery+.5;
putexplosion 1,playerx-33.5,playery+.5;
putexplosion 1,playerx-34.5,playery+.5;
putexplosion 1,playerx-35.5,playery+.5;
putexplosion 1,playerx-36.5,playery+.5;
putexplosion 1,playerx-37.5,playery+.5;
putexplosion 1,playerx-38.5,playery+.5;
putexplosion 1,playerx-39.5,playery+.5;
putexplosion 1,playerx-40.5,playery+.5;
putexplosion 1,playerx-41.5,playery+.5;
putexplosion 1,playerx-42.5,playery+.5;
putexplosion 1,playerx-43.5,playery+.5;
putexplosion 1,playerx-44.5,playery+.5;
putexplosion 1,playerx-45.5,playery+.5;
}
if(playerdir=2){putexplosion 1,playerx+.5,playery+5;
putexplosion 1,playerx+.5,playery+6;
putexplosion 1,playerx+.5,playery+7;
putexplosion 1,playerx+.5,playery+8;
putexplosion 1,playerx+.5,playery+9;
putexplosion 1,playerx+.5,playery+10;
putexplosion 1,playerx+.5,playery+11;
putexplosion 1,playerx+.5,playery+12;
putexplosion 1,playerx+.5,playery+13;
putexplosion 1,playerx+.5,playery+14;
putexplosion 1,playerx+.5,playery+15;
putexplosion 1,playerx+.5,playery+16;
putexplosion 1,playerx+.5,playery+17;
putexplosion 1,playerx+.5,playery+18;
putexplosion 1,playerx+.5,playery+19;
putexplosion 1,playerx+.5,playery+20;
putexplosion 1,playerx+.5,playery+21;
putexplosion 1,playerx+.5,playery+22;
putexplosion 1,playerx+.5,playery+23;
putexplosion 1,playerx+.5,playery+24;
putexplosion 1,playerx+.5,playery+25;
putexplosion 1,playerx+.5,playery+26;
putexplosion 1,playerx+.5,playery+27;
putexplosion 1,playerx+.5,playery+28;
putexplosion 1,playerx+.5,playery+29;
putexplosion 1,playerx+.5,playery+30;
putexplosion 1,playerx+.5,playery+31;
}
if(playerdir=3){putexplosion 1,playerx+4,playery+.5;
putexplosion 1,playerx+5,playery+.5;
putexplosion 1,playerx+6,playery+.5;
putexplosion 1,playerx+7,playery+.5;
putexplosion 1,playerx+8,playery+.5;
putexplosion 1,playerx+9,playery+.5;
putexplosion 1,playerx+10,playery+.5;
putexplosion 1,playerx+11,playery+.5;
putexplosion 1,playerx+12,playery+.5;
putexplosion 1,playerx+13,playery+.5;
putexplosion 1,playerx+14,playery+.5;
putexplosion 1,playerx+15,playery+.5;
putexplosion 1,playerx+16,playery+.5;
putexplosion 1,playerx+17,playery+.5;
putexplosion 1,playerx+18,playery+.5;
putexplosion 1,playerx+19,playery+.5;
putexplosion 1,playerx+20,playery+.5;
putexplosion 1,playerx+21,playery+.5;
putexplosion 1,playerx+22,playery+.5;
putexplosion 1,playerx+23,playery+.5;
putexplosion 1,playerx+24,playery+.5;
putexplosion 1,playerx+25,playery+.5;
putexplosion 1,playerx+26,playery+.5;
putexplosion 1,playerx+27,playery+.5;
putexplosion 1,playerx+28,playery+.5;
putexplosion 1,playerx+29,playery+.5;
putexplosion 1,playerx+30,playery+.5;
putexplosion 1,playerx+31,playery+.5;
putexplosion 1,playerx+32,playery+.5;
putexplosion 1,playerx+33,playery+.5;
putexplosion 1,playerx+34,playery+.5;
putexplosion 1,playerx+35,playery+.5;
putexplosion 1,playerx+36,playery+.5;
putexplosion 1,playerx+37,playery+.5;
putexplosion 1,playerx+38,playery+.5;
putexplosion 1,playerx+39,playery+.5;
putexplosion 1,playerx+40,playery+.5;
putexplosion 1,playerx+41,playery+.5;
putexplosion 1,playerx+42,playery+.5;
putexplosion 1,playerx+43,playery+.5;
putexplosion 1,playerx+44,playery+.5;
putexplosion 1,playerx+45,playery+.5;
}
}
[/CODE]

How do you want it to work? Do you want it to shoot when the player says “Kamaaheheahha”?

if (weaponfired) {
  if (playermp >= 8) {
    freezeplayer 1.5;
    playersprite = 24;
    setplayerprop #c,KAMEHAMEHAAAA!!!;
    for (i=0;i<26;i++) {
      if (playerdir == 0) putexplosion 1,playerx+0.5,playery-(4+i);
      if (playerdir == 1) putexplosion 1,playerx-(3.5+i),playery+0.5;
      if (playerdir == 2) putexplosion 1,playerx+0.5,playery+(5+i);
      if (playerdir == 3) putexplosion 1,playerx+(4+i),playery+0.5;
    }
    playermp -= 8;
  }
}

Tafuckin’da

woah. thanks!

remove all periods that’s not a cord and take out most of the ()'s , replace all functions with if( unless its a custom function defined as thisisthefunctionname(); . all the player stuff is now player.whatever instead of playerwhatever .

there, i just taught you how to fish .

http://forums.graalonline.com/forums/showthread.php?t=134266782

What I find funny is it was a crap weapon to start off with and even more poorly coded. Shit’s funny these days.