View Single Post
  #59  
Old 09-07-2003, 07:38 AM
Gravis2k Gravis2k is offline
Registered User
Join Date: Jun 2003
Location: AR
Posts: 52
Gravis2k is on a distinguished road
Send a message via ICQ to Gravis2k Send a message via AIM to Gravis2k Send a message via Yahoo to Gravis2k
Flying npc

Server: Laysuf
Account: Gravis2k
Position: Admin
NPC Server? True
NPC: I need a npc that when transformed into a bird and flying it wont stop when the button is let go but glide slowly to a stop also to be able to fly over walls and buildings (which could be turned on and off by flags) and to have a higher speed then normal walking
Date: When ever, i'm in no rush for it.

Below i will paste what i have done so far which is setting the gani's to each ani and the land and fly options, please feel feel to make this better if you like

NPC Code:
//#CLIENTSIDE

if (weaponfired){
if (this.on==0) {
playerdir=2;
setani birdtransform,;
replaceani idle,birdidle1;
replaceani sword,birdattack3;
replaceani walk,birdidle1;
replaceani sit,birdidle1;
replaceani pull,birdidle1;
replaceani push,birdidle1;
replaceani swim,birdidle1;
this.on=1;
}
else if (this.on==1){
playerdir=2;
setani birdreform1,;
replaceani idle,idle;
replaceani sword,sword;
replaceani walk,walk;
replaceani sit,sit;
replaceani pull,pull;
replaceani push,push;
replaceani swim,swim;
this.on=0;
}
}


if (playerchats){
if (strequals(#c,land)){
setplayerprop #c,:escends slowly::;
setani birdland2,;
replaceani sit,birdsit1;
disabledefmovement;
}


else if (strequals(#c,fly)){
setplayerprop #c,::Rises rapidly into the air::;
setani birdfly5,;
replaceani sit,birdidle;
enabledefmovement;
}
}

__________________
My first roll on Kingdoms
Reply With Quote