Jump to content
  • 0

Title Name or Clan/Tribe Names


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Tribe/Clan System

Description : Everytime a NEW player joins in your server, there is an NPC where he can ask you which Clan/Tribe would you prefer to join. If the player already picked a Clan/Tribe, The Clan/Tribe will be inserted before his name and after taking it, the player will be warped to their respective Clan/Tribe Main Town together with the other Co-Tribe/Clan players.

How to use :

  • Script will be setup with 2~3 Clan/Tribe Names.
  • Every New Player will be asked which would they prefer.
  • Players with other Clan/Tribe Names will be able to see each other of course.
  • It's like a Title Quest System.

What does it contains :

  • Clan/Tribe Names before the name (ex: [Red Clan]Paulinds or Red Clan - Paulinds)
  • If player log off, the name will still be there. (I don't know if this is SQL based)
  • Character Based.
  • Can be In-game Configured.(Optional)
  • Case 1, Case 2 and so on.. (If 1st tribe is selected give clan/tribe name and warp to map 1, If 2nd tribe is selected give clan/tribe name and warp to map 2)

THANKS GUYS !!!

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Owh.. Try this..

set .@tribe$[.@j], getd(".@tribe_"+(.@j+1)+"$");

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Woot, Thanks ALOT! its working for me now...

EDIT:

Joseph, can you add restrict adding special characters?

like !@#$%^&*(){}[] like that?

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Add this

setarray .@char$, "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "{", "}", "[", "]";
for ( set .@i, 0; .@i < getarraysize(.@char$); set .@i, .@i + 1 )
{
if ( compare(.@tmp_name$,.@char$[.@i]) )
{
 next;
 mes .@n$;
 mes "No restricted characters allowed.";
 set .@k, 2;
 break;
}
}

After

  mes .@n$;
  mes "So.. " + .@tmp_name$ + " will be your new name?";
  set .@k, select ( "Yes:No" );

Edited by Joseph
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ill try it..

EDIT:

Last one Joseph xD

Can you add when the Characters name is too long...

and typing a new name, and when there is already a same name with him/her he cant continue to change..

because i tried if it can create a same name character

1st acc name = SC* Jagore

2nd acc name =SC* Jagore

same name diffrent acc xD

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

I assume the format of your tribe name: tribe_name*character_name

If it is, then try this..

Add


query_sql("SELECT `char_id` FROM  `char` WHERE  `name` REGEXP ('.*\\*"+escape_sql(.@tmp_name$)+"') OR `name`='"+escape_sql(.@tmp_name$)+"",.@cid);
if ( .@cid[1] != 0 )
{
next;
mes .@n$;
mes "I'm sorry this name has been used.";
next;
set .@k, 2;
}

After

  mes .@n$;
  mes "So.. " + .@tmp_name$ + " will be your new name?";
  set .@k, select ( "Yes:No" );

EDIT: Try -.-

Edited by Joseph
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

EDIT:

awe, the name checker if it has the same name doesnt work >.<

i thought its working because no errors shows up.

i tested it and still ican make the same names..

i want to request more about this script xD

but if your tired you can rest 1st whaha..im willing to wait...

"the maximum change name required must be 4 Characters up.."

that's the last one.. Thanks a lot sir Joseph

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Haha okay here you go.


if ( getstrlen(.@tmp_name$) <= 4 )
{
 next;
 mes .@n$;
 mes "Must have more than 4 characters.";
 next;
 set .@k, 2;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Can you post the complete script XD I wan't to check it hehe :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   9
  • Joined:  04/16/12
  • Last Seen:  

nice script maybe consider moving this to the release area, a lot of people will use it for sure

Edited by kiros
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

EDIT:

awe, the name checker if it has the same name doesnt work >.<

i thought its working because no errors shows up.

i tested it and still ican make the same names..

i want to request more about this script xD

but if your tired you can rest 1st whaha..im willing to wait...

"the maximum change name required must be 4 Characters up.."

that's the last one.. Thanks a lot sir Joseph

bump for this one...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

sir im having this kind of error ( refer to the picture below )

post-3628-0-14546400-1359199180_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

How about using this:

http://rathena.org/b...how-guildparty/

and then write a script for that ? ;)

This will allow you to fakename with showing your guild and party + emblem.

That means you can fakename your name like [title] + name but your real name stays "name".

So you can whisper normal and your name doesn't gets too long.

i already made that for a big server last year, was pretty good.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

How about using this:

http://rathena.org/b...how-guildparty/

and then write a script for that ? ;)

This will allow you to fakename with showing your guild and party + emblem.

That means you can fakename your name like [title] + name but your real name stays "name".

So you can whisper normal and your name doesn't gets too long.

i already made that for a big server last year, was pretty good.

Thank you for sharing that one.... i find it useful but i want to use this script too...... I hope you can help me with my error..

@bump For this Old Topic

post-3628-0-18554400-1359202680_thumb.jpg

Edited by xmaniacx
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...