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 06-09-2003, 11:35 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Talking New commands and an update request! :D

Someone should be able to get this to Stefan or get Stefan to this :P

testplayer(x,y) - aparently only detects npc showcharacters and the client, tested it and thats true :P
testplayer2(x,y,width,height) - mm.. usefull ofcourse testplayer2 would just return true or false :P

Oh and another tiny request, showani doesn't run gani scripts.. which is a problem in some cases, but I managed to work around it.. And I presume showani2 is the same. All this is for some new material on Era that I cant finish properly.. and I'd tell you all, but we all know what Bravo does :'(...
__________________
-Chrisz
Reply With Quote
  #2  
Old 06-10-2003, 02:40 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
width = <number>;
height = <number>;
px = <number>;
py = <number>;
number_of_found_things=0;

for(i=px;i<px+width;i++)
for(j=py;j<py+height;j++)
if (testplayer(i,j)==true)number_of_found_things++;


o.o
Reply With Quote
  #3  
Old 06-10-2003, 04:04 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
or make it create a string variable with all the values of the testplayer =D but i think that chrisz just wants an easier way to do it, i'm pretty sure that it must get tedious writing that after a while.
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #4  
Old 06-10-2003, 05:19 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
testplayer serverside will only detect players I think.. clientside checks for players & npcs
__________________

Reply With Quote
  #5  
Old 06-10-2003, 05:54 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Yah yah Amonra... I already have that (I use it for clientside onwall2) but the thing is testplayer only works properly serverside.. And besides using your own function for it in a highly used npc lags... :P *isn't newbie :|*

*edits post*
Annnnd.. Pokilty.. testplayer returns -2 for nothing -1 for npc showcharacters and 0 for the client.. Amazing? No. -_- lolz. testplayer is only good serverside.. but I want it to be good clientside too.. rar?
*stops editing post*

*edits post more*
While im still here.. WTF IS THAT HP/MP/EXP THING AT THE LEFT THAT SAYS STUFF heh.. I have wondered even before I had gold.. :O
*stops editing post more*
__________________
-Chrisz

Last edited by Chrisz; 06-10-2003 at 06:07 PM..
Reply With Quote
  #6  
Old 06-11-2003, 12:57 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by Chrisz
testplayer is only good serverside.. but I want it to be good clientside too.. rar?
What's wrong with using the serverside testplayer?
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #7  
Old 06-13-2003, 11:54 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Thats.. really not what i want.. lolz.. its for realtime clientside effects :P
__________________
-Chrisz
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 05:56 PM.


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