Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 01-18-2006, 12:25 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by napo_p2p
Ahh I misunderstood what you meant. I thought you didn't want to show a glow around yourself.

But now I know what you mean. Use this.i + 300 (lower indexes are visible to all).
But then that would be for a player with the index of 300? Also, when I try to add something in that accounts for the NPCs, I either get a ton of lag, or a negative number. this gets a negative #, but why?
NPC Code:
//#CLIENTSIDE
//stuff
if(this.inuse==1 || timeout)
{
for(this.i=0;this.i=<playerscount;this.i++)
{
setstring client.players,#v(this.i-this.n);
//stuff
else if(!players[strtofloat(#s(client.players))].id>-1 && this.i<playerscount)
{
this.n+=1;
}
//stuff
}


Last edited by excaliber7388; 01-18-2006 at 12:37 AM..
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 07:46 PM.


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