Jump to content
  • 0

Title System


Blazing Spear

Question


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

Using this script :http://www.eathena.ws/board/index.php?showtopic=252567

i would like to implement it via OnPcLoginEvent: all gm level 1 "Super Player" will have [Donator] title in there name

example:

Capuche

after login in 5sec will auto kick

login again

Capuche [Donator]

then after expiration of rental VIP auto delete title

 

i used this vip script :http://athena-scripts.googlecode.com/svn/dev/Brian/script_requests/vip_rental.txt

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


OnPCLoginEvent:

if( getgmlevel() == 1 )

atcommand "@fakename "+ strcharinfo(0) +" [Donator]";

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

OnPCLoginEvent:
if( getgmlevel() == 1 )
     atcommand "@fakename "+ strcharinfo(0) +" [Donator]";
end;

 

I'm also interested with this idea. But, when @fakename are used. Other player can't invite party/guild, add friends etc.. How to fix that problems?

 

vwVuj6J.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

I think you can't invite a player with fake name on a party/guild. If that is the case, then you need to do script something like change the character name ( you need to update your char table in database ) to be able to invite him/her on a party/guild. But by doing so, you must take consider that rAthena limits character name up to 23 characters. If you will make a script make sure that you get first the length of the name of player and if you add it up with the donator tag then it should be < 23. Otherwise that character will be deleted :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

im done here but my problem here is how to connection achievement and title

Achievement: Kill x1 Poring

Title: [Poring Slayer]

Automatic title will add to the character list of title

every login message pop up would you like to change your title

then next

list of title would you like to activate using this Here

 

OnNPCKillEvent:
	if(callfunc("Has title",", the Baphomet King",getcharid(0)) || killedrid!=1039) end; // Check if the player kills a baphomet / already has the title
	set baphomet_count,baphomet_count+1;
	if(baphomet_count<100) end;
	if(!callfunc("Add a player",", the Baphomet King",strcharinfo(0))) //
		dispbottom "You achieved : Baphomets suck. You acquired a new title : "+ strcharinfo(0) +", the Baphomet King.";
	else
		debugmes "Incorrect title name (, the Baphomet King).";

i found that code and its not working to me

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

Posted · Hidden by Xynvaroth, August 29, 2013 - Bump (not allowed).
Hidden by Xynvaroth, August 29, 2013 - Bump (not allowed).

BUMP!!

Link to comment

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

Posted · Hidden by Xynvaroth, August 29, 2013 - Bump (not allowed).
Hidden by Xynvaroth, August 29, 2013 - Bump (not allowed).

bump

Link to comment

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

what about reducing the character length 

with this you will have extra character length for your title

http://rathena.org/board/topic/77687-how-to-reduce-default-23-characters-to-10-character-only/

 

when getting a tittle you will save his original name to a string variable

-this is for inuring you still have his/her original name

 

then make a query for his/her new name with the title

[title] + original name

finally kick him from the server so he will be forced to relog and get him/her to use new name with the title on it

with this you can invite him to a party or guild since your using his present name with the title

 

 

note this is just an idea i haven't tested it but it seems logical to me IMO

Edited by icabit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

The ideal would be to ignore the fakename that is just something aesthetic leaving only the name. [Donator] Claudio That only the name is claudo not have to write everything.
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...