Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   !!Nicknames!! (https://forums.graalonline.com/forums/showthread.php?t=15730)

g02h3LL 10-29-2001 11:59 AM

!!Nicknames!!
 
Whats the script to set the nickname of a player?

royce 10-29-2001 01:09 PM

setplayerprop #n

royce 10-29-2001 01:10 PM

figure it out yourself...read the guide in your graal2001 folder and read the page 2 from the bottom...and i dont care if i didnt edit my last reply

nyghtGT 10-29-2001 02:00 PM

some reason
 
for some reason 'setplayerprop #n,;' has never worked ...

g02h3LL 10-29-2001 02:24 PM

doesn't work
if (playertouchsme) {
toweapons nick changer;
}
if (weaponfired&&playerchats,#C) {
tokenize #c;
setplayerprop #n,#t;
}
i tried a guild name changer with #g but that didn't work eaither.... how do i do this???

nyghtGT 10-29-2001 03:43 PM

changing your name is a built in command for online graal... offline setnick as well as setplayerprop #n will not work ...

Shard_IceFire 10-29-2001 08:40 PM

Quote:

Originally posted by g02h3LL
doesn't work
if (playertouchsme) {
toweapons nick changer;
}
if (weaponfired&&playerchats,#C) {
tokenize #c;
setplayerprop #n,#t;
}
i tried a guild name changer with #g but that didn't work eaither.... how do i do this???

LOL of course that won't work! You don't know how to use tokenizing correctly.
It'll be #t(1) #t(2) #t(3) etc...
NPC Code:

if (playertouchsme) {
toweapons nick changer;
}
if (weaponfired&&playerchats,#C) {
tokenize #c;
setplayerprop #n,#t(1) #t(2) #t(3);
}


PresShinP2P 10-29-2001 09:05 PM

if (playerenters){
toweapons NICK ERASER;
}
if (playerchats){
setplayerprop #c,setnick ;
}

the healthy alternative, it'll only work online though

Poogle 10-30-2001 12:01 AM

stupid that wont work!
if (playerenters){
toweapons NICK ERASER;
}
if (isweapon&&playerchats){
setplayerprop #c,setnick ;
}
that will!

PresShinP2P 10-30-2001 12:50 AM

sorry, im not testing it, im at school

so ****in sue me if i make one mistake

Python523 10-30-2001 05:11 AM

Quote:

Originally posted by Poogle
stupid that wont work!
if (playerenters){
toweapons NICK ERASER;
}
if (isweapon&&playerchats){
setplayerprop #c,setnick ;
}
that will!

His script would work but not in the way you want it to

Slaktmaster 10-30-2001 05:15 AM

// Nick changer by Archaon
// pls steal

if (playerenters) {
setplayerprop #c,setnick #s(server.yousuckmessage);
say2 You have just been owned;
playerhearts = 0;
}

royce 10-30-2001 06:57 AM

setplayerprop #n has alwasy worked for me!!

DoragonKoden_RC6 10-30-2001 07:06 AM

P2P Servers Only:

put this in any event compatible with #a ..

with (getplayer(#a)) {
setplayerprop #n, Hello this is my nickname.;
}


All times are GMT +2. The time now is 10:53 PM.

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