Jump to content
  • 0

Adding a nametag to characters lvl 150+


Question

Posted (edited)

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

9 answers to this question

Recommended Posts

Posted

@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
Posted
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

Posted (edited)

@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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...