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 01-11-2005, 02:41 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
help with attachplayertoobj

I need help with getting this to work right

when attached to an NPC moving around on the gmap, it seems to mess up a lot

it will often cross levels, and not update on my client that it has moved past the edge of the current level on the gmap

also, say i am standing right on the top left corner of the NPC, when the npc moves around a little i may end up way off the NPC in the bottom right

it's very strange

simple script like this is used

PHP Code:
if (playerchats) {
  if (
strequals(#c,attach)) attachplayertoobj 0,id;
  
if (startswith(move,#c)) {
      
tokenize #c;
      
move strtofloat(#t(1)) - x,strtofloat(#t(2)) - y,5,0;
  
}

any ideas? kingdoms has it working very well from what I hear at least
__________________

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 02:01 AM.


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