Jump to content

Jupeto

Members
  • Posts

    225
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jupeto

  1. This belongs to client. Topic moved. To answer your question I think image lang yan ( still unsure ) just check and edit the following bmp file
  2. 3597
  3. 3595
  4. RMS Riotblade's Sprite Bible is your friend
  5. Well I'm now able to extract the frame from each .spr file. I was reading this thread but I'm still not getting the right syntax http://www.google.co...8kW0gN7uoPoff6w
  6. I really don't know how to work with palettes To any of you know how please do help, Thanks here's my current code $sprite = new sprite('../../data/sprite/head/' . $gender . '/' . $head . '_' . $gender . '.spr'); $sprite_resource = $sprite->displayFrame( $frame ); $palette_handle = fopen( '../../data/palette/head/9.pal', "r" ); $palette_data = fread( $palette_handle, 1024 ); /* Open the base job image */ $base_job = imagecreatefrompng('../../data/sprite/body/1.png'); $frame = $sprite->frames[$frame]; $width = $frame['width']; $height = $frame['height']; $data = $frame['data']; $pal = array(); for ( $i=0, $j=4; $i<256; ++$i, ++$j ) $pal[$i] = imagecolorallocate( $sprite_resource, ord($sprite->palette[$j++]), ord($sprite->palette[$j++]), ord($sprite->palette[$j++]) ); for ( $i=0; $i < $width * $height; ++$i ) { imagesetpixel( $sprite_resource, $i % $width, $i/$width | 0, $pal[ ord($data[$i]) ] ); } /* Create the base head image*/ imagegif( $sprite_resource, $temp_file ); This currently results to this image; I only want the head to be dyed
  7. I'm just wondering if how can I apply a palette on my created single head frame resource something like in the code below $head = imagecreatefrompng('first.png'); I'm using PHP to apply .pal file. Also, please be noted that the image above doesn't come / parsed from .spr file
  8. Try using pipelines ( || ) instead <?php if($_GET['module'] == 'main' || empty($_GET['module'])): ?>
  9. 4571
  10. Any credits from at least, Thanks Original thread here : http://www.eathena.ws/board/index.php?showtopic=157606
  11. Login as admin Navigate to your 'Item Database' Page View the item you want to add in your 'Item Shop' While in item view page In default theme of flux you'll see just click the 'Add to Item Shop' link and it will redirect you to 'Add To Item Shop' page. [*]From there you must fill up all required fields, just click the 'Add' button below when you're done. Category : from which category this item belongs Credits : how much credit this item is Quantity : how many of this item will the user get when they purchase this Info : Information of this item Image : upload If you have an image for this item [*]Item now added to your Item Shop. [*]Give rep ^____^
  12. Thank you pre, +1 for you... case closed!
  13. Just want to know what are those tables associated when you create a character in character selection screen?
  14. 3564
  15. 3561
  16. Can anyone make me one? Link to page : https://www.facebook.com/artworxcustomenhancement Current Theme : Web Related Scripts / Apps Color Scheme : Blue and White or Grayscale
  17. Try to find some here http://rathena.org/board/files/
  18. 3555
  19. 3553
  20. 3550
  21. 3548
  22. Just wanna share what I've done/edited so far with flux cp SNIPPETS WOE STATUS - CASTLE PAGE PAGINATION ADD-ON / EXTENSIONS CREATE CHARACTER ~ http://rathena.org/b...eate-character/ GIVEAWAY [initial Release 1.0.0] ~ http://rathena.org/b...addon-giveaway/ ~ DELETE ITEM EXTENSION ~ http://rathena.org/b...item-extension/ My Services Click here for my services
  23. Windows notepad/notepad++ is the one behind of all my web applications.
  24. 3540
  25. 3537
×
×
  • Create New...