Thread: Problem -.-
View Single Post
  #11  
Old 01-15-2004, 05:19 PM
TheStivi TheStivi is offline
Registered User
Join Date: Sep 2002
Location: Germany - NRW
Posts: 78
TheStivi is on a distinguished road
Send a message via ICQ to TheStivi Send a message via AIM to TheStivi
So *g*
****On Order of Loriel i edited the script on the 'must to post' ...
I just give you the complete script :

NPC Code:

...
setplayerprop #P2,aol_arms2.png;
setplayerprop #P3,aol_legs2.png;
setplayerprop #P4,aol_head2.png;
setplayerprop #P5,aol_body2.png;
...
disabledefmovement;
...
this.walk=0;
this.newx=0;
this.newy=0;
//Keycheck
for (i=0;i<4;i++){
if (keydown(i)){set();}
}
//Onwall
...
//Show Chattext
showtext 1,x+this.newx,y-3+this.newy,Verdana,cb,#s(this.text);
changeimgzoom 1,0.7;
changeimgvis 0,1;
//Ask if can setgani
if (this.setgani=0){
if (this.power=6){
triggeraction playerx+vecx(playerdir)*2,playery+vecy(playerdir)* 2,hit,;
this.power=0;
}
if (keydown(4)){
freezeplayer 0.2;
this.set=0;
if (strequals(#s(client.pregani),)){
this.power++;
}
if (this.set2=0){setani aol_#s(client.pregani)shoot,;this.set2=1;}
}
else{
this.power=0;
if (this.set2=1) setani aol_#s(client.pregani)idle,;
this.set2=0;
if (this.walk=1){
if (this.set=0){
setani aol_#s(client.pregani)walk,;this.set=1
}
if (!strequals(#m,aol_#s(client.pregani)walk)){
setani aol_#s(client.pregani)walk,;this.set=1
}
}
else{
setani aol_#s(client.pregani)idle,;this.set=0;
}
}
}
...
function set(){
playerdir=i;
this.newx+=vecx(i)*0.5;
this.newy+=vecy(i)*0.5;
this.walk=1;
}



I hope it can help you to help me =)

Dont Copy for your server its illegal and wont help us all
__________________
Old Staff Jobs :
Graal 2002 : Gani Maker || Doomsday : Developer || Terra : Developer || Zenkou : NAT || Anystria : Manager || Galeon : Co Manager || Kabruriki : NAT Chief || Archaic : NAT || Age of Legends : Manager

Last edited by TheStivi; 01-15-2004 at 05:30 PM..
Reply With Quote