Jump to content
  • 0

R>PVP Title


Question

Posted (edited)

Can you share me a simple PVP TITLE script?

 

- Obtain a TITLE base on how many player(s) you kill successively inside the PVP ROOM ONLY

- For example: [brutal Killer] <Player Name>

- The TITLE will be removed only if the player; RECONNECTS or KILLED BY ANOTHER PLAYER.

 

 

 

A million of thanks in advance :D :D


bump

 

Huhuhuhu not possible? huhuhuhuhu /sob /sob /sob


BUMP!

Edited by GM Montoy

18 answers to this question

Recommended Posts

Posted

- For example: [brutal Killer] <Player Name>

its possible, but not recommended because from the client side restriction

you can try make a script with atcommand "@fakename "+ strcharinfo(0)

and if the player name plus the title name exceeds 23 string characters, the 24th character onwards will be chop off from the client

unless you know how to hex your client to display player name more than 23 characters ...

Posted

Maybe add a check? If the title + his/her name exceeds 23 characters let them create a new name? Character will be deleted if their character name exceeds > 23 characters. ( kinda confused with the character word @_@ which is which )

Posted

@Patskie

the name of character isnt the real problem...it's the client that cant handle that length of name..

how many time you going to delete that chars just to create a characters to have the name to use with the pk title ??

Example

[Brutal Killer]     -  15 words

after using this title...you left "9 words" to be used as name....

 

what happen if they create this kind of name title

[ I am super feeder ]
[ You cant kill me ]
[ Kill me if you can ]
etc....

the idea of PK title system isnt practical .. ..

unless you limit all your characters in your server to have limited length of name.

example...every character with maximum of 4 words in their name..then you will have "20 words" to use for your pk title.

Posted

[brutal Killer] PK Title is just my sample, i can put shorter titles just to lessen the length of the character name if in case.

 

I'll just edit the script if someone will provide working PK TITLE SCRIPT.

 

Just hoping someone will share /rice /rice

Posted (edited)

@Patskie

prontera,155,190,5	script	ksdjfhsdkfj	100,{
	atcommand "@fakename 123456789012345678901234"; // only display until...90123 without the last character "4", because only display 23 string length
	sleep2 2000;
	atcommand "@fakename [extremely long title] "+ strcharinfo(0); // then you try
	end;
}
EDIT: ugh ... emistry post 1st

anyway this is very simple script though

if you want this to be bug anyways ... I can create within 10 minutes

 

-	script	pvp_title	-1,{
OnPCKillEvent:
	if ( !getmapflag( strcharinfo(3), mf_pvp ) ) end;
	atcommand "@fakename [Brutal Killer] "+ strcharinfo(0);
	attachrid killedrid;
	atcommand "@fakename "+ strcharinfo(0);
	end;
}
or maybe less than that Edited by AnnieRuru
Posted

[brutal Killer] PK Title is just my sample, i can put shorter titles just to lessen the length of the character name if in case.

 

I'll just edit the script if someone will provide working PK TITLE SCRIPT.

 

Just hoping someone will share /rice /rice

http://rathena.org/board/topic/90205-pk-title/

 

it's not "you can put shorter titles"

BUT you have to limit the length of their name first instead of shorter your title name...

Posted (edited)

@Patskie

prontera,155,190,5	script	ksdjfhsdkfj	100,{
	atcommand "@fakename 123456789012345678901234"; // only display until...90123 without the last character "4", because only display 23 string length
	sleep2 2000;
	atcommand "@fakename [extremely long title] "+ strcharinfo(0); // then you try
	end;
}
EDIT: ugh ... emistry post 1st

anyway this is very simple script though

if you want this to be bug anyways ... I can create within 10 minutes

 

Edited by Budots-RO
Posted (edited)

@Patskie

prontera,155,190,5	script	ksdjfhsdkfj	100,{
	atcommand "@fakename 123456789012345678901234"; // only display until...90123 without the last character "4", because only display 23 string length
	sleep2 2000;
	atcommand "@fakename [extremely long title] "+ strcharinfo(0); // then you try
	end;
}
EDIT: ugh ... emistry post 1st

anyway this is very simple script though

if you want this to be bug anyways ... I can create within 10 minutes

 

Ops. Sorry i didn't saw Emistry post

Please make an easy to understand script please please please, i'm just new about scripting.

Try to check this: http://rathena.org/board/topic/71076-help-pvp-title-error/

I found that topic, and hopefully you can provide me something like that. Its easy to be understood /no1

-    script    pvp_title    -1,{
OnPCKillEvent:
    if ( !getmapflag( strcharinfo(3), mf_pvp ) ) end;
    atcommand "@fakename [Brutal Killer] "+ strcharinfo(0);
    attachrid killedrid;
    atcommand "@fakename "+ strcharinfo(0);
    end;
}

How can i make it work only in guild_vs3 map. And then title will be remove only if the title holder will RECONNECT or GET KILLED

 

Edited by Budots-RO
Posted

-	script	pvp_title	-1,{
OnInit:
	setarray .kills,
		3,
		4,
		5,
		6,
		7,
		8,
		9,
		10;
	setarray .title$,
		"killing spree", //3
		"dominating", //4
		"megakill", //5
		"unstoppable", //6
		"wickedsick", //7
		"monsterkill", //8
		"godlike", //9
		"holyshit"; //10

	.size = getarraysize(.kills);
	end;

OnPCKillEvent:
	//if ( !getmapflag( strcharinfo(3), mf_pvp ) ) end;
	if ( strcharinfo(3) != "guild_vs3" ) end;
	@pvp_title_kills++;
	while ( @pvp_title_kills != .kills[.@i] && .@i < .size ) .@i++;
	if ( .@i == .size ) end;
	atcommand "@fakename ["+ .title$[.@i]+"] "+ strcharinfo(0);
	attachrid killedrid;
	atcommand "@fakename "+ strcharinfo(0);
	end;
}
actually I'm thinking ...

why not just @fakename <title> without displaying player name ... that might work just fine

I only see this topic after I finish this ...

totally same script though

I wonder why @goddameit always make simple script complicated ...
Posted

 

 

actually I'm thinking ...

why not just @fakename <title> without displaying player name ... that might work just fine

later your pvp room flood with same "fake name" ...everyone have same "name"  O__O

 

then other player who try to whisper these player end up ..pm their "pk title" instead of "name" xD

 

 

 

I wonder why goddameit always make simple script complicated ... 

maybe that's his "coding" style.. 

 

 

 

 

heartblending12.gif ~.~ boring in life ~.~ heartblending12.gif ~

start everything again, now setup a new test server

so annie is back alive in forum ..O__O

the great great script detractor is back ...

** Find a Corner and Hide myself **

Posted (edited)

@Annie: It works but there is something missing,

 

You didn't add , when a player died the PVP TITLE will be removed.

Because as we tried, TITLE will only be removed if the player reconnects.

 

But before i forgot, also add map pvp_y_2-2

Thanks in advance /kis /kis

pvp_title.txt

Edited by Budots-RO
Posted

oh yeah sry about that

-	script	pvp_title	-1,{
OnInit:
	setarray .kills,
		3,
		4,
		5,
		6,
		7,
		8,
		9,
		10;
	setarray .title$,
		"killing spree", //3
		"dominating", //4
		"megakill", //5
		"unstoppable", //6
		"wickedsick", //7
		"monsterkill", //8
		"godlike", //9
		"holyshit"; //10

	.size = getarraysize(.kills);
	end;

OnPCKillEvent:
	//if ( !getmapflag( strcharinfo(3), mf_pvp ) ) end;
	if ( strcharinfo(3) != "guild_vs3" ) end;
	@pvp_title_kills++;
	while ( @pvp_title_kills != .kills[.@i] && .@i < .size ) .@i++;
	if ( .@i != .size )
		atcommand "@fakename ["+ .title$[.@i]+"] "+ strcharinfo(0);
	attachrid killedrid;
	atcommand "@fakename "+ strcharinfo(0);
	end;
}
Posted (edited)

oh yeah sry about that

 

-	script	pvp_title	-1,{
OnInit:
	setarray .kills,
		3,
		4,
		5,
		6,
		7,
		8,
		9,
		10;
	setarray .title$,
		"killing spree", //3
		"dominating", //4
		"megakill", //5
		"unstoppable", //6
		"wickedsick", //7
		"monsterkill", //8
		"godlike", //9
		"holyshit"; //10

	.size = getarraysize(.kills);
	end;

OnPCKillEvent:
	//if ( !getmapflag( strcharinfo(3), mf_pvp ) ) end;
	if ( strcharinfo(3) != "guild_vs3" ) end;
	@pvp_title_kills++;
	while ( @pvp_title_kills != .kills[.@i] && .@i < .size ) .@i++;
	if ( .@i != .size )
		atcommand "@fakename ["+ .title$[.@i]+"] "+ strcharinfo(0);
	attachrid killedrid;
	atcommand "@fakename "+ strcharinfo(0);
	end;
}

Its okey @Annie /kis2

Oh by the way, i sended you a message. Please read if you have time

Edited by Budots-RO

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