Jump to content

Yum

Members
  • Posts

    27
  • Joined

  • Last visited

1 Follower

Profile Information

  • Gender
    Male

Recent Profile Visitors

2410 profile views

Yum's Achievements

Poring

Poring (1/15)

3

Reputation

  1. Solved! $dias = $_POST['days']; $days = $dias * 86400; $today = getdate(); $ban = $today['0'] + $days;
  2. Eu acho que entendi isso antes mesmo de tu explicar, veja essa query abaixo: DEFINE('PARTNER_BAN', "UPDATE `login` SET `unban_time` = NOW() + '%d' WHERE `account_id` = '%d' AND `unban_time` = '0'"); Obviamente o %d que vem depois do `account_id`= é o trim($GET_id), no entanto, qual o valor do %d que vem depois do NOW()+ ? É o $ban... Mas o que tem dentro disso? Eu não entendi essa matemática dai, matando essa xarada eu termino o script. Hoje cedo eu dei ban em alguém e ficou assim no unban_time: 1418662291 Usando o getdate eu cheguei a um valor bem parecido (1418576300), isso no php... Porém, como eu faço a soma dos dias? Como eu faço um calculo que retorno o valor correto para a coluna unban_time ?
  3. Hello, I'm trying to make the ban on an account through my php. I am not knowing generate the correct value for unban_time ... Using the basis of Ceres I got this: DEFINE('PARTNER_BAN', "UPDATE `login` SET `unban_time` = NOW() + '%d' WHERE `account_id` = '%d' AND `unban_time` = '0'"); What is the value of %d? if (isset($GET_frm_name) && isset($GET_id)) { $query = sprintf(ACCOUNTS_SEARCH_ACCOUNT_ID, trim($GET_id)); $result = execute_query($query, 'adminaccban.php'); if ($line = $result->fetch_row()) { $today = getdate(); if (notnumber($GET_id)) alert($lang['INCORRECT_CHARACTER']); if ($GET_bday == $today['mday'] && $GET_bmonth == $today['mon'] && $GET_byear == $today['year']) $ban = 0; else $ban = truedate($GET_bday, $GET_bmonth, $GET_byear); if ($ban <= time()) $ban = 0; if ($GET_block == 5) $ban = 0; if ($_SESSION[$CONFIG_name.'level'] <= $line[4] || ($line[4] >= $_SESSION[$CONFIG_name.'level'] && $_SESSION[$CONFIG_name.'level'] != 99)) { $ban = $line[6]; $GET_block = $line[7]; } $query = sprintf(ACCBAN_UPDATE, $ban, $GET_block, trim($GET_id)); $result = execute_query($query, 'adminaccban.php'); alert("Account Updated"); } } function truedate($day, $month, $year) { $diames = array ( 1 => 31, 2 => 28, 3 => 31, 4 => 30, 5 => 31, 6 => 30, 7 => 31, 8 => 31, 9 => 30, 10 => 31, 11 => 30, 12 => 31, ); if (($year % 4) === 0) $diames[2] = 29; if ($day > $diames[$month]) return 0; return mktime(0, 0, 0, $month, $day, $year); }
  4. Yum

    HP Bar

    Strange, a friend assured me have done it in src.
  5. Yum

    HP Bar

    How do I change the color of the bar hp? You know that greenish color, I wanted a different color there ... void faction_show_hp(struct map_session_data *sd) { unsigned char buf[34]; const int cmd = 0x2e0; nullpo_retv(sd); WBUFW(buf,0) = cmd; WBUFL(buf,2) = sd->status.account_id; memcpy(WBUFP(buf,6), sd->status.name, NAME_LENGTH); if( sd->battle_status.max_hp > INT16_MAX ) { WBUFW(buf,30) = sd->battle_status.hp/(sd->battle_status.max_hp/100); WBUFW(buf,32) = 100; } else { WBUFW(buf,30) = sd->battle_status.hp; WBUFW(buf,32) = sd->battle_status.max_hp; } clif_send(buf, packet_len(cmd), &sd->bl, THIRDY_FACTION); } Where changes?
  6. [Warning]: clif_parse: Received unsupported packet (packet 0x0002, 10 bytes received), disconnecting session #7. This error is happening when I try to recruit a group, click the ok to take now disconnect.
  7. I come to suggest something that I think is quite useful. Instead of using the name of the player in command "#", it was possible to use char_id. Some players have nicknames with space and stuff, it makes can not perform such an operation.
  8. I'm working with renewal now, just found it odd to huge difference in levels.
  9. http://irowiki.org/wiki/Knight_Job_Change_Guide - http://db.irowiki.org/db/monster-info/1106/ 1106,DESERT_WOLF,Desert Wolf,Desert Wolf,103 Monster level 103 against a level 60 player?
  10. Sorry if the topic but I revived her with the same question the guy above ...
  11. Actually this is normal "delay" to get job level 50 with the third? I'm Level [101/10] in a "20/20" server
  12. I've read this tutorial but it helped me a lot! I think the way it creates the actions of the monsters are different from the items.
  13. Hello, I'm new in this area of creating monsters. I have some frames made ​​and passed to sprite (.spr), how do I do actions (.act)?
  14. Someone could tell me what the structure of this package?
  15. Hope this helps someone to build the packages of this version, beside the bars have the current values ​​of the packets of the emulator, if you have more than one, separated by "|" is because they had more than one in the emulator, starting from the old to the new. 0202 5 //0x0202,26,friendslistadd,2 022D 19 //0x022d,5,hommenu,2:4 023B 26 //0x023b,36,storagepassword,2:4:20 0281 0 //0x0281,4 | 0x0281,36,storagepassword,0 035F 6 //0x035f,-1 | 0x035f,5,walktoxy,2 0361 5 //0x0361,5,changedir,2:4 0362 6 //0x0362,6,takeitem,2 0363 8 //0x0363,6,dropitem,2:4 0364 8 //0x0364,8,movetokafra,2:4 | 0x0364,5,walktoxy,2 0365 18 //0x0365,8,movefromkafra,2:4 0368 6 //0x0368,6,getcharnamerequest,2 | 0x0368,6,solvecharname,2 0436 4 //0x0436,19,wanttoconnection,2:6:10:14:18 | 0x0436,19,wanttoconnection,2:6:10:14:18 | 0x0436,19,wanttoconnection,2:6:10:14:18 | 0x0436,26,friendslistadd,2 | 07E4 6 //0x07e4,-1,itemlistwindowselected,2:4:8 07EC 8 //0x07ec,6 | 0x07ec,8 0802 26 //0x0802,18,bookingregreq,2:4:6 086C 2 //not found 0871 2 //not found 0873 2 //not found 0884 2 //0x0884,-1,searchstoreinfo,2:4:5:9:13:14:15 0885 2 //0x0885,6,dropitem,2:4 | 0x0885,7,actionrequest,2:6 0886 2 //not found 0889 2 //0x0889,10,useskilltoid,2:4:6 0891 2 //not found 089C 2 //not found 08A2 2 //0x08a2,12,searchstoreinfolistitemclick,2:6:10 08A6 2 //not found 08A8 36 //not found 091C 2 //not found 091D 2 //not found 0938 2 //not found 0945 2 //not found 094B 2 //not found 0961 2 //not found 096A 6 //0x096A,6,getcharnamerequest,2 097B 0 //not found Changed lines this version for this release 411 451 465 534 640 642 643 644 645 646 649 653 684 692 713 810 815 817 834 835 836 839 847 858 864 868 870 984 985 1012 1025 1031 1053 1062 lines added 1079
×
×
  • Create New...