Jump to content

Cretino

Members
  • Content Count

    75
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Cretino

  1. Try this example: query_sql "SELECT TIMESTAMPDIFF(HOUR, `lastlogin`, NOW()) FROM `login` WHERE `account_id` = '2000000'", .@hour_diff; mes "Diff: " + .@hour_diff;
  2. Use this SQL Table: Now try it: query_sql "INSERT INTO `event_rank`(`id`, `name`, `event_points`, `t_event_points`) VALUES ('"+getcharid(3)+"','"+strcharinfo(0)+"','1','1') ON DUPLICATE KEY UPDATE `event_points` = `event_points` + '1', `t_event_points` = `t_event_points` + '1'"; Tested and works.
  3. HAHAHA!! I knew it was a joke, but now that I noticed that too. 'Happy April fools day - Hercules'.
  4. I think is it you want. You can change the zeny cost changing values of array '.zeny_cost' in 'OnInit:'. // The order is: 1st, high 1st, 2nd, rebirth, high 2nd, 3rd setarray .zeny_cost[0], 10000, 20000, 50000, 100000, 200000, 300000;
  5. I did some changes and works fine. It can still be improved. @EDIT Little fix. @EDIT2 Other fix in pet script warning. (Little mistake >.<) pc_bonus_warning_v3.patch pc_bonus_warning_v2.patch pc_bonus_warning.patch
  6. I think the problem is your compiler, try this: In 'map/skill.c' Search for: Replace:
  7. Try this: Find: if ( ( md->class_ == MOBID_EMPERIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && Replace: if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
  8. Just do what @@Ridley say. It'll work.
  9. I think is it you want. @EDIT Little improvement applied.
  10. I redid all the code, I think it is now ok, at least here in my tests works fine... If have problems, I'll try help you.
  11. Hello friend, was seeing something in the function 'bindatcmd' and I made a change that I think you will like it, you will only need apply this change and all script commands will be read and show together in '@commands'. atcommand.c_v2.patch
  12. If have some problem, say here and I try help you.
  13. Of course, just that I can't now, later I send.
  14. Only using source modification. :x
  15. Put '@commands2' in chat to see the custom commands. This is a little example... Here is:
  16. Hey there, did a quick test and I fixed a few things that were causing the problem, now the prize is being delivered and the time the player stay online is saving also, can have some problems, still needs more testing. And have a little problem, if you use '@reloadscript', the function 'while' in event 'OnPCLoginEvent:' stop the time count, but if players relog, time count back again. Sorry for my english, I only understand a little of english.
  17. To add the custom commands to '@commands', you'll have to make a change in the source, if you want do to in script, you have to create a command using the function 'bindatcmd' (see more in 'doc/script_commands.txt') and put your custom commands. If you want the source modification example. Here is: atcommand.c.patch Sorry for my english, I only understand a little of english.
  18. I think you want something like that... To add costs in the warp, you'll have to modify all function calls 'Go' you want charge and add the Zeny value. It's very easy now. eg: Go("prontera",155,183,500); // Warp to prontera, 155, 183 if normal players have 500z @EDIT I forgot one thing, now is working.
  19. I was looking your post and I decided make it, you can test and see if it works, at least here it works normally. Sorry for my english, I only understand a little of english. @EDIT V2: Some little fixes and atcommand 'disguiseguild' with timer now. V3: More fixes. Usage: disguise_with_timer_by_cretino_hercules_rev30326_v3.patch disguise_with_timer_by_cretino_hercules_rev30326_v2.patch disguise_with_timer_by_cretino_hercules_rev30326.patch
×
×
  • Create New...

Important Information

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