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
Question
VhayneRO
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
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.