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 10-19-2005, 09:28 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
strange bow thingy

Okay, If a person is in a level with baddies that shoot stones, arrows, etc, the player's arrows reduce, I've looked through my own NPCs and I have no idea where this came from. Also, if you use this weapon, two arrows are taken away (this is my replacement for the bow, because i thought that it might be the problem, but, wrong. What could be doing this? (Note, this is not a problem with bombs, just arrows)
My bow:
NPC Code:
if(actionserverside){
if(strequals(#p(0),darts)){
playerdarts=playerdarts-1;
// ^ ^I know the right way to do this, I was just expirementing a bit
}
}
//#CLIENTSIDE
if(weaponfired){
triggeraction 0,0,serverside,*Bow,darts;
if(playerdarts>0){
setani shoot,;
if(playerdir==0){
shootarrow up;
}
if(playerdir==2){
shootarrow down;
}
if(playerdir==1){
shootarrow left;
}
if(playerdir==3){
shootarrow right;
}
}
}

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 03:57 AM.


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