View Single Post
  #1  
Old 12-23-2001, 01:03 PM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
Question Help on a weapon

Can someone help me on this script?


// NPC made by Jeice Lighthawk
if (playerenters) {
toweapons *Giru Shoot;
replaceani shoot,giru_shoot;
setstring girushot,#v(strtofloat(#s(girushot))+50);
timeout=0.05;
}
while (isweapon) {
timeout=0.05;
}
if (isweapon) {
this.pos = {screenwidth-125,65};
this.girushot = ((strtofloat(#s(girushot))/50)*10);
showimg 1,girubeam.gif,this.pos[0],this.pos[1];
changeimgvis 1, 4;
showimg 2,girubeam2.gif,this.pos[0],this.pos[1];
changeimgpart 2,0,0,40,this.girushot;
changeimgvis 2, 4;
timeout=0.05;
}
if (weaponfired&&timeout) {
setstring girushot,#v(strtofloat(#s(girushot))-10);
timeout=0.05;
}
if (timeout&&strtofloat(#s(girushot))<50) {
setstring girushot,#v(strtofloat(#s(girushot))+1);
sleep 1;
timeout=0.05;
}
if (weaponfired&&playerdir=0&&strtofloat(#s(levelup)) >0&&timeout) {
shootnuke;
shootfireblast;
timeout=0.05;
}
if (weaponfired&&playerdir=3&&strtofloat(#s(levelup)) >0&&timeout) {
shootnuke right;
shootfireblast right;
timeout=0.05;
}
if (weaponfired&&playerdir=2&&strtofloat(#s(levelup)) >0&&timeout) {
shootnuke down;
shootfireblast down;
timeout=0.05;
}
if (weaponfired&&playerdir=1&&strtofloat(#s(levelup)) >0&&timeout) {
shootnuke left;
shootfireblast left;
timeout=0.05;
}
timeout=0.05;
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote