MAH BOW SCRIPT :D

I NEED SUM HELP WIF THIS BOW SCRIPT CUZ IT AINT WORKIN FOR ME

// NPC made by benjiro
if (playertouchsme) {
  toweapons Bows/Wooden Bow;
}
if(weaponfired){
  if (this.inuse=0){
    this.inuse=1;
    this.inuse=1;
    replaceani idle,noddess_bow-idle;
    replaceani walk,noddess_bow-walk;
    replaceani shoot,noddess_bow-shoot;
    setplayerprop #P2,noddess_woodenbow.png;
    setplayerprop #P3,noddess_woodenbow.png;
  }
  if(playerarrows >=1 && playerdir==0){
    playerarrows -= 1;
    dir=0,;
    setani noddess_bow-shoot,;
    shootarrow 0;
  }
  else if(playerarrows >=1 && playerdir==1){
    playerarrows -= 1;
    dir=1,;
    setani noddess_bow-shoot,;
    shootarrow 1;
  }
  else if(playerarrows >=1 && playerdir==2){
    playerarrows -= 1;
    dir=2;
    setani noddess_bow-shoot,;
    shootarrow 2;
  }
}
else if(playerarrows >=1 && playerdir==3){
  playerarrows -= 1;
  dir=3;
  if(playerarrows >= 1){
    setani noddess_bow-shoot,;
    shootarrow 3;
  }
}
else {
  this.inuse=0;
  replaceani shoot,shoot;
  replaceani idle,idle;
  replaceani walk,walk;
}

[QUOTE=benjiro;60744]I NEED SUM HELP WIF THIS BOW SCRIPT CUZ IT AINT WORKIN FOR ME[/QUOTE]

IT’Z Teh playerdarts, NOT TeH playerarrows!1
Also, someone tell him how to make customized playerammo JUTS IN CAES!

thanks for the help… well when i switch a weapon (like to a zod sword) everything goes d;klsjgdsd
;ogv’;ads
sgdf

[QUOTE=benjiro;60752]
thanks for the help… well when i switch a weapon (like to a zod sword) everything goes d;klsjgdsd
;ogv’;ads
sgdf

[/QUOTE]

Which means they hate the zodiac gani with a passion! It’s like hating DragonBall Z with a passion too! …freakin’ super saiyan plot was ruined by overusage!
This may be only a bit too much to ask but, can you try using the sword of Graal Kingdoms? Only the classic graalians should wield it.
Also, attachment!

I MUST CREATE A NEW SCRIPT!
I MUST ANNOY SOMEONE TO CREATE THE SCRIPT FOR ME!

Oh wait, you mean a scripting issues? Tricxta knows, he has the power of triggerparams/triggeraction on his fingertips.
edit: Oh err, yeah! (°、°;)

IKR :smiley:

you can get rid of all those if else and do like

dir=playerdir,;
shootarrow #v(playerdir);

something like that i guess.

Well if I was you you was me o.0 I would make use a custom arrow count and make a new script and you would thank me, so lets begin:

if (playerenters && !isweapon)toweapons somebow;

if (weaponfired){
  if (this.inuse==0){
    this.inuse=1;
    replaceani idle,noddess_bow-idle;
    replaceani walk,noddess_bow-walk;
    setani noddess_bow-idle,;
    }
  else {
    this.inuse=0;
    replaceani idle,idle;
    replaceani walk,walk;
  }
}

if (keypressed && keydown2(keycode(s),true) && this.inuse==1 && strtofloat(#s(client.arrows))>1 && !playerswimming){
  setstring client.arrows,#v(strtofloat(#s(client.arrows))-1);
  setani noddess_bow-shoot,;
  shootarrow playerdir;
}

not tested but should work, have fun now :slight_smile:
d=equip/unequip s=shoot(only while equipped!)

[QUOTE=tricxta;60760]
Well if I was you you was me o.0 I would make use a custom arrow count and make a new script and you would thank me, so lets begin:
[tehcoed]
not tested but should work, have fun now :slight_smile:
d=equip/unequip s=shoot(only while equipped!)
[/QUOTE]

this.inb4noddess=1;

[QUOTE=tricxta;60760]
Well if I was you you was me o.0 I would make use a custom arrow count and make a new script and you would thank me, so lets begin:

if (playerenters && !isweapon)toweapons somebow;

if (weaponfired){
  if (this.inuse==0){
    this.inuse=1;
    replaceani idle,noddess_bow-idle;
    replaceani walk,noddess_bow-walk;
    setani noddess_bow-idle,;
    }
  else {
    this.inuse=0;
    replaceani idle,idle;
    replaceani walk,walk;
  }
}

if (keypressed && keydown2(keycode(s),true) && this.inuse==1 && strtofloat(#s(client.arrows))>1 && !playerswimming){
  setstring client.arrows,#v(strtofloat(#s(client.arrows))-1);
  setani noddess_bow-shoot,;
  shootarrow playerdir;
}

not tested but should work, have fun now :slight_smile:
d=equip/unequip s=shoot(only while equipped!)
[/QUOTE]

MY HERO <3

:open_mouth: you only copied the script didnt you ben… you didnt bother thanking me. At least someone appreciates the time I dedicate to helping you. Oh well from now on im only giving you clues using the same encryption as beholders room system

[QUOTE=tricxta;60766]>:O you only copied the script didnt you ben… you didnt bother thanking me. At least someone appreciates the time I dedicate to helping you. Oh well from now on im only giving you clues using the same encryption as beholders room system[/QUOTE]
dont be sad little boi!!! i had to log of my computer when i said that so i couldnt thanks :smiley:

oh im little now, ok then im gunna give you little help!

He called you a little boy Tricxta. :open_mouth:

FML.

Little-hey, Little-ho, Little-high, Little-low.

Little people can do big things

THIS SCRIPT DOESNT WORK… FML… NOW I NEED A CUSTOM HEALTH SYSTEM…

client.strings. There your set

[QUOTE=Kondie;60771]He called you a little boy Tricxta. :O[/QUOTE]

When was he ever > 12