View Single Post
  #4  
Old 08-25-2009, 10:32 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Well I finished experimenting and ended up making this nifty drawing function on the serverside.

PHP Code:
// Coded for Classic Bodies
function drawCharacter(obj) {
  
// Get Player Variables
  
temp.headimg obj.head;
  
temp.bodyimg obj.body;
  
temp.hatimg  obj.attr[1];
  
// Draw Player
  
temp.panel = new TDrawingPanel();
  
temp.panel.setsize(4864);
  
// Draw Body
  
temp.panel.drawimagerectangle(816+16temp.bodyimg6403232);
  
// Draw Head
  
temp.panel.drawimagerectangle(82+16temp.headimg032*23232);
  
// Draw Hat
  
temp.panel.drawimagerectangle(00temp.hatimg9604848);
  
// Save Image
  
temp.panel.saveimage("cartridge/test.png");
  
// Destroy Panel
  
temp.panel.destroy();

Only issue is the whole body colors thing.
__________________
Quote:
Reply With Quote