Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-08-2004, 03:30 PM
sparkers sparkers is offline
Yojumisto Online
sparkers's Avatar
Join Date: Jun 2004
Location: Why does anyone care about that?
Posts: 111
sparkers is on a distinguished road
Send a message via AIM to sparkers
I have a question as well.
I figured I'd put it here since it has to do with actionprojectile.
How come this wont work.
This is the NPC:
NPC Code:

if (actionprojectile&&strequals(#p(1),jackin)&&haswea pon(*Tavi)){setlevel2 net_sunriseinc-maincomp.nw,31,29;
}


and this is the weapon:
NPC Code:


//#CLIENTSIDE
if (weaponfired&&this.inuse==0) {disableweapons;
replaceani idle,tavi_idle;replaceani walk,tavi_walk;sleep .1;this.inuse=1;sleep .4;showtext 999,screenwidth-1,100,verdana,r,;changeimgvis 999,0;

}

if (keypressed&&keydown(4)&&this.inuse==1) {enableweapons;replaceani idle,idle;replaceani walk,walk;
sleep .1;this.inuse=0;sleep 2;showtext 999,screenwidth-1,0,verdana,r,;changeimgvis 999,4;
}

if (keypressed&&keydown(5)&&this.inuse==1) {


freezeplayer .4;
setani jackin,;
setshootparams jackin;
if (playerdir=0) {sleep .3;
shoot playerx,playery-.25,playerz,3.14/2,.1,1.1,swordy,;

if (playerdir=1) {sleep .3;
shoot playerx-.25,playery,playerz,3.14,.1,1.1,swordy,;
}
if (playerdir=2) {sleep .3;
shoot playerx,playery+.25,playerz,3.14*1.5,.1,1.1,swordy ,;
}
if (playerdir=3) {sleep .3;
shoot playerx+.25,playery,playerz,0,.1,1.1,swordy,;
}sleep .5;setani tavi_idle,;
}
}


but when you use it right by the npc
it wont change ur level.
Reply With Quote
 


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:27 PM.


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