Jump to content
  • 0

Adding a nametag to characters lvl 150+


rukkakun

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/27/14
  • Last Seen:  

Hello!
 

I would like to have a script that add a nameTAG to players that passed lvl 150(151~200 for example)

 

Like   "[150+]playername"

 

I want it pernamentment,that you cant logout,warp and anything but it still with the tag.

 

Can anyone give me a hint or something to do it? :(

Edited by rukkakun
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   2
  • Joined:  08/01/13
  • Last Seen:  

@rukkakun:

You can join to guild, as usual.
Join to party is a bit harder.
/invite "Original name"

@Dissidia:

 

atcommand "@fakename "+getguildname(getcharid(2))+" "+strcharinfo(0);

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   2
  • Joined:  08/01/13
  • Last Seen:  


OnPCLoginEvent:

if (BaseLevel < 151) end;

atcommand "@fakename [150+] "+strcharinfo(0);

end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

do you know how to fake name with showing guild name?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/27/14
  • Last Seen:  

OnPCLoginEvent:

if (BaseLevel < 151) end;
atcommand "@fakename [150+] "+strcharinfo(0);
end;

LOL! I'm so newbie on this.. thanks a lot x)

 

But I also read in other topic that with @fakename you can't accept party/guild invitations.. is that true? :o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

wow nice thank you El Dragon.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/27/14
  • Last Seen:  

@rukkakun:

You can join to guild, as usual.

Join to party is a bit harder.

/invite "Original name"

@Dissidia:

 

atcommand "@fakename "+getguildname(getcharid(2))+" "+strcharinfo(0);

Ok,thank you so much.

 

I'll look at the sources of party invitation and see if I can ignore fakename..so I won't close this topic.

 

When i found something I'll write here.

 

#######[EDIT]####################

I found something on  \src\char\int_party.c   

// Add a player to party request
int mapif_parse_PartyAddMember(int fd, int party_id, struct party_member *member)
{
	struct party_data *p;
	int i;

	p = inter_party_fromsql(party_id);
	if( p == NULL || p->size == MAX_PARTY ) {
		mapif_party_memberadded(fd, party_id, member->account_id, member->char_id, 1);
		return 0;
	}

	ARR_FIND( 0, MAX_PARTY, i, p->party.member[i].account_id == 0 );
	if( i == MAX_PARTY )
	{// Party full
		mapif_party_memberadded(fd, party_id, member->account_id, member->char_id, 1);
		return 0;
	}

	memcpy(&p->party.member[i], member, sizeof(struct party_member));
	p->party.member[i].leader = 0;
	if (p->party.member[i].online) p->party.count++;
	p->size++;
	if (p->size == 2 || p->size == 3) // Check family state. And also accept either of their Parents. [RoM]
		int_party_calc_state(p);
	else //Check even share range.
	if (member->lv < p->min_lv || member->lv > p->max_lv || p->family) {
		if (p->family) p->family = 0; //Family state broken.
		int_party_check_lv(p);
	}

	mapif_party_info(-1, &p->party, 0);
	mapif_party_memberadded(fd, party_id, member->account_id, member->char_id, 0);
	inter_party_tosql(&p->party, PS_ADDMEMBER, i);

	return 0;
}

Maybe adding here something like "if not found the player,ignore '@fakename'or'[150+]' and try to add again" here,could work but I dont know how to do :D

 

If anyone knows about it,please write here and I'll appreciate so much. :)

Edited by rukkakun
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

guys do you know how to change the max character name letter? maybe I want 30 letters max. thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/27/14
  • Last Seen:  

guys do you know how to change the max character name letter? maybe I want 30 letters max. thanks.

I found it on mmo.h

 

 

#define NAME_LENGTH (23 + 1)

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...