Thread: New Menu?
View Single Post
  #9  
Old 03-30-2002, 04:48 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
ok ok! My script is turning out better than I thought x.x. Now I have a problem when it urna off the icon still follows u (I used hideimg)? Also how do I make it select weapons? Look!
NPC Code:
// NPC made by Rob Getashu
if (playerenters) {
toweapons -System NPC;
timeout=.1;
}
if (isweapon){
disableselectweapons;
}
if (timeout && isweapon) {
disableselectweapons;
if (this.active==0) {
hideimg 1;
}elseif (this.active==1) {
disabledefmovement;
if (this.mainmenu==1) {
}
}
}
q_Key();
timeout = 0.1;
function q_Key() {
if (keydown(9)) {
if (this.keys[9]==0) {
this.active = (this.active+1)%2;
if (this.active==0) {
enabledefmovement;
hideimg 1;
this.mainmenu = 0;
}else{
this.mainmenu = 1;
showimg 1,#W,playerx+.5,playery-2;
}
}}
}
if (keydown(1)&&strequals(#W,wbowi1.png)&&timeout) {
showimg 1,wbomb1.png,playerx+.5,playery-2;
play2 nextpage.wav,playerx,playery,1;
timeout=0.1;
}elseif (keydown(1)&&!strequals(#W,wbowi1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
}
if (keydown(3)&&strequals(#W,wbowi1.png)&&timeout) {
showimg 1,wbomb1.png,playerx+.5,playery-2;
play2 nextpage.wav,playerx,playery,1;
timeout=0.1;
}elseif (keydown(1)&&!strequals(#W,wbowi1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
}
if (keydown(1)&&strequals(#W,wbomb1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
play2 nextpage.wav,playerx,playery,1;
timeout=0.1;
}elseif (keydown(1)&&!strequals(#W,wbomb1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
}
if (keydown(3)&&strequals(#W,wbomb1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
play2 nextpage.wav,playerx,playery,1;
timeout=0.1;
}elseif (keydown(1)&&!strequals(#W,wbomb1.png)&&timeout) {
showimg 1,wbowi1.png,playerx+.5,playery-2;
}
if (keydown(5)&&strequals(#W,wbomb1.png)&&timeout) {
callweapon bomb,weaponfired;
enabledefmovement;
hideimg 1;
timeout=0.1;
}
if (keydown(5)&&strequals(#W,wbowi1.png)&&timeout) {
callweapon bow,weaponfired;
enabledefmovement;
hideimg 1;
timeout=0.1;
}
if (keydown(8)&&timeout) {
enabledefmovement;
hideimg 1;
timeout=0.1;
}
timeout=0.1;

__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..