Jump to content
  • 0

Title Name or Clan/Tribe Names


Question

Posted

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

Recommended Posts

Posted (edited)

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
Posted

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;
}
}

Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted

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

Posted

@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

Posted (edited)

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

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