Jump to content
  • 0

Fakename when entering a map request


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Hello guys,

 

Is there a way script-wise that all players entering one of my pvp maps (pvp_y_8-1) will have a randomly generated fake name? Or everyone entering will have the same name like "ABC". My intention is so players will not know who is who while inside the pvp map. Upon death and being kicked out of the pvp map or reconnection will make things back to normal.

 

Anyone kind enough to script me this will be a great help.

 

Thank you guys.

 

 

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

 

Sir still slight problem as I had mentioned above.

 

Everything was already good but when a player is killed twice in pvp and when he gets summoned back to savepoint, his name is still "Player". Can we make it that when he is back to savepoint his name will be normal again?

Thank you Sir Skorm.

 

 

I don't have this problem.

 

Try putting sleep2(2000);

after OnPCStatCalcEvent:

 

 

 

Stil same thing happened sir. After the 2nd time player is killed and warped automatically to savepoint his name is still "Player".

 

I also tried that after the player first dies and clicked "return to last savepoint", his name is still "Player".

 

Here is my full script so you can inspect if ever I did something wrong:

-	script	fake_name	-1,{
OnInit:
	set .eventmap$, "turbo_roomc|morocc_mem|pvp_y_8-2";
	end;

OnPCLoadMapEvent:
	if( compare( "|"+.eventmap$+"|", "|"+strcharinfo(3)+"|" ) ) {
		set .@strcharinfo$, strcharinfo(0);
		set @fakename, 1;
		detachrid;
		charcommand "#fakename \""+ .@strcharinfo$ +"\" Player";
	}
	end;

OnPCStatCalcEvent:
sleep2(2000);
	if ( @fakename && !compare( "|"+.eventmap$+"|", "|"+strcharinfo(3)+"|" ) ) {
		set .@strcharinfo$, strcharinfo(0);
		set @fakename, 0;
		detachrid;
		charcommand "#fakename \""+ .@strcharinfo$ +"\"";
	}
}

Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Anyone? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

 

 

Sir still slight problem as I had mentioned above.

 

Everything was already good but when a player is killed twice in pvp and when he gets summoned back to savepoint, his name is still "Player". Can we make it that when he is back to savepoint his name will be normal again?

Thank you Sir Skorm.

 

 

I don't have this problem.

 

Try putting sleep2(2000);

after OnPCStatCalcEvent:

 

 

 

Stil same thing happened sir. After the 2nd time player is killed and warped automatically to savepoint his name is still "Player".

 

I also tried that after the player first dies and clicked "return to last savepoint", his name is still "Player".

 

Here is my full script so you can inspect if ever I did something wrong:

-	script	fake_name	-1,{
OnInit:
	set .eventmap$, "turbo_roomc|morocc_mem|pvp_y_8-2";
	end;

OnPCLoadMapEvent:
	if( compare( "|"+.eventmap$+"|", "|"+strcharinfo(3)+"|" ) ) {
		set .@strcharinfo$, strcharinfo(0);
		set @fakename, 1;
		detachrid;
		charcommand "#fakename \""+ .@strcharinfo$ +"\" Player";
	}
	end;

OnPCStatCalcEvent:
sleep2(2000);
	if ( @fakename && !compare( "|"+.eventmap$+"|", "|"+strcharinfo(3)+"|" ) ) {
		set .@strcharinfo$, strcharinfo(0);
		set @fakename, 0;
		detachrid;
		charcommand "#fakename \""+ .@strcharinfo$ +"\"";
	}
}

Thank you.

 

 

Sir Skorm?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...