Jump to content
  • 0

PVP ON on a chosen part of a MAP


VhayneRO

Question


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

Well as the title says, id like to make a request, if someone could teach me how to turn on pvp on a certain Place in a map

i got the idea from this script

Welgaia,149,188,3 script Golden Dog 81,{
if (getgmlevel() >= 60) {
 announce "Golden Dog: Pick up my GOLD!",bc_map;
 set @j,0;
 while (@j <= 140) {
  set @i,0;
  while (@i <= 14) {
   makeitem 670,1,"Welgaia.gat",150+@i,201-@j;
   set @i,@i+3;
  }
  set @j,@j+2;
 }
}
}

its the Poo Dog NPC that drops GOLD/ETC on a certain Coordinate..

I know its posible to turn on PVP on a certain coor :D please help!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

okay, that can be fixed!

you only have to check, from where they warp to another map.

if they aren't in that area, do @battleignore and if they are in that area and warp with an npc or something only an end.

like this:

getmapxy @loadmap$,@x,@y,0;

if (@loadmap$ == "prontera" && @x > 149 && @x < 163 && @y > 74 && @y < 89){

warp "izlude",0,0; // <--- just an example, i dunno the right "warp" command at the moment.

end;

}

atcommand "@battleignore";

warp "izlude",0,0; // <--- just an example, i dunno the right "warp" command at the moment.

end;

you've to edit any warp on this map with this command.

and this (just once) ->

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

}

just how i told ya, it's really anoying and not the best way, but i think it's the only way at the moment.

but i dunno.

i'm not good at editing the source code, so it's up to you, if you wanna do it like this.

Edited by Shikka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

It may be possible but still it is up to the developers if they will implement some custom things not aligned with the official... :D

For now there is no such mapflag that can turn on pvp on a certain part of a map unlike (set vending cell, and a like).

Edited by Kaito_Kid
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Its possible if you use cell_basilica with PvP on.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

you've got one another option.

It's not the best way to do so, but it'll work.

i've tested it!

1.pvp on:

activate permanent pvp on the desired map

2. loadmapevent:

- script name -1,{

OnPCLoadMapEvent:

getmapxy @loadmap$,@x,@y,0;

"if (@loadmap$ == "prontera") {atcommand "battleignore";} //this will protect the player, who wont do pvp

}

3. the npc's:

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){

if (@ig == 1) end;

atcommand "@battleignore"; // this will deactivate the immunity to all players in the desired area (you can get killed by other players)

set @ig,1;

end;

}

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

works now :D

Edited by Shikka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Good script, but what happens if they're in the section that has "battleignore" enable then they warp to a new map?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

I try using @monsterignore because I want to make a certain map pvp and its bug because if I warp to the other map no one can hit me because I just warp and did not walk outside so the immunity is still there.So I give up with finding this kind of script that can make a certain portion of the map become pvp. I hope someone make this happen.

Link to comment
Share on other sites


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

++ on this :) thank ya

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