Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   actionprojectile problem (https://forums.graalonline.com/forums/showthread.php?t=30900)

Warcaptain 06-05-2002 02:35 AM

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?

Admins 07-01-2002 01:36 AM

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

Legondary_MyTH 07-01-2002 02:20 AM

*drools*
 
You guys should get something for being able to learn all this stuff....

Python523 07-01-2002 02:25 AM

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

mikepg 07-01-2002 03:14 AM

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 ;)

Python523 07-01-2002 06:17 AM

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

MrGannondorf 07-13-2002 10:44 AM

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.


All times are GMT +2. The time now is 10:25 PM.

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