Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #28  
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.