![]() |
function findName()
Use: Find and return a player prioritized by:
1.) Account Name 2.) Display Name this is used due to the fact that new Graal Online accounts display as Graal######. Not a difficult script, but one of conveinence. Please enjoy, if you do copy and paste verbatim, I do not need acknowledgement. Enjoy! NPC Code:function findName(playername) |
You should use allplayers tho..
Crow added something like this on Esteria, he did the getAccountName() one.. PHP Code:
PHP Code:
|
Quote:
Hmm... for getCommunityName, couldn't you just do: PHP Code:
I'm new to the whole new community name/Graal##### accounts, but that looks like it should work. |
Quote:
lol, never thought of that xD But this would be solved if Stefan added communityname compatibility to findplayer().. :p |
Goal wasn't community name, it is in game nickname, which will make spoofing possible but pretty hard.
(scratch that, people couldn't create new accounts to steal nicknames...) |
Is it possible for a player to have their community name be the same as the account name of a player who signed up before numbered accounts were instituted?
|
Quote:
|
Quote:
|
You should have some sort of auto-deleter.
If someone signs-up and has no activity for a month, then their account is deleted. |
Quote:
|
Quote:
>_< |
Well trial accounts cannot set their community name anyway.
|
But for like old members that have run out of all of their subscriptions...
How can I explain it... Like, if they haven't played in a month and have no subscriptions then delete their account so other paying players that want interesting names can have them. |
Quote:
It's common for people to not play for an extended period of time, then return. Also, let's say you quit, and then your subscriptions expire and your account is deleted. Would you like it if someone bought an account and used your account name, and started posing as you? Probably not. |
Looks like this got pretty off track, but I'll share the one I made for Utopia.
Script class_findname: PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
I used that because on my server I was testing it, and I never really changed it ... I had it on Error! so it would show that in the NPC-Server when I did /npc find plyr |
New function: findplayerbycommunityname(string)
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.