Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-29-2003, 02:37 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
attachplayertoobj...is it supposed to do this?

When I use that command for some bridges, it kills my system NPCs. Is it supposed to do this?
__________________
Reply With Quote
  #2  
Old 04-29-2003, 09:24 AM
Angel Angel is offline
Registered User
Join Date: Dec 2002
Posts: 562
Angel is on a distinguished road
Send a message via AIM to Angel
Im thinking nope. your doing something wrong . Ill help ya on AIM if i see ya
__________________
Have a account problem? Playerworld Problem? Forum Problem?

Reply With Quote
  #3  
Old 04-29-2003, 11:57 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Angel
Im thinking nope. your doing something wrong . Ill help ya on AIM if i see ya
I don't think I'm doing anything wrong....

NPC Code:
//#CLIENTSIDE
if (playerenters || timeout) {
drawunderplayer;
setshape2 8,16,{
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22,
22,22,0,0,0,0,22,22
};
if (playerattached) {
if ((playery in |y+0,y+1| && playerdir==0) || (playery+3 in |y+15,y+16| && playerdir==2)) {
detachplayer;
playery += vecy(playerdir)*2;
}
} else if (playerx+1 in |x+2,x+5| && ((playery+0.5 in |y+0,y+2| && playerdir==2) || (playery+1 in |y+14,y+16| && playerdir==0))) {
attachplayertoobj 0,id;
// playery += vecy(playerdir)*2;
}
timeout = 0.05;
}

__________________
Reply With Quote
  #4  
Old 05-01-2003, 04:18 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Angel you should try and reply no here, and not just AIM. That way people with the same problems can find an answer.
__________________
--Spark911
Reply With Quote
  #5  
Old 05-01-2003, 05:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Dude, don't do setshape and drawunderplayer etc every 0.05 seconds.
__________________
Reply With Quote
  #6  
Old 05-01-2003, 10:40 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I agree with both of you,

Post answers with the thread so we can all learn from it, And don't do setshape and all that every 0.05 seconds.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #7  
Old 05-27-2003, 11:01 PM
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
If you want to attach a player to an npc then add some server-side script, like if (created) this.isadummynpc = true; so that the server doesn't remove it from server-side. It is normally removing npcs without server-side script and is only keeping the position and client-side script for sending it to the client, so there are less npcs to handle. But if you want to attach the client to it you should make the npc exist on server-side. You see what npcs exist on server-side if you watch the local-level-vars thing (button on the RC).
Reply With Quote
  #8  
Old 05-28-2003, 05:52 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Ah! Thank you both Stefan and Kaimetsu
__________________
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:36 AM.


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