Jump to content
  • 0

help on adding thing to Chris PvP/GvG & MvP Arena [SQL] v1.0


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

@chris creation@

http://rathena.org/b...-v10-1219-2011/

1.anyone know how to disable party on Deathmatch PvP? mean player if party cannot go in there if go in will warp out if have party.

2.how to disable chat in pvp area? just can chat in party/guild?

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

1. You can just use this mapflag. It'll render parties useless in the map.

mapnamehere mapflag pvp_noparty

2. Don't think that's possible via scripting. Maybe a source edit.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

1. thx ^^ waiting server setting finish try it.

2.if disable chat include party/guild chat in the selector map? cannot too?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

1. thx ^^ waiting server setting finish try it.

2.if disable chat include party/guild chat in the selector map? cannot too?

As Arcenciel said:

1.

MapName%TAB%mapflag%TAB%pvp_noparty

2. Can only be done by a custom source edit. You may request it here.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

1.thx about the pvp_noparty if i want put two difference must do separately? pvp_noparty & nochat?

MapName%TAB%mapflag%TAB%pvp_noparty

MapName%TAB%mapflag%TAB%nochat

2.ok thx

Edited by manabeast
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

MapName mapflag nochat

this only disable the ChatRoom creation in the particular maps...

it doenst block members within a party/guild to chatting.....

Anyway..i found a solution for you to disable Chat within Players...

try this scripts...

- script Sample -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "mapname" && Manner >= 0 ){
sc_start SC_NOCHAT,-1,0;
dispbottom "Chatting is Disabled within PVP Maps.";
}else if( strcharinfo(3) != "mapname" && Manner >= 0 ){
sc_end SC_NOCHAT;
set Manner 0;
}
end;
}
mapname mapflag loadevent

Change the MapName to your PVP Map

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

ok, there are many map this one just for one? i got little error here

-    script    BlockKeeper    -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "mapname" && Manner >= 0 ){
sc_start SC_NOCHAT,-1,0;
dispbottom "Chatting is Disabled within PVP Maps.";
}else if( strcharinfo(3) != "mapname" && Manner >= 0 ){
sc_end SC_NOCHAT;
set Manner 0;
}
end;
}
pvp_y_1-1    mapflag    loadevent
pvp_y_1-4    mapflag    loadevent
pvp_y_1-2    mapflag    loadevent
pvp_y_1-3    mapflag    loadevent
pvp_y_1-5    mapflag    loadevent
pvp_y_2-1    mapflag    loadevent
pvp_y_2-4    mapflag    loadevent
pvp_y_2-2    mapflag    loadevent
pvp_y_2-3    mapflag    loadevent
pvp_y_2-5    mapflag    loadevent
pvp_y_3-1    mapflag    loadevent
pvp_y_3-4    mapflag    loadevent
pvp_y_3-2    mapflag    loadevent
pvp_y_3-3    mapflag    loadevent
pvp_y_3-5    mapflag    loadevent
pvp_y_4-1    mapflag    loadevent
pvp_y_4-4    mapflag    loadevent
pvp_y_4-2    mapflag    loadevent
pvp_y_4-3    mapflag    loadevent
pvp_y_4-5    mapflag    loadevent
pvp_y_5-1    mapflag    loadevent
pvp_y_5-4    mapflag    loadevent
pvp_y_5-2    mapflag    loadevent
pvp_y_5-3    mapflag    loadevent
pvp_y_5-5    mapflag    loadevent
pvp_y_6-1    mapflag    loadevent
pvp_y_6-4    mapflag    loadevent
pvp_y_6-2    mapflag    loadevent
pvp_y_6-3    mapflag    loadevent
pvp_y_6-5    mapflag    loadevent
pvp_y_7-1    mapflag    loadevent
pvp_y_7-4    mapflag    loadevent
pvp_y_7-2    mapflag    loadevent
pvp_y_7-3    mapflag    loadevent
pvp_y_7-5    mapflag    loadevent

someone post another one too @@"

http://rathena.org/b...r-chris-pvpgvg/

upload image

post-472-0-04760700-1325435459_thumb.png

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Ops...

should be this

set Manner,0;

for multi map...erm..you can try this

- script Sample -1,{
OnPCLoadMapEvent:
for( set .@i,0; .@i < getarraysize( .Map$ ); set .@i,.@i + 1 ){
if( strcharinfo(3) == .Map$[.@i] && Manner >= 0 ){
 sc_start SC_NOCHAT,-1,0;
 dispbottom "Chatting is Disabled within PVP Maps.";
 end;
}
}
if( Manner >= 0 ){
sc_end SC_NOCHAT;
set Manner,0;
}
end;
OnInit:
setarray .Map$[0],"prontera","payon","alberta","aldebaran";
for( set .@i,0; .@i < getarraysize( .Map$ ); set .@i,.@i + 1 )
setmapflag .Map$[.@i],mf_loadevent;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

here, there error.

post-472-0-14975700-1325437119_thumb.png

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

:D ..just wondering....you dont even know how to solve a simple typo error ??? :D

change

setarray .Map$]0],"prontera","payon","alberta","aldebaran";

into this

setarray .Map$[0],"prontera","payon","alberta","aldebaran";

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

3% on scripting - -" i dunno script or script anything..... i doing server alot thing do myself. -.-" i just can request help. in my reality dun have scriptor friend.

i been spending too long for server. think>plan>pay script>learn some simple thing>move npc>test script>add custom item>add custom mob>request help like that. can say most of the time work until AM very late. now starting feel wan give up. but will move til the end zz. too many thing want do myself. my head almost blow up. if can i wan reduce some burden try to avoid some part >.<"

now have two method on disable chat - -" which one i should use? script or source?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

:D That doesnt even need any scripting skills.....just find the typo...beside the typo has been "shown" in the map server using quotation marks.....

now have two method on disable chat - -" which one i should use? script or source?

it is depend on you....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

:D zzzzz

i try not working. i think i use the source one.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

@chris creation@

http://rathena.org/b...-v10-1219-2011/

1.anyone know how to disable party on Deathmatch PvP? mean player if party cannot go in there if go in will warp out if have party.

Hmm you didn't asked for that in my topic, but I added the Mapflag for that already.

By default the scripts doesn't read that mapflag:

// Use this if you disallows parties
//	for ( set .@mf,0; .@mf < getarraysize($@pvp_mf); set .@mf,.@mf + 1 ) {

// Use this if you allow parties
for ( set .@mf,0; .@mf < (getarraysize($@pvp_mf) - 1); set .@mf,.@mf + 1 ) {

Unncomment the first "for..." and comment the second "for..."

So like this

// Use this if you disallows parties
for ( set .@mf,0; .@mf < getarraysize($@pvp_mf); set .@mf,.@mf + 1 ) {

// Use this if you allow parties
//	for ( set .@mf,0; .@mf < (getarraysize($@pvp_mf) - 1); set .@mf,.@mf + 1 ) {

This is used for every PvP Type, just search the one you want so in this case it starts at line 768.

- script Sample -1,{
OnPCLoadMapEvent:
for( set .@i,0; .@i < getarraysize( .Map$ ); set .@i,.@i + 1 ){
if( strcharinfo(3) == .Map$[.@i] && Manner >= 0 ){
 sc_start SC_NOCHAT,-1,0;
 dispbottom "Chatting is Disabled within PVP Maps.";
 end;
}
}
if( Manner >= 0 ){
sc_end SC_NOCHAT;
set Manner,0;
}
end;
OnInit:
setarray .Map$[0],"prontera","payon","alberta","aldebaran";
for( set .@i,0; .@i < getarraysize( .Map$ ); set .@i,.@i + 1 )
setmapflag .Map$[.@i],mf_loadevent;
end;
}

For this you can use the array of my maps, no need to create a another array, they are server temporar variables btw.

Just exchange the name with mine ^^.

Another case would be if only want specified maps, then you'll have to use Emistry's script.

Another option would be that I add it to my script, if Emistry allows it ^^.

Regards,

Chris

Edited by llchrisll
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

@chris thx. no wonder can't . that one is for disable party --", i thought disable nochat inside pvp.

ok, i try make a party go in. the party name gone in my name. but when i open alt+H i can still view party in my list @@" i try type /leave and /organize partyname. the party is recreate /no1

Edited by manabeast
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

add the party lock mapflag

try this

mapname    mapflag    partylock

this will prevent them from modifying any things related with Party...

Another option would be that I add it to my script, if Emistry allows it ^^.

well..if the script work just fine...i am okay with it......

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