Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2004, 05:02 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
serverside follow

Hey guys, i've run into a problem and need your advise. I scripted a follow script using arrays that record the players previous steps and used the move command with it. However, with a minimum of .1 timeout, it wasnt smooth. Got any suggestions?
__________________
Reply With Quote
  #2  
Old 02-15-2004, 05:05 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Minimum timeouts are 0.05
Reply With Quote
  #3  
Old 02-15-2004, 05:18 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by haunter
Minimum timeouts are 0.05
Not serverside
__________________
Reply With Quote
  #4  
Old 02-15-2004, 05:50 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Maybe you aren't using move right?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #5  
Old 02-15-2004, 06:27 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by osrs
Maybe you aren't using move right?
Nope that's not the problem. I found out what was the problem tho. It was b/c my computer was lagging, and also cachetype 2 seemed to smooth almost everything out =)
__________________
Reply With Quote
  #6  
Old 02-15-2004, 06:39 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Use move Command between 0.1 timeout intervals.

EDIT: Gah... You make me look stupid :P
__________________
- Rance Vicious
Reply With Quote
  #7  
Old 02-15-2004, 07:28 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Termina_Owner
Use move Command between 0.1 timeout intervals.

EDIT: Gah... You make me look stupid :P
That wasnt the problem cause that's what I did from all the way in the beginning.

Now I have another question: Is it possible to do a clientside triggeraction with the npc itself? In other words, the npc clientside triggeractions itself...

[Edit]Trying to do a showimg which doesnt work serverside[/Edit]
__________________

Last edited by ZeLpH_MyStiK; 02-15-2004 at 07:50 AM..
Reply With Quote
  #8  
Old 02-15-2004, 08:24 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
NPC Code:

if (created){
setshape 1,32,32; // This is Vital
}
if (actionmove){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}
//#CLIENTSIDE
if (playerenters){
triggeraction x+0.5,y+0.5,move,#v(playerx),#v(playery);
}



Like that?

-- Avoid Repost:

NPC Code:

if (created){
setshape 1,32,32; // This is Vital
}
if (playerchats){
triggeraction x+0.5,y+0.5,clientside,move,5,5;
}
//#CLIENTSIDE
if (actionclientside){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}



Or that?
__________________
- Rance Vicious
Reply With Quote
  #9  
Old 02-15-2004, 03:41 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Quote:
Originally posted by Termina_Owner
NPC Code:

setshape 1,32,32; // This is Vital


Um.. no?
Reply With Quote
  #10  
Old 02-15-2004, 04:37 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Termina_Owner
NPC Code:

if (created){
setshape 1,32,32; // This is Vital
}
if (actionmove){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}
//#CLIENTSIDE
if (playerenters){
triggeraction x+0.5,y+0.5,move,#v(playerx),#v(playery);
}



Like that?

-- Avoid Repost:

NPC Code:

if (created){
setshape 1,32,32; // This is Vital
}
if (playerchats){
triggeraction x+0.5,y+0.5,clientside,move,5,5;
}
//#CLIENTSIDE
if (actionclientside){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}



Or that?
Why do you have 'move' after clientside? It's not a weapon npc, and you didn't use it as a param...
__________________
Reply With Quote
  #11  
Old 02-15-2004, 07:25 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Quote:
Originally posted by R0bin


Um.. no?
Yes.

Quote:
Why do you have 'move' after clientside? It's not a weapon npc, and you didn't use it as a param...
Just cut move out... :/ I was doing it fast.
__________________
- Rance Vicious
Reply With Quote
  #12  
Old 02-15-2004, 07:45 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Nope doesnt work, maybe clientside triggeraction only works for weapon npcs...
__________________
Reply With Quote
  #13  
Old 02-15-2004, 07:58 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by ZeLpH_MyStiK
Nope doesnt work, maybe clientside triggeraction only works for weapon npcs...
Correct.

Unless the trigger is sent from a different NPC. Then I believe it goes clientside AND serverside. I might be remembering wrong though.
__________________
Kat
Reply With Quote
  #14  
Old 02-15-2004, 08:56 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by -Ramirez-

Correct.

Unless the trigger is sent from a different NPC. Then I believe it goes clientside AND serverside. I might be remembering wrong though.
Nope only serverside, unless lets say you have a weapon npc which receives a serverside triggeraction and from that triggers clientside triggeraction to itself.
__________________
Reply With Quote
Reply


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 07:26 PM.


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