Jump to content
  • 0

PvP points goes to account not only on the char. who killed a player


TrustGTX

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/09/18
  • Last Seen:  

i want every kill will be counted as account pvp points, anyone please help ?

-	script	qwerty	-1,{
OnPCKillEvent:
     if ( strcharinfo(3) == "guild_vs3" ) {
if ( getcharip(killedrid) == getcharip(getcharid(3)) ) { end; } // Can't obtain points if player has same IP
	set pvppoint,pvppoint+1;
	dispbottom "You have gained 1 Points. Total "+pvppoint+" Point";
end;
}
}

 

Edited by TrustGTX
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

How i sayed, change all

	#pvppoint += 1;	//Simplified version of the "set #pvppoint,#pvppoint+1"
	dispbottom "You have gained 1 Points. Total "+#pvppoint+" Point"; //Here also add # prefix

 

  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

	if(countstr("map1 map2 map3 map4",strcharinfo(3)) {
		...
	}

 

  • Love 1
Link to comment
Share on other sites

  • 1

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

new trick learned, but I doubt it

-	script	sfkjsf	FAKE_NPC,{
OnInit:
//	setarray .event$, "guild_vs1", "guild_vs2", "guild_vs3", "guild_vs4", "guild_vs5";
	setarray .event$, "xmas_dun01", "xmas_dun02", "xmas_fild01", "xmas_in"; // xmas

	.event_size = getarraysize( .event$ );

	.event_implode$ = implode( .event$, " " );
	end;
OnNPCKillEvent:
//	Method 1
//	if ( strcharinfo(3) == "guild_vs1" || strcharinfo(3) == "guild_vs2" || strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs4" || strcharinfo(3) == "guild_vs5" )
	if ( strcharinfo(3) == "xmas_dun01" || strcharinfo(3) == "xmas_dun02" || strcharinfo(3) == "xmas_fild01" || strcharinfo(3) == "xmas_in" )
		dispbottom "say 1";

//	Method 2
	for ( .@i = 0; .@i < .event_size; ++.@i )
		if ( strcharinfo(3) == .event$[.@i] )
			dispbottom "say 2";

//	Method 3
	if ( countstr( .event_implode$, strcharinfo(3) ) )
		dispbottom "say 3"; // this method can trigger on the xmas map

//	dispbottom "say 3"+.event_implode$+ strcharinfo(3);
	end;
}

just tested, for example, if the script supposed to only run in xmas dungeon, but it can trigger on xmas map, because the "xmas_dun01" contain "xmas"
same for yuno_fild01 contain yuno
payon_in01 contain payon
prt_cas_q contain prt_cas

 

EDIT: I forgot I did this before LMAO !!
https://rathena.org/board/topic/91826-special-party-warper/#comment-241434
https://rathena.org/board/topic/91723-please-help-this-script-about-mac_address/?do=findComment&amp;comment=240887
 

ok so its like this ... add "#"+ strcharinfo(3) +"#" like this

-	script	sfkjsf	FAKE_NPC,{
OnInit:
//	setarray .event$, "guild_vs1", "guild_vs2", "guild_vs3", "guild_vs4", "guild_vs5";
	setarray .event$, "xmas_dun01", "xmas_dun02", "xmas_fild01", "xmas_in"; // xmas

	.event_size = getarraysize( .event$ );

	.event_implode$ = "|"+ implode( .event$, "|" ) +"|";
	end;
OnNPCKillEvent:
//	Method 1
//	if ( strcharinfo(3) == "guild_vs1" || strcharinfo(3) == "guild_vs2" || strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs4" || strcharinfo(3) == "guild_vs5" )
	if ( strcharinfo(3) == "xmas_dun01" || strcharinfo(3) == "xmas_dun02" || strcharinfo(3) == "xmas_fild01" || strcharinfo(3) == "xmas_in" )
		dispbottom "say 1";

//	Method 2
	for ( .@i = 0; .@i < .event_size; ++.@i )
		if ( strcharinfo(3) == .event$[.@i] )
			dispbottom "say 2";

//	Method 3
	if ( compare( .event_implode$, "|"+ strcharinfo(3) +"|" ) )
		dispbottom "say 3"; // tested, doesn't trigger on xmas

	end;
}

now I remember I learned this trick from Keyworld's string manipulation commands

Edited by AnnieRuru
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

Change all:

pvppoint

To:

#pvppoint

(the prefix "#" is used to accounts variables)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/09/18
  • Last Seen:  

1 hour ago, luizragna said:

Change all:


pvppoint

To:


#pvppoint

(the prefix "#" is used to accounts variables)

like this?

	set #pvppoint,#pvppoint+1;

i did this but :

You have gained 1 points. Total 0 point
i check my pvp points it is still 0

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/09/18
  • Last Seen:  

43 minutes ago, luizragna said:

How i sayed, change all


	#pvppoint += 1;	//Simplified version of the "set #pvppoint,#pvppoint+1"
	dispbottom "You have gained 1 Points. Total "+#pvppoint+" Point"; //Here also add # prefix

 

thankyou dude +1 for you..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/09/18
  • Last Seen:  

1 hour ago, luizragna said:

How i sayed, change all


	#pvppoint += 1;	//Simplified version of the "set #pvppoint,#pvppoint+1"
	dispbottom "You have gained 1 Points. Total "+#pvppoint+" Point"; //Here also add # prefix

 

thankyou dude +1 for you..

 

how about settings this in multi map like guild_vs1 and guild_vs4 

if ( strcharinfo(3) == "guild_vs3" ) {
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...