View Single Post
  #1  
Old 08-16-2008, 01:28 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
I use this formula a lot when I'm doing external (or even internal!) programs/scripts that deal with Graal levels.

PHP Code:
base64 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

temp.data "aa";
temp.letters = {data.substring(01), data.substring(12)};

temp.tile int((base64.pos(letters[0]) << 6) + base64.pos(letters[1]));

temp.tX = ((tile # 16) * 16) + (int(tile / 512) * 256);
temp.tY tile # 512; 
(Please replace # with a percent sign).
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote