Jump to content

dungpt8782

Members
  • Content Count

    63
  • Joined

  • Last visited

Everything posted by dungpt8782

  1. Hi, i'm using lastest GIT Hercules, I added into my script: 06guild_01 mapflag nodrop but when i killed monster in the map, still drop items. Somebody help me pls!
  2. function script Test { mes "[Test]"; for(set .@i,1; getd(".@F"+.@i+"[0]"); set .@i,.@i+1) mes " .@F+.@i+"[0] is exist"; close; OnInit: setarray .@F1[0],30712,1,30711,2; setarray .@F2[0],30713,1,30712,2; end;} How to make FOR work in case the conditions of the test variables exist? I made this script and work good with rAthena, but did not work in Hercules Somebody help me pls!!!!
  3. Thank you so much Dastgir, but i must change sscanf to sscanf_s to build this plugin. It's still working fine? I have 1 more thing to need your help, pls show me, how to let user select aura from aura collection?
  4. I'm using lastest Hercules Git. Help me pls!
  5. Hi, i'm newbie and i need to help for this problem: $sql = "SELECT value AS acc_cash FROM {$server->charMapDatabase}.acc_reg_num_db WHERE key='#CASHPOINTS' AND account_id={$session->account->account_id}"; $sth = $server->connection->getStatement($sql); $sth->execute(); $oldcash = $sth->fetch()->acc_cash; if ($oldcash > 0){ $cashpoint = $oldcash + $newcash; $sql = "UPDATE {$server->charMapDatabase}.acc_reg_num_db SET value = '".$cashpoint."' WHERE key='#CASHPOINTS' AND account_id={$session->account->account_id}"; $sth = $server->connection->getStatement($sql); $sth->execute(); } else { $cashpoint = $newcash; $sql = "INSERT INTO {$server->charMapDatabase}.acc_reg_num_db (`key`,`value`,`type`,`account_id`) VALUES ('#CASHPOINTS',$cashpoint,2,{$session->account->account_id})"; $sth = $server->connection->getStatement($sql); $sth->execute(); This code used to make for rAthena serrver. Now i change it to use with Hercules but its not work. Someone can help me pls!!! Sorry, my English is bad, i hope you can understand me
  6. Hi, Im using Hercules to make my Pre-Renewal server. When i used Ankle Snare to trap monster, it will teleport when i hit them. How can i make it to no teleport ? Thank you for yr help, sorry, my English is bad
  7. Hi, I just make event "MVP killer" and i want to make it harder. When MVP alive, that map will switch to PK ON, and OFF when MVP dead. Thank you for help!
  8. Hi, I'm newbie in Hercules. I used rAthena before, and they have /db/import to load other custome in itemdb, cash shop, etc... http://rathena.org/wiki/Import_folder/db Can I make it with Hercules. Sorry, my engllish is bad
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.