Jump to content

CaioVictor

Members
  • Posts

    75
  • Joined

  • Last visited

Everything posted by CaioVictor

  1. Hi all ^^' I need to create a function that does the same as the vendings: each amount of Zeny has a specific color. The problem is not to create the function, but to know the relationship between the amount of zeny and its color. Any help will be very well received ^^' Att, CaioVictor.
  2. Hi all ^^' Firstly sorry my english! I need to up my homuculus exp table(RE) until lvl 400, but i don't know how to calculate. I try to found any exp table for RE that suports lvl 400, but nothing founded =\ Could anyone help me? I appreciate any help! Att, CaioVictor.
  3. Hi emmandebel! Thanks for replying ^^' The link was a great help! Att, CaioVictor.
  4. Hi all ^^' I need to dynamically duplicate NPCs but there is no command to do this, right? I've seen one source modifications which unfortunately does not work with the new revisions of the emulator, I'm willing to pay for this mod. Could anyone help me? I appreciate any help! Att, CaioVictor.
  5. Hi Yoona! I searched on google but i have not found a way to create this association, have not really found a way =\ But thanks for replying! Att, CaioVictor.
  6. Hi all ^^" Firstly sorry my english! I'm trying to find the SPR/ACT file of weapons and shields with reference to the class ID and the char table field(weapon/shield), but I can not understand the association between this informations. Can anyone help me to create this association? I appreciate any help! Att, CaioVictor.
  7. Hi BRDominik! This code no longer works! I'm trying to make it work but as I do not understand the SOURCE probably will not get to work =\ Att, CaioVictor.
  8. Ok! =\ Thanks for all your attention. Att, CaioVictor.
  9. Hi Capuche, thanks for answer ^^' Not exactly, i want to know the sprite ID, as shown below: map,x,y,1 script My Name 465,{ OnInit: announce "My sprite ID is 465!",bc_all; end; } But I do not know if there is a way to get the ID of the sprite =\ Anyway, thank you for helping me! Att, CaioVictor.
  10. Hi all ^^' I have a question to the npc script, is there a command that returns the id of npc sprite? Or is there some way to check the current npc sprite? I'll be very grateful for any help. Att, CaioVictor.
  11. Hi all ^^' Firstly sorry my english. I need to dynamically duplicate and remove NPCs, and with some research I found this code http://www.eathena.ws/board/index.php?showtopic=270648 but this change does not work in the new revision, someone would or could match this change to the new revisions. I'll be very grateful for any help. Att, CaioVictor.
  12. Hi Emistry! Well, the sample sended by Brynner doesn't work here but removing the line in msgstringtable.txt works ^^' The line is '(%d)#' Thank you all! Att, CaioVictor.
  13. Ok, thanks for your attention! I'll try and return with results, but now i am going to sleep, here in Rio de Janeiro is too latte and i need to go. Thanks fo all again! Att, CaioVictor.
  14. Hoh, thanks for the example and attention. ^^' The "10?" in the end of the sample has any meaning? Att, CaioVictor.
  15. Ok! Can you teach-me to do it? Thanks for answering! Att, CaioVictor.
  16. Hi Brynner, thanks for answering! I talking about service select ^^" Thank you again! Att, CaioVictor
  17. Hi all ^^' Firstly sorry my english. I'm using hexed 2012-04-10 with langtype 18 and version 26 in clientinfo.xml, i have tryed a lot combinations for remove server online users count but nothing works. Someone can teach-me to remove this count? I appreciate any help! Att, CaioVictor.
  18. Hi Fresh prince, thanks for answering! Well, what I would like to know is how to check if a char is mounted (using the reins) in the database. Thank you again! Att, CaioVictor.
  19. Hi all ^^' I'm from Brazil, them sorry my bad english. I'm trying to find in DB one way to determine if char is mounting(new mount) or not, but i can't found anything about it. More one question, is there any way to check open vending in DB? I appreciate any help! Att, CaioVictor.
  20. Hi all, i'm from brazil ^^' Well, I have a doubt in the database have a table 'guild_member' and 'guild_position', and the 'guild_member' a few chars of the same guild with the same 'position' and table 'guild_position' there is only one char for each 'position'. How do I relate these tables? I look forward to resposte and sorry my english. Att, CaioVictor.
  21. Thanks a lot KeyWorld, this works ^^' I have to do some modifications, but this works fine, tkx brow =)
  22. Thanks for answer KeyWorld! The code will be something like this? for($i=0;$i<$this->sHeader['num_pal'];$i++){ $this->frames[$i] = unpack('Swidth/Sheight/Sdata_length', fread($this->spr, 0x06)) + array('offset'=>ftell($this->spr)); fseek($this->spr, $this->frames[$i]['data_length'], SEEK_CUR); for($c = 0; $c < $this->frames[$i]['data_length']; $c++){ $spr_index = ??? } }
  23. Ok, let me see... this is my code to open spr file: function readSprite($sprite){ $this->spr = fopen($sprite, "rb"); $this->sHeader = unpack('H4ident/Sversion/Snum_pal/Snum_rgba',fread($this->spr, 0x08)); $this->sSize = filesize($sprite); $this->numberFrames = $this->sHeader['num_pal']+$this->sHeader['num_rgba']; $this->sVersion = dechex($this->sHeader['version']); $this->sVersion = preg_replace('{([0-9])(.*?)([0-9])}', '$1.$2', $this->sVersion); if($this->sHeader['num_pal'] > 0) { for($i=0;$i<$this->sHeader['num_pal'];$i++) { $this->frames[$i] = unpack('Swidth/Sheight/Sdata_length', fread($this->spr, 0x06)) + array('offset'=>ftell($this->spr)); fseek($this->spr, $this->frames[$i]['data_length'], SEEK_CUR); } } elseif($this->sHeader['num_rgba'] > 0) { for($i=0;$i<$this->sHeader['num_rgba'];$i++) { $this->frames[$i] = unpack('Swidth/Sheight', fread($this->spr, 0x04)); $this->frames[$i]['data_length'] = $this->frames[$i]['width'] * $this->frames[$i]['height'] * 4; $this->frames[$i]['offset'] = ftell($this->spr); fseek($this->spr, $this->frames[$i]['data_length'], SEEK_CUR); } } $this->frames['PAL'] = ftell($this->spr); $i=0; $a=0; while(!feof($this->spr)){ $color = @unpack('Ccolor', fread($this->spr, 0x01)); if(dechex($a) < 100) { $this->palette[$a] .= $color['color'].":"; } $i++; if($i >= 4) { $this->palette[$a] = rtrim($this->palette[$a],":"); $a++; $i=0; } } } Can you show me what is tha same that $spr_index?
  24. Thanks a lot KeyWorld. But this code "imagesetpixel( $img, $x, $y, $palette[ $spr_index ] );" is inside a loop? what is $spr_index? Thanks for help me! Att, CaioVictor.
  25. Hi all, i'm brasilian then sorry my english. I'm wrinting a php code to read spr files and build char image, but how can i make code read pal files and apply this palette to a (head)hair? Please i'm trying to do this a long time. If you can help me or know where can i find a code, it will be helpfull. Thanks for all! Att, CaioVictor. EDIT 01 =======> I'm searching in google and i can't find anything to help me with this
×
×
  • Create New...