Got akanon to steamfont zoneline to work (code & db)
I've been pulling my hair out trying to figure out why akanon->steamfont zoneline didn't work. I finally got it. The first problem is that the zoneline number is 1000. This is a problem because the database is looking for this to be a 3 digit tinyint so 1000 wouldn't fit in the field anyway. The second problem is that the code has number as an int8 which I believe can be between -127 & 127 (0 - 255 if unsigned), so even if you did change the number to 1000 in the DB, the code still wouldn't handle it correctly. Anyway, here are the changes.
In the DB we need to alter the zone_points table so that number can handle a bigger number. Code:
ALTER TABLE `zone_points` CHANGE `number` `number` SMALLINT(4) UNSIGNED DEFAULT "1" NOT NULL Now we need to update the akanon zone line so that number is reflected correctly. Code:
update zone_points set number = 1000, x = -76, y = 54, z = 2, target_y = -2062, target_x = 528, target_z = -110, target_heading = 999, target_zone = 'steamfont' where id = 148 In \zone\zone.h : Code:
struct ZonePoint { Code:
struct ZonePoint { I'm still trying to figure out how to be able to zone from lavastorm to soltemple correctly, but so far, not getting anywhere. That by the way is a different problem than this. |
great work bud!
will have to test this in the morning. |
All times are GMT -4. The time now is 11:47 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.