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:  

//CREATE TABLE IF NOT EXISTS `title` (
//  `id` int(11) NOT NULL AUTO_INCREMENT,
//  `title` varchar(255) NOT NULL,
//  PRIMARY KEY (`id`)
//) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9;
//
//CREATE TABLE IF NOT EXISTS `title_player` (
//  `id` int(3) NOT NULL,
//  `char_id` int(6) NOT NULL,
//  `name` varchar(255) NOT NULL
//) ENGINE=MyISAM DEFAULT CHARSET=latin1;

rachel,163,122,4	script	name	1002,{

	//======== Configuration =======

	set @npc_name$,""; // NPC's name
	set @gm_level,99;  // GM level required

	//==============================

	if(getgmlevel()>=@gm_level) if(select("Normal","Admin") == 2) goto L_admin;
	mes "["+@npc_name$+"]";
	mes "Hi, I can give you titles.";
	next;
	mes "["+ @npc_name$ +"]";
	mes "Here is the list.";
	query_sql("SELECT `a1`.`id`,`a1`.`title` FROM `title` `a1` WHERE EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ getcharid(0) +") ORDER BY `a1`.`title` ASC",@title_id,@title$);
	query_sql("SELECT `a1`.`title` FROM `title` `a1` WHERE NOT EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ getcharid(0) +") ORDER BY `a1`.`title`",@title_no$);
	query_sql("SELECT COUNT(*) FROM `title` `a1` WHERE EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ getcharid(0) +")",@title_count);
	query_sql("SELECT COUNT(*) FROM `title` `a1` WHERE NOT EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ getcharid(0) +")",@title_nocount);
	if(!@title_count && !@title_nocount) goto L_notitle;
		
	L_normal:
		menu "Avaible titles ("+ @title_count +")",L_avaible,"Unaivable titles ("+ @title_nocount +")",L_unaivable,"Remove my title",L_remove,"Cancel",-;
				close;
		
			L_avaible:
				if(!@title_count) goto L_normal;
				set @menu$,"";
				for(set i,0;i<@title_count;set i,i+1)
					set @menu$,(@menu$=="") ? @title$[i] : @menu$ +":"+ @title$[i];
				set @menu$,@menu$ +":Back";
				menu @menu$,-;
				set @title_choice,@menu-1;
				if(@title_choice==@title_count) goto L_normal;
				next;
				mes "["+ @npc_name$ +"]";
				mes "The title : \"" + @title$[@title_choice] + "\" is avaible to you.";
				if(select("Change my title","Cancel")==2) close;
				atcommand "@fakename "+@title$[@title_choice] + strcharinfo(0);
				set title$,@title$[@title_choice];
				next;
				mes "["+ @npc_name$ +"]";
				mes "That's it.";
				mes "Bye.";
				close;
				
			L_unaivable:
				if(!@title_nocount) goto L_normal;
				set @menu$,"";
				for(set i,0;i<@title_nocount; set i,i+1)
					set @menu$,(@menu$=="") ? "^FF0000"+ @title_no$[i] +"^000000" : @menu$ +":^FF0000"+ @title_no$[i] +"^000000";
				set @menu$,@menu$ +":Back";
				menu @menu$,-;
				goto L_normal;
			
			L_remove:
				if(title$=="") {
					mes "You don't have any title.";
					close;
				}
				mes "That's it.";
				atcommand "@fakename";
				set title$,"";
				close;
		
	L_admin:
		query_sql("SELECT COUNT(*) FROM `title`",@title_count);
		mes "Hi.";
		mes "What do you want to do?";
		menu "Delete a title",-,"Add a title",addT,"Modify a title",modifyT,"Modify a player",modifyP;
				next;
				mes "["+ @npc_name$ +"]";
				mes "What title do you want to delete?";
				if(!@title_count)
					goto L_noTitle;
				query_sql("SELECT * FROM `title`",@title_id,@title$);
	  			set @menu$,"";
				for(set i,0;i<@title_count;set i,i+1)
					set @menu$,(@menu$=="") ? @title$[i] : @menu$ +":"+ @title$[i];
				set @menu$,@menu$ +":Back";
				menu @menu$,-;
				set @title_choice,@menu-1;
				if(@title_choice==@title_count) { next; mes "["+ @npc_name$ +"]"; goto L_admin; }
				next;
				mes "["+@npc_name$+"]";
				mes "Are you sure you want to delete : \""+ @title$[@title_choice] +"\"?";
				if(select("No","Yes")==2) {
					next;
					mes "["+ @npc_name$ +"]";
					mes "The title has been deleted!";
					query_sql("DELETE FROM `title` WHERE `id`="+ @title_id[@title_choice]);
					query_sql("DELETE FROM `title_player` WHERE `id`="+ @title_id[@title_choice]);
					goto L_admin;
				}
				next;
				mes "["+ @npc_name$ +"]";
				goto L_admin;
			
			addT:
				next;
				mes "["+ @npc_name$ +"]";
				mes "What title do you want to add?";
				next;
				input @addT$;
				if(@addT$==" ") { next; mes "["+ @npc_name$ +"]"; goto L_admin; }
				mes "["+ @npc_name$ +"]";
				if(!callfunc("Add a title",@addT$)) {
					mes "This title is already in use!";
					goto L_admin;
				}
				mes "That's it!";
				goto L_admin;
							
			modifyT:
				next;
				mes "["+@npc_name$+"]";
				if(!@title_count)
					goto L_noTitle;
				mes "What title do you want to modify?";
				query_sql("SELECT * FROM `title`",@title_id,@title$);
				set @menu$,"";
				for(set i,0;i<@title_count;set i,i+1)
					set @menu$,(@menu$=="") ? @title$[i] : @menu$ +":"+ @title$[i];
				set @menu$,@menu$ +":Back";
				menu @menu$,-;
				set @title_choice,@menu-1;
				if(@title_choice==@title_count) { next; mes "["+ @npc_name$ +"]"; goto L_admin; }
				mes "Currently modifying : "+ @title$[@title_choice] +".";
				mes "Those players have this title avaible.";
				fastMod:
					query_sql("SELECT COUNT(*) FROM `title_player` WHERE `id`="+ @title_id[@title_choice],@title_player_count);
					query_sql("SELECT `char_id`,`name` FROM `title_player` WHERE `id`="+ @title_id[@title_choice],@title_player_charid,@title_player_name$);
					if(!@title_player_count)
						mes "No player.";
					for(set i,0;i<@title_player_count;set i,i+1)
					mes "- "+ @title_player_name$[i];
					menu "Add a player",L_addP,"Remove a player",remP,"Modify the title's name",modT,"Modify another title",modifyT,"Return to main menu",-;
							next;
							mes "["+ @npc_name$ +"]";
							goto L_admin;
						
						L_addP:
							next;
							mes "["+ @npc_name$ +"]";
							mes "Please, enter the player's name.";
							input @addP$;
							if(@addP$==" ") goto fastMod;
							next;
							mes "["+ @npc_name$ +"]";
							switch(callfunc("Add a player",@title$[@title_choice],@addP$)) {
								case 1:
									mes "The player doesn't exist.";
									break;
								
								case 2:
									mes "The title doesn't exist.";
									break;

								case 3:
									mes "Player has already this title avaible.";
									break;
									
								default:
									mes "That's it!";
									break;
							}
							next;
							mes "["+ @npc_name$ +"]";
							goto fastMod;
		
						remP:
							if(!@title_player_count) goto fastMod;
							mes "What player do you want to remove?";
							set @menu$,"";
							for(set i,0;i<@title_player_count;set i,i+1)
								set @menu$,(@menu$=="") ? @title_player_name$[i] : @menu$ +":"+ @title_player_name$[i];
							set @menu$,@menu$ +":Back";			
							menu @menu$,-;
							set @title_player_choice,@menu-1;
							if(@title_player_choice==@title_player_count) { next; mes "["+ @npc_name$ +"]"; goto fastMod; }
							query_sql("DELETE FROM `title_player` WHERE `id`="+ @title_id[@title_choice] +" AND `char_id`="+ @title_player_charid[@title_player_choice] +" AND `name`='"+ @title_player_name$[@title_player_choice] +"'");
							next;
							mes "["+ @npc_name$ +"]";
							mes "That's it!";
							goto fastMod;
	
						modT:
							next;
							mes "["+ @npc_name$ +"]";
							mes "Title : \""+ @title$[@title_choice] +"\".";
							if(select("Modify","Back")==2) { next; mes "["+ @npc_name$ +"]"; goto fastMod; }
							next;
							mes "["+ @npc_name$ +"]";
							mes "Enter the new title.";
							input @newT$;
							next;
							for(set i,0;i<@title_count;set i,i+1) {
								if(@title$[i]!=@newT$) continue;
								mes "["+ @npc_name$ +"]";
								mes "This title is already in use!";
								goto modT;
							}
							if(select("Save names","Don't save names") == 2 ) 
								query_sql("DELETE FROM `title_player` WHERE `id`="+ @title_id[@title_choice]);
							mes "["+ @npc_name$ +"]";
							mes "That's it!";
							query_sql("UPDATE `title` SET `title`='"+ @newT$ +"' WHERE `id`="+ @title_id[@title_choice]);
							query_sql("SELECT * FROM `title`",@title_id,@title$);
							goto fastMod;
							
			modifyP:
				next;
				mes "["+ @npc_name$ +"]";
				query_sql("SELECT COUNT(DISTINCT `char_id`) FROM `title_player`",@player_count);
				mes ((@modGP) ? "What player do you want to add?" : "What player do you want to modify?");
				query_sql("SELECT `char_id`,`name`,COUNT(*) FROM `title_player` GROUP BY `char_id` ORDER BY `name` ASC",@title_player_charid,@title_player_name$,@title_player_count);
				fastModP:
				set @menu$,"";
				for(set i,0;i<@player_count;set i,i+1)
					set @menu$,(@menu$=="") ? @title_player_name$[i] +"("+ @title_player_count[i] +")" : @menu$ +":"+ @title_player_name$[i] +"("+ @title_player_count[i] +")";
				set @menu$,(@menu$=="") ? "Type a name" : @menu$ +":Type a name";
				set @menu$,@menu$ +":Back";
				menu @menu$,-;
				set @title_player_choice,@menu-1;
				if(@title_player_choice==@player_count) {
					input @title_player_name$[@title_player_choice];
					query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+ @title_player_name$[@title_player_choice] +"'",@charid);
					if(!@charid[0]) {
						mes "Player doesn't exist.";
						goto fastModP;
					}
					set @title_player_charid[@title_player_choice],@charid[0];
				} else if(@title_player_choice==@player_count+1 && !@modGP) {
					next;
					mes "["+ @npc_name$ +"]";
					goto L_admin;
				}
				fastModPP:
				next;
				mes "["+ @npc_name$ +"]";
				mes "Currently modifying : "+ @title_player_name$[@title_player_choice] +".";
				menu "Add a title",-,"Remove a title",L_removeTP,"Modify another player",modifyP,"Return to main menu",L_admin;
						query_sql("SELECT COUNT(*) FROM `title` `a1` WHERE NOT EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ @title_player_charid[@title_player_choice] +")",@title_nocount);
						if(!@title_nocount) {
							mes "This player has all titles avaible.";
							goto fastModPP;
						}
						query_sql("SELECT `a1`.`id`,`a1`.`title` FROM `title` `a1` WHERE NOT EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ @title_player_charid[@title_player_choice] +") ORDER BY `a1`.`title` ASC",@title_noid,@title_no$);
						mes "Add title ...";
						set @menu$,"";
						for(set i,0;i<@title_nocount;set i,i+1)
							set @menu$,(@menu$=="") ? @title_no$[i] : @menu$ +":"+ @title_no$[i];
						set @menu$,@menu$ +":Back";
						menu @menu$,-;
						set @title_choice,@menu-1;
						if(@title_choice==@title_nocount) goto fastModPP;
						callfunc("Add a player",@title_no$[@title_choice],@title_player_name$[@title_player_choice]);
						mes "Title \""+ @title_no$[@title_choice] +"\" added for player \""+ @title_player_name$[@title_player_choice] +"\".";
						goto fastModPP;
						
					L_removeTP:
						query_sql("SELECT COUNT(*) FROM `title` `a1` WHERE EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ @title_player_charid[@title_player_choice] +")",@title_count);
						if(!@title_count) {
							mes "This player doesn't have any title.";
							goto fastModPP;
						}
						query_sql("SELECT `a1`.`id`,`a1`.`title` FROM `title` `a1` WHERE EXISTS(SELECT `id`,`char_id` FROM `title_player` WHERE `id`=`a1`.`id` AND `char_id`="+ @title_player_charid[@title_player_choice] +") ORDER BY `a1`.`title` ASC",@title_id,@title$);
						mes "Remove the title ...";
						set @menu$,"";
						for(set i,0;i<@title_count;set i,i+1)
							set @menu$,(@menu$=="") ? @title$[i] : @menu$ +":"+ @title$[i];
						set @menu$,@menu$ +":Back";
						menu @menu$,-;
						set @title_choice,@menu-1;
						if(@title_choice==@title_count) goto fastModPP;
						query_sql("DELETE FROM `title_player` WHERE `id`="+ @title_id[@title_choice] +" AND `char_id`="+ @title_player_charid[@title_player_choice]);
						mes "Title \""+ @title$[@title_choice] +"\" removed for player \""+ @title_player_name$[@title_player_choice] +"\".";
						goto fastModPP;
					
	L_noTitle:
		mes "I don't have any title.";
		close;

	OnPCLoginEvent:
		if(title$!="")
			atcommand "@fakename "+$titles$[title] +strcharinfo(0);
		end;
}

function	script	Add a title	{ // callfunc "Add a title","Title name"
	query_sql("SELECT COUNT(*) FROM `title`",@title_count);
	query_sql("SELECT * FROM `title`",@title_id,@title$);
	for(set i,0;i<@title_count;set i,i+1) {
		if(getarg(0)!=@title$[i]) continue;
		return 0;
	}
	query_sql("INSERT INTO `title` VALUES(NULL,'"+ getarg(0) +"')");
	return 1;
}

function	script	Add a player	{ // callfunc "Add a player","Title name","Player name"
	query_sql("SELECT COUNT(*) FROM `char` WHERE `name`='"+ getarg(1) +"'",@title_charid_check);
	query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+ getarg(1) +"'",@title_charid);
	if(!@title_charid_check) return 1;
	query_sql("SELECT COUNT(*) FROM `title` WHERE `title`='"+ getarg(0) +"'",@title_check);
	if(!@title_check) return 2;
	query_sql("SELECT `char_id`,`name` FROM `title_player` WHERE `id`="+ @title_id[0],@title_player_charid,@title_player_name$);
	query_sql("SELECT `id` FROM `title` WHERE `title`='"+ getarg(0) +"'",@title_id);
	query_sql("SELECT COUNT(*) FROM `title_player` WHERE `id`="+ @title_id[0],@title_player_count);
		for(set i,0;i<@title_player_count;set i,i+1) {
			if(@title_charid[0]!=@title_player_charid[i]) continue;
			return 3;
		}
	query_sql("INSERT INTO `title_player` VALUES("+ @title_id[0] +","+ @title_charid[0] +",'"+ getarg(1) +"')");
	return 0;
}

function	script	Has Title	{ // callfunc "Has title","Title name",char_id
	query_sql("SELECT `id` FROM `title` WHERE `title`='"+ getarg(0) +"'",@title_id);
	query_sql("SELECT COUNT(*) FROM `title_player` WHERE `id`="+ @title_id[0] +" AND `char_id`="+ getarg(1),@title_check);
	if(@title_check)
		return 1;
	else
		return 0;
}

-	script	test	-1,{
OnPCKillEvent:
    set Kill,Kill+1;
    if(callfunc("Has Title","[KILLING SPREE]",getcharid(0)) || callfunc("Has Title","[DOMINATING]",getcharid(0)) || callfunc("Has Title","[MEGAKILL]",getcharid(0)) || callfunc("Has Title","[UNSTOPPABLE]",getcharid(0)) || callfunc("Has Title","[WICKEDSICK]",getcharid(0)) || callfunc("Has Title","[MONSTERKILL]",getcharid(0)) || callfunc("Has Title","[GODLIKE]",getcharid(0)) || callfunc("Has Title","[HOLYSHIT]",getcharid(0))) end;
    if(Kill==3) {
        if(!callfunc("Add a player","[KILLING SPREE]",strcharinfo(0)))
            announce "You unlock [KILLING SPREE] Title",bc_self;
        else
            debugmes "Incorrect title [KILLING SPREE].";
    } else if(Kill==4) {
        if(!callfunc("Add a player","[DOMINATING]",strcharinfo(0)))
            announce "You unlock [DOMINATING] Title",bc_self;
        else
            debugmes "Incorrect title [DOMINATING].";
    } else if(Kill==5) {
        if(!callfunc("Add a player","[MEGAKILL]",strcharinfo(0)))
            announce "You unlock [DOMINATING] Title",bc_self;
        else
            debugmes "Incorrect title [MEGAKILL].";
    } else if(Kill==6) {
        if(!callfunc("Add a player","[UNSTOPPABLE]",strcharinfo(0)))
            announce "You unlock [UNSTOPPABLE] Title",bc_self;
        else
            debugmes "Incorrect title [UNSTOPPABLE].";
    } else if(Kill==7) {
        if(!callfunc("Add a player","[WICKEDSICK]",strcharinfo(0)))
            announce "You unlock [WICKEDSICK] Title",bc_self;
        else
            debugmes "Incorrect title [WICKEDSICK].";
    } else if(Kill==8) {
        if(!callfunc("Add a player","[MONSTERKILL]",strcharinfo(0)))
            announce "You unlock [MONSTERKILL] Title",bc_self;
        else
            debugmes "Incorrect title [MONSTERKILL].";
    } else if(Kill==9) {
        if(!callfunc("Add a player","[GODLIKE]",strcharinfo(0)))
            announce "You unlock [GODLIKE] Title",bc_self;
        else
            debugmes "Incorrect title [GODLIKE].";
    } else if(Kill==10) {
        if(!callfunc("Add a player","[HOLYSHIT]",strcharinfo(0)))
            announce "You unlock [HOLYSHIT] Title",bc_self;
        else
            debugmes "Incorrect title [HOLYSHIT].";
    }
    end;
}

Basically this script enable the player to gain title listed

player can choose there own title to put with there character

the problem is only [KILLING SPREE] title give to the player even if i kill more than 3

how can i add the anti-feed if the character already killed 3 times kill is not counted

how can i add when player died -1 kill auto delete the title to the player or degrade the title example from holyshit to godlike

 

for ask me for more clarification thanks

Link to comment
Share on other sites

21 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

hm use onpckill ? sorry i don't understand at all but that could do it o:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

This is a good concept 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

This is a good concept 

 

yeah, someone who can script well should takr a look here o:!

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:  

hm use onpckill ? sorry i don't understand at all but that could do it o:

 
using onpckill for pvp i think i already tried its working but i dont know why till Killing Spree only
 
what you dont understand?
 

This is a good concept 

 

I already have that long time ago and i not expert to implement it XD

 

We need Expert Scripter Here :)

Edited by Blazing Spear
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

yeah lol

 

i don't understand at all how the onkillpc would look D:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

Annie is needed

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

yeah a miss her ):

 

sorry blazing spear please patiently wait untile a good scripter see this and may answer to yo o:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  14
  • Reputation:   0
  • Joined:  01/27/14
  • Last Seen:  

Wooo! This one is really awesome script!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  67
  • Reputation:   2
  • Joined:  08/09/13
  • Last Seen:  

this is a good script. but there is also a minor bug here..

example.

u have the title [TITLE]name (ofc by using @fakename commands in the script.)

this player wont be able to join or to be invited in a party.. if he wants. for example in woe.. and he want's a devo on his gmate.. he cannot join this party, unless he was the one who leads this party..

 

Correct me if im wrong...

:P just ignore this if u ddnt care for those player will protest this minor bug. but since this is more than one title expect players will ask why they cant be invited in a party....

Edited by Elektrochemiestry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

it is @karazu ask me to view this topic from hercules forum

otherwise I don't really care much about this forum unless someone from hercules ask me to =/

 

Annie is needed

why everyone always think about me when nobody else can script <_<

@Skorm, @Capuche and @Missingno also can script very well,

next time ask them as they are rathena scripting leaders

screw that script, use mine

[paste=5oruqcujcc6h]

it hurt my eyes to see so many query_sql in the script,

I rather rewrite this from scratch using string manipulations

@Elektrochemiestry

yeah ... it also means,

you can get a title and go to war without fearing anyone invite you into party because it helps you auto-reject :P

 

how can i add when player died -1 kill auto delete the title to the player or degrade the title example from holyshit to godlike

what do you mean by this ...

this is a UNLOCK a title, right ?

why do you want to steal the player's effort away after they have already unlock the title ?

Edited by AnnieRuru
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

it is @karazu ask me to view this topic from hercules forum

otherwise I don't really care much about this forum unless someone from hercules ask me to =/

 

 

lol don't complain if your pm box there bombs too haha D:!

 

thanks for the help

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

 

it is @karazu ask me to view this topic from hercules forum

otherwise I don't really care much about this forum unless someone from hercules ask me to =/

 

 

lol don't complain if your pm box there bombs too haha D:!

 

thanks for the help

 

She's taken care of over there :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  67
  • Reputation:   2
  • Joined:  08/09/13
  • Last Seen:  

@annie

haha. just saying that.. i have a script something like this.. its a free release by goddameit. so i just figure it out.. some of them asking to remove this system.. because yeah like we said. it will reject the party invitaion. either one of ur enemies , or ur friend/gmates party..

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

 

it is @karazu ask me to view this topic from hercules forum

otherwise I don't really care much about this forum unless someone from hercules ask me to =/

 

 

lol don't complain if your pm box there bombs too haha D:!

 

thanks for the help

 

She's taken care of over there :P

 

 

lol you guys better take care of here there a_a

 

@topic

yeah it's a 2 edges system, stills good for me o:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

haha. just saying that.. i have a script something like this.. its a free release by goddameit. so i just figure it out.. some of them asking to remove this system.. because yeah like we said. it will reject the party invitation. either one of ur enemies , or ur friend/gmates party..

well,

@fakename <something>

will auto-reject party/guild invitations

@fakename

will turn back into your original name

I saw the original script already did that so ...

players can always turn back into their name whenever they wish

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  14
  • Reputation:   0
  • Joined:  01/27/14
  • Last Seen:  

 

haha. just saying that.. i have a script something like this.. its a free release by goddameit. so i just figure it out.. some of them asking to remove this system.. because yeah like we said. it will reject the party invitation. either one of ur enemies , or ur friend/gmates party..

well,

@fakename <something>

will auto-reject party/guild invitations

@fakename

will turn back into your original name

I saw the original script already did that so ...

players can always turn back into their name whenever they wish

 

 

Annie, something is missing here... Maybe by purpose??

 

I'm thinking of penalty from players who only wants to farm the title.Some kind of rollback when they killed the same player for consecutive time,

Like for example kill the same person 5x removed the most recent title. OR Instead of removing the title why not stop the kill counter after killing the same person 3 times, points is not counted at 4th. 

 

 

I get your point here. but somehow the effort is useless if they get it just for fame?

why do you want to steal the player's effort away after they have already unlock the title ? 

It's just a suggestion.. Thank you!

Edited by HadesRO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

simple ...

add these lines under OnPCKillEvent:

	if ( @last_player_kill == killedrid ) {
		@dota_title_kill = 0;
		dispbottom "Your killing streak has been reset due to killing same player multiple times";
		end;
	}
	@last_player_kill = killedrid;

[paste=3xv6jbierwqi]

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  14
  • Reputation:   0
  • Joined:  01/27/14
  • Last Seen:  

<3 u Annie ++1

 

 

Edited:

 

Sigh.... suddenly realized that the strikes is not save to DB. Ofcourse! its not my script request.. I just thought it works that way /?? ..

 

 

Dunno if I need to create a separate request for this but I'll try.......

Annie, can I request this? To save the strike earned to another column and this counter will served as there strike counts everytime they login?

 

ex. if player has 10 strike after relogin the counter will continue and so and so forth.... till @strike = 1000; then its stop.  

Edited by HadesRO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

just change @dota_title_kill into dota_title_kill ....

  • Upvote 1
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:  

ow i missed the topic already let me try this :D

AnnieRuru

- can we add function like when player already have killing spree title have 3 when died -1 and auto remove the title to the character

- and add some reward to the last title owned by the player

- and is this work with pvp ladder? 

 

it is @karazu ask me to view this topic from hercules forum
otherwise I don't really care much about this forum unless someone from hercules ask me to =/

 

Annie is needed

why everyone always think about me when nobody else can script  <_<
@Skorm, @Capuche and @Missingno also can script very well,
next time ask them as they are rathena scripting leaders


screw that script, use mine
[paste=5oruqcujcc6h]
it hurt my eyes to see so many query_sql in the script,
I rather rewrite this from scratch using string manipulations


@Elektrochemiestry
yeah ... it also means,
you can get a title and go to war without fearing anyone invite you into party because it helps you auto-reject  :P

 

how can i add when player died -1 kill auto delete the title to the player or degrade the title example from holyshit to godlike

what do you mean by this ...
this is a UNLOCK a title, right ?
why do you want to steal the player's effort away after they have already unlock the title ?

 

This function is for PVP only i wanna add to like refine ranking title

the most successful refine acquired like master refiner or somethig that related

Edited by Blazing Spear
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  14
  • Reputation:   0
  • Joined:  01/27/14
  • Last Seen:  

 

haha. just saying that.. i have a script something like this.. its a free release by goddameit. so i just figure it out.. some of them asking to remove this system.. because yeah like we said. it will reject the party invitation. either one of ur enemies , or ur friend/gmates party..

well,

@fakename <something>

will auto-reject party/guild invitations

@fakename

will turn back into your original name

I saw the original script already did that so ...

players can always turn back into their name whenever they wish

 

 

Hi Annie,

 

Just want to ask if it's possible to use atcommand @fakename to only allow removing the set title, but not to set a fakename using @fakename <something> ?  /ok

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