Jump to content
  • 0

how to put safe zone on pvp area


Brynner

Question


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

is anyone here know how to implement this?

inside the pvp room. there will be a specific safe zone there. no battle for monster and player.

screenshot was taken from the ordeal_1-2 map.

post-1381-0-70079400-1339678542_thumb.jpg

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

See http://rathena.org/b...reets-in-towns/

cell_basilica should work like that.

can you gave me a sample?

"ordeal_1-2",

146,146,

146,161

"ordeal_1-2",

161,161,

161,146

here are the coordinates

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Look at the example F0xxy gave. You just need to replace 'cell_novending' with 'cell_basilica' and 'dellar' with 'ordeal_1-2'.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

i can still attack a player even i already put the coordinates. and also monster still attacking me.

Edited by Brynner
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Please share the code you wrote.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

-    script    Setcell#func    -1,{

OnInit:
setcell "ordeal_1-2",161,146,146,161,cell_basilica,1;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

It won't work if the map is already set to pvp, in order to get this to work is removing the pvp map flag, setting the cell_basilica in the center and making 4 areas with cell_pvp:

ordeal.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

what if i made my custom map flag? example. case CELL_PK. do you think it will work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

The basilica area would be overlayered by the mapflag if I'm not mistaken, that would be like setting both PK and basilica in the same area...

You can either use the other 4 squares as cell_pvp or cell_pk, up to you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

It might work with mapflag pvp and instead of adding basilica, you remove cell_pvp in that area.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

It might work with mapflag pvp and instead of adding basilica, you remove cell_pvp in that area.

Mapflags overlap cell_pvp, it doesn't work that way.

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