Thread: Post Elite NPCs
View Single Post
  #17  
Old 08-24-2001, 12:48 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
npc

i feel so sorry you have to ask for scripts so i'll give you a flying NPC so you can make it an abusive staff NPC.... ....

//NPC Made by Nyght (FAQ)
if (playertouchsme) {
timeout = 0.05;
toweapons Fly;
set onduty;
}

if (timeout || playerenters || isweapon) {
timeout = 0.05;
}
if (isweapon) {
if (strequals(#c,Fly on)) {
if (onduty) {
if (this.action=0) {
this.action = 1;
setplayerprop #c,You Belived you coud fly !;
}else{
setplayerprop #c,You are already flying dummy !;
}
}else{
setplayerprop #c,You aren't onduty !;
}
}
if (strequals(#c,fly off)) {
if (this.action=1) {
this.action = 0;
setplayerprop #c,You lost your happy thought!;
}else{
setplayerprop #c,Flying has been off !;
}
}
if (timeout) {
if (this.action=1 && !onduty) {
this.action = 0;
setplayerprop #c,Flying is off cause your NOT on duty !;
}
if (this.action=1) {
playersprite = 34;
if (keydown(0)) {
playery = playery-(0.25);
}
if (keydown(1)) {
playerx = playerx-(0.25);
}
if (keydown(2)) {
playery = playery+(0.25);
}
if (keydown(3)) {
playerx = playerx+(0.25);
}
}
}
}
Enjoy it ....
Reply With Quote