You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Tuesday, June 17th 2014, 3:20am

How to check if a character exists by name

This is something that plagued me for a few years and I just found out how to do it and wanted to share what I found with anyone else needing to know how to do it.

CheckRightfulName(AltName)

AltName above is a variable so substitute it with either your own variable or an actual player name in quotes

Edit: CheckRightfulName is only for checking if a name is valid...read my comment below

This post has been edited 1 times, last edit by "Salariki" (Jun 26th 2014, 12:28am)


2

Tuesday, June 17th 2014, 4:15am

It returns 2 values, 1st being true/false and the 2nd being a counter of the characters in the name. If the 2nd value is > 24 the first value is false. Seems it's simply the function to make sure a player's name is within the 24 character limit at character creation screen.
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

3

Wednesday, June 18th 2014, 8:51pm

Just try adding the name to friends list.

4

Thursday, June 19th 2014, 1:20am

Just try adding the name to friends list.


That only works on server side though, player names on other server's don't get checked and they affect name options @ character creation screen. Most likely character creation screen is still the only way to check available names.
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

Yrcanos

The Dungeon Keeper

Posts: 1,408

Location: Dungeon

  • Send private message

5

Thursday, June 19th 2014, 7:38am

...player names on other server's don't get checked and they affect name options @ character creation screen.

Whut? Eh? In what way...?

Cike

Rogue

Posts: 4,171

Occupation: Being Human

  • Send private message

6

Thursday, June 19th 2014, 7:48am

dunno, but i have chars of same name on different servers...it makes a mess out of ur char settings and savevariables, so i wouldn't suggest it though...
my r/p can outdps r/m. your name is stupid.

mages should stack dex. word.

This post has been edited 1 times, last edit by "Cike" (Jun 19th 2014, 9:34am)


7

Thursday, June 19th 2014, 8:59am

Whut? Eh? In what way...?


Sorry, was wrong there, while you can't see them online or whisper that character, you can add them to friends list to determine if that name exists or not. I come from AU, the server that isn't linked to any other server, forgive my ignorance :D
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

8

Thursday, June 26th 2014, 12:24am

It returns 2 values, 1st being true/false and the 2nd being a counter of the characters in the name. If the 2nd value is > 24 the first value is false. Seems it's simply the function to make sure a player's name is within the 24 character limit at character creation screen.

Yes I was wrong about what I originally thought this function did. You are correct it is for checking if a name is valid i.e. length and only letters

9

Thursday, June 26th 2014, 10:53am

Actually the whole purpose of what I'm trying to do involves adding alts to the character's friends list. Where I'm having a problem is that if an alt is deleted from the account I want to have a way of checking from within my addon if the alt was deleted by checking whether on not the alt still exists.