eKoh Posted January 25, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 206 Reputation: 13 Joined: 01/07/12 Last Seen: July 12, 2020 Share Posted January 25, 2012 (edited) Just like the tittle says... thankz Edited January 25, 2012 by eKoh Quote Link to comment Share on other sites More sharing options...
0 K1NGRAFFY Posted May 9, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 52 Reputation: 3 Joined: 04/23/17 Last Seen: July 20, 2020 Share Posted May 9, 2017 How did you do it bro? Quote Link to comment Share on other sites More sharing options...
0 SpOOn Posted December 2, 2024 Group: Members Topic Count: 1 Topics Per Day: 0.01 Content Count: 10 Reputation: 0 Joined: 11/11/24 Last Seen: April 10 Share Posted December 2, 2024 Hi. Thank you for the tips. Prontera is already configures, but I can't make it wit "prt_in" map. Can anyone help me? Quote Link to comment Share on other sites More sharing options...
Brian Posted January 25, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted January 25, 2012 Create a script that uses OnInit to trigger a series of setcell that turn cell_novending ON for that area. *setcell "<map name>",<x1>,<y1>,<x2>,<y2>,<type>,<flag>; Each map cell has several 'flags' that specify the properties of that cell. These include terrain properties (walkability, shootability, presence of water), skills (basilica, land protector, ...) and other (NPC nearby, no vending, ...). Each of these can be 'on' or 'off'. Together they define a cell's behavior. This command lets you alter these flags for all map cells in the specified (x1,y1)-(x2,y2) rectangle. The 'flag' can be 0 or 1 (0:clear flag, 1:set flag). The 'type' defines which flag to modify. Possible options include cell_walkable, cell_shootable, cell_basilica. For a full list, see const.txt. Example: setcell "arena",0,0,300,300,cell_basilica,1; setcell "arena",140,140,160,160,cell_basilica,0; setcell "arena",135,135,165,165,cell_walkable,0; setcell "arena",140,140,160,160,cell_walkable,1; This will add a makeshift ring into the center of the map. The ring will be surrounded by a 5-cell wide 'gap' to prevent interference from outside, and the rest of the map will be marked as 'basilica', preventing observers from casting any offensive skills or fighting among themselves. Note that the wall will not be shown nor known client-side, which may cause movement problems. Another example: OnBarricadeDeploy: setcell "schg_cas05",114,51,125,51,cell_walkable,0; end; OnBarricadeBreak: setcell "schg_cas05",114,51,125,51,cell_walkable,1; end; This could be a part of the WoE:SE script, where attackers are not allowed to proceed until all barricades are destroyed. This script would place and remove a nonwalkable row of cells after the barricade mobs. If you want to disable vending on the whole map, use the novending mapflag prontera mapflag novending Quote Link to comment Share on other sites More sharing options...
eKoh Posted January 25, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 206 Reputation: 13 Joined: 01/07/12 Last Seen: July 12, 2020 Author Share Posted January 25, 2012 you mean.... OnInit: setcell "prontera",146,159,146,148,cell_novending,1; end; I want to enable vending skill from 146,159 to 146,148 in prontera where do the script has to be? I mean, in trunkconfmapflag ? Quote Link to comment Share on other sites More sharing options...
Brian Posted January 25, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted January 25, 2012 Turn 'cell_novending' ON on the whole prontera map. Then turn cell_novending off on that area to allow vending there. - script prontera_vending -1,{ OnInit: setcell "prontera", 0,0, 400,400, cell_novending,1; setcell "prontera", 146,159, 146,148, cell_novending,0; end; } and this wiki page explains Adding_a_Script 1 Quote Link to comment Share on other sites More sharing options...
eKoh Posted January 25, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 206 Reputation: 13 Joined: 01/07/12 Last Seen: July 12, 2020 Author Share Posted January 25, 2012 thank you brian, now the scripting is working, I see that trunk/doc is really helpful, I just had to add npc: conf/mapflag/prontera_vending.txt in script_mapflags and of course, the script:) Quote Link to comment Share on other sites More sharing options...
Question
eKoh
Just like the tittle says... thankz
Edited by eKohLink to comment
Share on other sites
6 answers 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.