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 03-17-2001, 01:40 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
How are you supposed to test if a player has a certain account name online? Offline it is impossible to do, since none of the information is available, and I would like to know, for a couple scripts I am writing
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #2  
Old 03-17-2001, 03:14 AM
SSmutz SSmutz is offline
I hate me. :(
Join Date: Mar 2001
Posts: 2,633
SSmutz will become famous soon enough
try it on one of those old gserver's i guess, if they even support it
__________________
I hate graal.

NO! FOR THE MILLIONTH TIME, I AM NOT GOING TO PLAY GRAAL AGAIN! I HANGOUT IN THE NOT GRAAL RELATED FORUM, BECAUSE IT HAS NOTHING TO DO WITH GRAAL.
The End
Reply With Quote
  #3  
Old 03-17-2001, 07:19 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
NPC Code:

if (strequals(#a,accountname)) {


#a is the string that holds the player's account name...if you want to check a player of a certain index, use #a(index). Just remember that account names are case sensitive
Reply With Quote
  #4  
Old 03-17-2001, 07:59 AM
Fai Fai is offline
!!!!!!!!!!!!!!!!!!!!!!!!!
Fai's Avatar
Join Date: Mar 2001
Location: New York
Posts: 4,491
Fai will become famous soon enough
Send a message via ICQ to Fai Send a message via AIM to Fai
Even I knew that :]
__________________
SIGNATURE
Reply With Quote
  #5  
Old 03-17-2001, 08:09 AM
SSmutz SSmutz is offline
I hate me. :(
Join Date: Mar 2001
Posts: 2,633
SSmutz will become famous soon enough
yea, but when your offline, you dont have an account name set to yourself
__________________
I hate graal.

NO! FOR THE MILLIONTH TIME, I AM NOT GOING TO PLAY GRAAL AGAIN! I HANGOUT IN THE NOT GRAAL RELATED FORUM, BECAUSE IT HAS NOTHING TO DO WITH GRAAL.
The End
Reply With Quote
  #6  
Old 03-17-2001, 08:19 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
actually, from past experience, I think it uses the one you have selected or used last when you go into offline mode as #a....cuz I've gotten that code to work offline for just my account before.
Reply With Quote
  #7  
Old 03-17-2001, 08:26 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
*Hides from Kyle's scary bad language in his Sub-Title*
Reply With Quote
  #8  
Old 03-17-2001, 09:38 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
Thanks Kyle, I thought it was something like that, but I wasn't sure.
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #9  
Old 03-17-2001, 09:53 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
sure, you might test with #n instead of #a and set your nickname to the account name you want to be used just to make sure things work.

*was unaware that was a bad word*
Reply With Quote
  #10  
Old 03-17-2001, 10:01 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
Here is another way I just thought of, and checked offline....there is a way to check to see if your account name works in an NPC offline:
Make an NPC, then put this script in it...
NPC Code:

if (playertouchsme) {setstring #a, accountname;}


that way, you can set your accountname properly, then test it out offline. When you are sure it works, you can then delete the npc that set the accountname.
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
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 06:59 PM.


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