Check username on NPC script

Avatar

Dedicated Member
Dedicated Member
Feb 3, 2010
75
0
33
RaGEZONE
how can this be done, the command im trying to use is for Clone NPC to check if they have a clone...


Ive tryed:
CheckSlaveName $USERNAME = 1
CheckSlaveName <$USERNAME> = 1
CheckSlaveName %S = 1
CheckSlaveName Clone2 = 1

Non worked, this only 1 that worked with my name in, but i want to work for every1 on server.

CheckSlaveName Avatar = 1
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
can try this

checkslavename

CHECKSLAVENAME Yob = 2 Checks if you have 2 Yobs tamed as pets

options: =,<,>,>=
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
I think it has to be the name of the actual clone, not the username? So if the clone was called "Clone1" in the database or whatever then it would be:

CheckSlaveName Clone1 = 1

Not 100% sure though never used that command before.

Edit: Nvm Ice already posted :P
 
Upvote 0

Avatar

Dedicated Member
Dedicated Member
Feb 3, 2010
75
0
33
RaGEZONE
yeah thats the code i using....

ive tryed the Clone names it self. dont work. i need the username, but i need a Code that refers to all usernames
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
how can this be done, the command im trying to use is for Clone NPC to check if they have a clone...


Ive tryed:
CheckSlaveName $USERNAME = 1
CheckSlaveName <$USERNAME> = 1
CheckSlaveName %S = 1
CheckSlaveName Clone2 = 1

Non worked, this only 1 that worked with my name in, but i want to work for every1 on server.

CheckSlaveName Avatar = 1

Try using

CheckSlaveName self = 1

or just

CheckSlaveName on its own
 
Upvote 0

Koriban

Addict
Legendary
Loyal Member
Aug 18, 2006
5,840
211
280
Brighton
that wont be wise at all, due to devas, shinsu's. mirroring and tamed pets.

What's this going to be used for? FFA? If so, they can all be re-casted anyway, bar the tamed pets but (From experience) no wizzy will bother taming as the RedFrogSpiders (only decent pets) take about 10mins to tame per pet >.<

If it's to stop ppl taking slaves somewhere then it's fine.
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
Maybe make it add your name to a text file when you get a clone? Then delete your name from the text file after you have had your refund? (addnamelist/delnamelist) or use flags.

No idea apart from that.

Edit: Nvm that won't work because their name will still be on the list if they die/relog =/
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
Well seen as the "Would you like to revive in town" doesn't work on his server I suppose he could just make it delete your name from the name list when you log back in.
 
Upvote 0

Zero2.3

Dedicated Member
Dedicated Member
Apr 19, 2009
38
0
52
theres a ondeath command witch he could use there

[@OnDeath]



[@OnMurder]



[@Murdered]
 
Upvote 0