Jump to content
  • 0

Asking for Assistance Plox


VhayneRO

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  02/12/12
  • Last Seen:  

Ok good day Rathena!

so i came i with this idea to turn on pvp on a certain coordinate on a map.

in my case i have a custom map called "revencia",

On my recent post sir #Shikka posted this code

//===================================
- script name -1,{
OnPCLoadMapEvent:
getmapxy @loadmap$,@x,@y,0;
"if (@loadmap$ == "prontera") {atcommand "battleignore";} //this will protect the player, who wont do pvp
}
//===================================
prontera,155,82,0 script pvp_on_try 139,5,5,{
OnTouch:
getmapxy @loadmap$,@x,@y,0;
if (@loadmap$ == "prontera" && @x > 149 && @x < 163 && @y > 74 && @y < 89){
warp "Welgaia",157,222; // <--- just an example, i dunno the right "warp" command at the moment.
end;
}
atcommand "@battleignore";
warp "Welgaia",157,222; // <--- just an example, i dunno the right "warp" command at the moment.
end;
//===================================
- script logoutevent -1,{
OnPCLogoutEvent:
getmapxy @logoutmap$,@x,@y,0;
if (@logoutmap$ == "prontera" && @x > 149 && @x < 163 && @y > 74 && @y < 89){
warp "prontera",170,90; // have to be higher or under the pvp-area coordinates.
}
end;
}
//==================================
prontera,148,74,4 script pvp_on_try2 139,10,10,{
if (@ig == 1) {atcommand "@battleignore";} // <--- that have to stay for the duplicates
set @ig,0;
end;
}
//4. duplicates:
prontera,163,89,4 duplicate(pvp_on_try2) pvp_on_try#3 139,10,10 // will activate immunity to players who leave the area again
prontera,148,89,4 duplicate(pvp_on_try2) pvp_on_try#4 139,10,10 // will activate immunity to players who leave the area again
prontera,163,74,4 duplicate(pvp_on_try2) pvp_on_try#5 139,10,10 // will activate immunity to players who leave the area again

So, honestly, i have no clue what to do next after having this script.

i dont have a clue what to edit here >.> *ashamed*

ok so, at a custom map that i use, there is this bridge. so i want to turn on pvp from

"revencia 161,114" downwards upto "revencia 161,87"

Help Please

Any help would be deeply Appreciated!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

even though you got this to worked , a player can still use @battleignore again inside the coordinates thus making him turning off his pvp

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