rukkakun Posted March 29, 2014 Posted March 29, 2014 (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 March 29, 2014 by rukkakun Quote
naffej Posted March 29, 2014 Posted March 29, 2014 @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); 1 Quote
naffej Posted March 29, 2014 Posted March 29, 2014 OnPCLoginEvent: if (BaseLevel < 151) end; atcommand "@fakename [150+] "+strcharinfo(0); end; 1 Quote
Dissidia Posted March 29, 2014 Posted March 29, 2014 do you know how to fake name with showing guild name? Quote
rukkakun Posted March 29, 2014 Author Posted March 29, 2014 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? Quote
EL Dragon Posted March 29, 2014 Posted March 29, 2014 link to fakename diff http://rathena.org/board/topic/60188-fakename-show-guildparty/?hl=fakename 2 Quote
rukkakun Posted March 29, 2014 Author Posted March 29, 2014 (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 If anyone knows about it,please write here and I'll appreciate so much. Edited March 29, 2014 by rukkakun Quote
Dissidia Posted March 29, 2014 Posted March 29, 2014 guys do you know how to change the max character name letter? maybe I want 30 letters max. thanks. Quote
rukkakun Posted March 29, 2014 Author Posted March 29, 2014 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) Quote
Question
rukkakun
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 rukkakun9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.