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:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

So it's just meant to be something like a Name Changer NPC,just with Clan names in front of their name?

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:  

Hmm sort of like that :)

The NPC will provide the names and ask what will they choose..

example,

Menu 1

Light Army

if they choose this, they will be warped @ belagio,91,41

Menu 2

Dark Army

if they choose this, they will be warped @ belagio,91,41

After they choose a Name, their name will be like this..

Light Army - Paulinds or

Dark Army - Paulinds

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Normally this should work,but I'm not 100% sure if it works.


STARTINGMAP,XXX,YYY,Z script Welcome to XXX RO 100,{
set .@serv$,"XXX RO";// CHANGE THE SERVER NAME!!!!!
set .@n$,"^0000FF[ Welcome to "+.@serv$+" ]^000000";
set @charname$,"+strcharinfo(0)+";
if(tribechange==1) {
mes .@n$;
mes "Okay I'm going to warp you!";
next;
warp "belagio",91,41;
end;
close;
}
mes .@n$;
mes "Hello "+strcharinfo(0)+",welcome";
mes "to "+.@serv$+",have fun!";
next;
mes .@n$;
mes "You can choose a Clan,";
mes "which you want to join.";
next;
mes .@n$;
mes "Now choose the Clan,which";
mes "you want to join.";
next;
switch(select("Light Army:Dark Army")) {
case 1:
mes .@n$;
mes "Okay,changing your name!";
query_sql "UPDATE `char` SET name,[Light Army] '"+ escape_sql(@charname$) + "'; WHERE `name`='" + escape_sql(@charname$) + "'";
next;
mes .@n$;
mes "Your name is changed.";
mes "I'll kick you and after";
mes "You login again,I'll warp you.";
set tribechange,1;
next;
atcommand "@kick "+strcharinfo(0)+"";
end;
close;
case 2:
mes .@n$;
mes "Okay,changing your name!";
query_sql "UPDATE `char` SET name,[Dark Army] '"+ escape_sql(@charname$) + "'; WHERE `name`='" + escape_sql(@charname$) + "'";
next;
mes .@n$;
mes "Your name is changed.";
mes "I'll kick you and after";
mes "You login again,I'll warp you.";
set tribechange,1;
next;
atcommand "@kick "+strcharinfo(0)+"";
end;
close;
}
}

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:  

Do I need to make an SQL on it? I don't know how XD and Can be paste in pastebin or upaste? THANK YOU !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

No you don't have to make a new SQL Table for this. You're Server is using SQL ,right? So you should have the char SQL Table for your server,and the script just updates the char SQL Table and changes the name to [Light Army] PlayerNAME or to [Dark Army] PlayerNAME.

Here Pastebin:

http://pastebin.com/UYdGXSgx

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:  

Does the name work on old players? Will old players be able to change their name?

The names doesn't work both new players and old players... it doesn't change/add to their name..

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Hmm...Okay I'm going to check it on my Test Server. Check this post later again.

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:  

Okay sir, I'll wait.. Thank you !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Okay fixed it and tested it,it works,but make sure,that the name of the Player is not too long.

http://pastebin.com/HMwDH96E

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:  

oooo, Okay thanks sir ! It's working now !!

Can add some name character checker? like only ## Maximum Characters is allowed only.

***

Sir got a problem/bug, One of my player tried to choose 1 and suddenly his characters are all wiped out/deleted...

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

No Problem. Umm... About the Name Length Checker,I'm sorry,but I don't know how I should put it in there,sorry.

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:  

Sir got a problem/bug, One of my player tried to choose 1 and suddenly his characters are all wiped out/deleted...

Now I got 2 Player got the same problem.

I Open the account of the player that got character wipe out..

[info]: Loading Char Data (2002900)
[sql]: DB error - data of field 'name' was truncated.
[Debug]: column - 2
[Debug]: data   - type=MYSQL_TYPE_VAR_STRING, length=25
[Debug]: buffer - type=MYSQL_TYPE_STRING, length=23+1(nul-terminator)

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Seems like their name is too long,go to your char table in phpmyadmin and change their name back to their normal name,then it should work. That's what the error tells you.

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:  

Yeah, I did already that XD and It's now fixed but should I do that all the time if players have a long name? BTW THANKS FOR THE SCRIPT RIKIMARU !

I hope someone will fixed or make the script more safe.. Hoping to have "Character Limit Name Checker" where the NPC checks the maximum characters of their name.. Like the script is set to cancel them to choose because the player has 16 or more characters in their name...

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:  

this one is good but yeah it's not safe until some one will make it safe...

im waiting too for that one :-)

Edited by Mr BrycE
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:  

@Mr BrycE

I'm currently using this script I request from Rikimaru, and it's working well, but the problem is when players are making Long Names, I'm always fixing them manually lol.. Just hoping someone will fix this script where they can add a "Maximum Name Character Checker" thing.. XD

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:  

bump for this topic...

a safe script please...so we wont waste time changing the long character names xD

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:  

This will check the name length.


if ( getstrlen(strcharinfo(0)) > 23 ) // 23 is the max char name length?
{
   // Rename
   // ...
}

// Add title
// ...

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:  

where should i add this..xD

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:  

Error in Line 24

parse_line: expect command, missing function name or calling undeclared function

explode(.@tribe$,.@menu$,":");

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:  

Your revision?

If you're using rAthena, shouldn't be a problem.

Replace

explode(.@tribe$,.@menu$,":");

With

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

Edited by Joseph
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:  

I use 3ceam, I haven't tested the ones you've added but will this work in 3ceam? 644m

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:  

Yes. It will work if the replacement properly applied.

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:  

i have a problem its always choosing tribe2 even i pick tribe 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...