Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-05-2002, 02:35 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
actionprojectile problem

i had this working at one point, now its bugged, dont know what happened.


well it was laying arrows perfect but now its not.
im using shoot, and i want it to lay an arrow when it hits the ground im using it like it said in newfeatures2002.txt
with :
NPC Code:

if (actionprojectile){
setplayerprop #c,#p(0)--#p(1)--#p(2)--#p(3);
if (strequals(#p(2),arrow)){
this.px=strtofloat(#p(0));
this.py=strtofloat(#p(1));
putnpc2 this.px,this.py,{
if (created){
setcharani arrowstuck,barrow0.png;
sleep 4;
destroy;
}
}
}
}




it lays the arrow too soon, and the arrow is half the distance from where the arrow finaly stopped going.
any ideas what theproblem is?
  #2  
Old 07-01-2002, 01:36 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Um it should be ok, may be put the npc at this.px-1.5,this.py-2 then its equal to what we do on graal2002.

A problem can be that the npcserver doesn't know the exact height of the spot, like you have updated the gmap. AFAIK the npcserver needs to be restarted to read the heights again into the memory
  #3  
Old 07-01-2002, 02:20 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
*drools*

You guys should get something for being able to learn all this stuff....
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
  #4  
Old 07-01-2002, 02:25 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: *drools*

Quote:
Originally posted by Legondary_MyTH
You guys should get something for being able to learn all this stuff....
it's not that hard to learn, serverside script came easy to me
  #5  
Old 07-01-2002, 03:14 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
YES

SSS is easy, but i have trouble memorizing all the syntax, cause ive only been doing it a month or so. Knowing all the commands is the hardest part...using them is easy
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #6  
Old 07-01-2002, 06:17 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: YES

Quote:
Originally posted by mikepg
SSS is easy, but i have trouble memorizing all the syntax, cause ive only been doing it a month or so. Knowing all the commands is the hardest part...using them is easy
knowing them are easy o.O I know a few that like only 10 other people know to since I have er1c tell me the 2k2 commands he knows of and stefan tells me when he adds some new commands
  #7  
Old 07-13-2002, 10:44 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
I can't ever get my hands on the knowledge of the scripts I can't use offline... theres some sort of conspiricy to prevent me from learning it or something, lol.
 


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:28 AM.


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