Custom Bombs :0

So I created these custom bombs but they only work when ONE player is in the level at once.

Script:

if (playerenters){
  toweapons Bombs;
  hidelocal;
}
if (weaponfired&&playerbombs>0){
  playerbombs--;
  this.testx=playerx+.5;
  this.testy=playery+1;
  this.testx+=vecx(playerdir)*2;
  this.testy+=vecy(playerdir)*2;
  putnpc nd_bomb.png,ndbomb.txt,this.testx,this.testy;
}

Txt File (ndbomb.txt):

if(created||wasthrown){ setimgpart nd_bomb.png,0,0,32,32; drawunderplayer; timeout=1.5; this.1=0; this.iindex=0; this.imgcount=0; canbecarried; } if(timeout){ if (this.1==1){ putexplosion2 1,2,x,y; destroy; }else if (this.1==0&&this.imgcount<1.5){ this.imgcount+=.05; if (this.iindex==1){ setimgpart nd_bomb.png,0,0,32,32; this.iindex=0; }else if (this.iindex==0){ setimgpart nd_bomb.png,32,0,32,32; this.iindex=1; } }else if (this.imgcount>=1.5)this.1=1; timeout=.05; } if(exploded){ putexplosion2 1,2,x,y; destroy; }

timereverywhere;

dayum you beat me D:

Can someone just tell me where I should put this timeverywhere;?

in the created block

I just want to ask, did you even script this?

[QUOTE=Kondie;63473]I just want to ask, [fake and gay question]?[/QUOTE]

It’s his responsibility there, son! Don’t screw him over. (-、-”)

i did NOT script this

It’s from the NW project.

Just altered it looks like, quite the bit.

It’s sexy! Someone please give me the fixed script :smiley:

O_o, or you could go fix it… we pretty much told you how…

for (this.i=0;this.i<weaponscount;this.i++){
  triggeraction 0,0,gr.deleteweapon,#w(this.i);
}

fixed

D: can someone please tell me where to put it! I am sooooooo confused!

Are you making a server out of everyone else’s scripts and images?

cough Lumina cough

BENJIRO, RENAME YOUR FUCKING BOOMERANG AND HAMMER IMAGES! YOU EDITTED THEM! THEY DO NOT NEED TO BE NAMED THE SAME AS SHINY’S!

Yeah, seriously rename edited images :confused:

[QUOTE=Spooon;63655]BENJIRO, RENAME YOUR FUCKING BOOMERANG AND HAMMER IMAGES! YOU EDITTED THEM! THEY DO NOT NEED TO BE NAMED THE SAME AS SHINY’S![/QUOTE]

i fixed that a long time ago. first the death threats, then the sniper assassin

No you didn’t. Went on Noddess a few days ago and my lvl1 hammer image was overwriten.

[QUOTE=Kondie;63653]cough Lumina cough[/QUOTE]

probably why lumina is cool