Jump to content

rafoka

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by rafoka

  1. If you SQL is on the web, your rathena folder already is portable. (i guess)
  2. It's a nice library.
  3. Look, I have a function here that i think will serve you: /*========================================== * rentitemr <item id>,<seconds>,<refine> * rentitemr "<item name>",<seconds>,<refine> *------------------------------------------*/ BUILDIN_FUNC(rentitemr) { struct map_session_data *sd; struct script_data *data; struct item it; int seconds, refines = 0; int nameid = 0, flag; data = script_getdata(st,2); get_val(st,data); if( (sd = script_rid2sd(st)) == NULL ) return 0; if( data_isstring(data) ) { const char *name = conv_str(st,data); struct item_data *itd = itemdb_searchname(name); if( itd == NULL ) { ShowError("buildin_rentitem: Nonexistant item %s requested.\n", name); return 1; } nameid = itd->nameid; } else if( data_isint(data) ) { nameid = conv_num(st,data); if( nameid <= 0 || !itemdb_exists(nameid) ) { ShowError("buildin_rentitem: Nonexistant item %d requested.\n", nameid); return 1; } } else { ShowError("buildin_rentitem: invalid data type for argument #1 (%d).\n", data->type); return 1; } seconds = script_getnum(st,3); refines = script_getnum(st,4); memset(&it, 0, sizeof(it)); it.nameid = nameid; it.identify = 1; it.expire_time = (unsigned int)(time(NULL) + seconds); it.refine=refines; it.vid = 0; if( (flag = pc_additem(sd, &it, 1)) ) { clif_additem(sd, 0, 0, flag); return 1; } clif_rental_time(sd->fd, nameid, seconds); pc_inventory_rental_add(sd, seconds); if( log_config.enable_logs&LOG_SCRIPT_TRANSACTIONS ) log_pick_pc(sd, "N", nameid, 1, NULL); return 0; } I will suppose that you know how to add a script command
  4. I would love it, CONSTANTS is in all the way too much better
  5. Very nice Squishy & peopleperson49.
  6. It really works?So why I compiled my lua's with luac all this time? Its a waste of time...
  7. 2493
  8. So nice man!
  9. Why you do this: if( strcharinfo(3) == ".@a$" ? This sould be strcharinfo(3) == .@a$ ? Because comparing the string ".@a$" doesn't make sense at all.
  10. try 2011-06-14, this works fine to me.
  11. I had problems like you using thor 2.6 too. I think thor 2.1 is better than 2.6
  12. Nice! I always enjoyed this new-old way of scripting (More Like-C) from that mod-released in the old ea. Good job ...
  13. "Loucura traduzir tudo manualmente é. Pegar pronto do brAthena sabia decisão é." - Mestre Yoda.
  14. Cara, algumas definições estão estranhas. Vetor normalmente é uma definição para justamente um array e não para um elemento do array, um elemento do array normalmente é chamado de element mesmo ou unidade. Além disso o limite delas é de 128 e não 127. Por isso a frase "Sabe-se que as Arrays do emulador só vão até 127 vetores" corretamente e mais formal poderia ser nessa forma: "Sabe-se que as arrays do emulador possuem o limite de 128 elementos/variáveis (indices variando de 0 até 127)".
  15. nice idea and system
  16. It's very sad to see what is happened to green peach.
  17. Bash. Because it is so nostalgic with swordsman level 12/1.
  18. 1273
  19. Haha, nice work man, its very creative.
  20. I use this. Very good job man.
  21. I dont know a email solution for windows, maybe because ceres is focused on linux, so is better to you use this with linux (and for rathena ever, seriously). SMTP server for windows? Google it, maybe you found a good one.
  22. Thunderbird? Thunderbird is a SMTP client, you need a SMTP Server. I'm not sure this but you need only one Linux Server with sendmail installed (any good linux server have it) and so don't need setup any smtp config.
  23. You tried to change the 'Database' field inside each server array ? //'Database' => 'ragnarok', // Defaults to DbConfig.Database Is intuitive that this is for ur purpose but i haven't tested yet.
×
×
  • Create New...