From ff2dd3a0c696cbcd659837ff736f927fab8937e3 Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 4 Jan 2008 12:41:49 +0000 Subject: Modified the map_setcell() code to to use a boolean flag instead of needing SET_ / CLR_ pairs of defines (topic:174323). Also removed script object 'setcell', added script function 'setcell'. - Now you can manipulate cell information without needing @loadnpc - You can also manipulate the terrain ('gat') type itself, using the new cell_walkable, cell_shootable and cell_water constants (currently the implementation uses bit flags too, so to get the type you want, you need to adjust the flags one by one) - This breaks current scripts, so please adjust places that use setcell (also be sure to _only_ use predefined constants, not direct numbers) - Details can be found in the script reference. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12009 54d463be-8e91-2dee-dedb-b68131a5f0ec --- db/const.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'db') diff --git a/db/const.txt b/db/const.txt index ed9c3d57a..559157b84 100644 --- a/db/const.txt +++ b/db/const.txt @@ -224,12 +224,14 @@ mf_nochat 43 mf_noexppenalty 44 mf_guildlock 45 -cell_wall 1 -cell_water 3 -cell_ground 5 -cell_regen 32 -cell_basilica 64 -cell_npc 128 +cell_walkable 0 +cell_shootable 1 +cell_water 2 +cell_npc 3 +cell_basilica 4 +cell_landprotector 5 +cell_icewall 6 +cell_novending 7 StatusPoint 9 1 BaseLevel 11 1 -- cgit v1.2.3-70-g09d2