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 05-26-2002, 03:43 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Changing Players Nick?

How do I change the players nick using script?
Reply With Quote
  #2  
Old 05-26-2002, 04:19 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Well if you have an NPC-Server it's a simple case of just making a serverside part set the nickname, like this system example:

NPC Code:
if (actionserverside)
setplayerprop #n,#s(clientr.nickname);
//#CLIENTSIDE
if (created||timeout) {
if (!(strequals(#n,#s(clientr.nickname)))
triggeraction x,y,serverside,;
timeout=0.05;
}


If you aren't going to have an NPC-Server it's trickier, but can apparently be done by setting the players chat to "setnick nickname"

Both examples don't work offline though, anyway basically with NPC-Server any serverside NPcs can change players nicknames using setplayerprop #n. Without the same affect can be achieved by setting a players chat to 'setnick nickname'
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 05-26-2002, 05:50 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Quote:
Originally posted by Spanko
Well if you have an NPC-Server it's a simple case of just making a serverside part set the nickname, like this system example:

NPC Code:
if (actionserverside)
setplayerprop #n,#s(clientr.nickname);
//#CLIENTSIDE
if (created||timeout) {
if (!(strequals(#n,#s(clientr.nickname)))
triggeraction x,y,serverside,;
timeout=0.05;
}


If you aren't going to have an NPC-Server it's trickier, but can apparently be done by setting the players chat to "setnick nickname"

Both examples don't work offline though, anyway basically with NPC-Server any serverside NPcs can change players nicknames using setplayerprop #n. Without the same affect can be achieved by setting a players chat to 'setnick nickname'
Ahh excellent. Thank you very much =).
Reply With Quote
  #4  
Old 05-26-2002, 08:04 AM
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
Quote:
Originally posted by Spanko
Well if you have an NPC-Server it's a simple case of just making a serverside part set the nickname, like this system example:

NPC Code:
if (actionserverside)
setplayerprop #n,#s(clientr.nickname);
//#CLIENTSIDE
if (created||timeout) {
if (!(strequals(#n,#s(clientr.nickname)))
triggeraction x,y,serverside,;
timeout=0.05;
}


If you aren't going to have an NPC-Server it's trickier, but can apparently be done by setting the players chat to "setnick nickname"

Both examples don't work offline though, anyway basically with NPC-Server any serverside NPcs can change players nicknames using setplayerprop #n. Without the same affect can be achieved by setting a players chat to 'setnick nickname'

Yes on non npc server servers you can change stuff by changeing thier chat text. =) Fun fun. just need a system npc and a server string.
__________________
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
  #5  
Old 05-28-2002, 08:20 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
LOL. I would venture to say that if (playertouchsme) setplayerprop #n,NICK; is much easier than what you had done, lol. Or Setplayerprop #c,setnick NICK;
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #6  
Old 05-28-2002, 09:54 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


The former doesn't work on any servers and the latter looks horrible and unprofessional.
Very true. What Grim had was probably best fitting for the situation.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #7  
Old 05-29-2002, 12:26 AM
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
Quote:
Originally posted by Saga2001


Very true. What Grim had was probably best fitting for the situation.
I was such a menace on doomsday
__________________
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
  #8  
Old 05-29-2002, 10:49 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Yes, but for scripters that don't have a clue what things are, something that is horrible and unprofessional would work better than nothing at all. Why give less advanced scripters items in which they are incapable of editing or understanding? Why not teach rather than hand out? Just a thought, heh.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #9  
Old 05-31-2002, 01:00 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Changing Players Nick?

Quote:
Originally posted by Frolic_RC2
How do I change the players nick using script?
if (playerenters) {setplayerprop #c,setnick SCREW ME!}
Reply With Quote
  #10  
Old 05-31-2002, 11:59 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Re: Re: Changing Players Nick?

Quote:
Originally posted by Poogle

if (playerenters) {setplayerprop #c,setnick SCREW ME!}
Well, we decided that looked extremelt unprofessional, but what about this?

NPC Code:

if (playerenters)
{
setstring this.chat,#c;
setplayerprop #c,setnick BBflat;
setplayerprop #c,#s(this.chat);
}



There is probably a problem somewhere in there... It's still unprofessional, but not quite as much.
Reply With Quote
  #11  
Old 06-01-2002, 08:54 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Re: Re: Re: Re: Changing Players Nick?

Quote:
Originally posted by Kaimetsu


What's the point when a better system has already been highlighted?
Um. I thought that only worked with NPC Servers though...
Reply With Quote
  #12  
Old 06-03-2002, 05:40 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Re: Re: Re: Re: Re: Changing Players Nick?

Quote:
Originally posted by BBflat

Um. I thought that only worked with NPC Servers though...
I know for a fact that Soul Blade's playerworld is going to have an NPC-Server, though I did point out the alternative in my post.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
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 03:08 PM.


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