Jump to content

ays297

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by ays297

  1. ays297

    Non-RO VPS

    How about setting up an ro? Is it the same? And does it have ddos protection? And i also use putty and winscp to communicate with my server, not using vnc.
  2. ays297

    Non-RO VPS

    Hey, I just wanted to know if using a non-ro vps is actually better than using an RO vps. And if yes, what's the best hosting should I go for? And also, is there any difference in setting up a RO on a non-RO VPS? If yes, would you please help me?
  3. Is there any way to change the exp rate of each players, not as a whole? For example exprate = exp_rate / <var>
  4. I want to be able to drop an item but I also need the refines, and cards compounded into it to be included when drop. Any idea how to do it? It seems that there's no such thing as makeitem2
  5. Well, this might be offtopic but I wanna know what's the difference of using the normal character variable, the one found in global_reg_something, and the one you just made where you create a new table.
  6. Can't we just use a regular character variable for the rebirths?
  7. Is there an event that triggers when you attack a player? Or something similar that I can use when a player attack another player on a PK map?
  8. Regarding exp gain, I found out how to do that part, but I'd like to know how to increase exp required to level up depending on some character variable? Tried this but didn't work, something to do with attachrid, Thanks to the both of you
  9. Is it possible for the db file mainly exp.txt to be multiplied or manipulated by a character variable? I'd like to change/increase the exp required to level up depending on a certain character variable.
  10. Well, what I'm really after is to reduce the exp gain per a certain character variable. For now, I'm really having a hard time doing it myself via pc.c in the part of pc_expgain, so if anyone is willing to help, I'm fine with that. If reducing the exp gain is really that impossible, at least manipulating the exp table located in the db folder is fine by me as long as the exp required to levelup is increased per a certain character variable. Thanks in advance.
  11. Well, I have a code like this expred = pc_readregistry(sd,"expred",3); and whenever I compile, it returns an undefined value. Is there something wrong with my syntax or what? And if you can just help me how to give an exp reduction per variable example formula total exp gained = total exp gained - expred
  12. EDIT: NVM, I found out how to do it. Thanks emistry.
  13. I just wanna now how can I add a character variable in the some @commands like @who. like: switch (display_type) { case 2: { StrBuf->Printf(&buf, msg_txt(343), pl_sd->status.name); // "Name: %s " if (pc_get_group_id(pl_sd) > 0) // Player title, if exists StrBuf->Printf(&buf, msg_txt(344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) " StrBuf->Printf(&buf, msg_txt(347), pl_sd->status.base_level, pl_sd->status.job_level, job_name(pl_sd->status.class_)); // "| Lv:%d/%d | Job: %s" break;
  14. ays297

    equip(id)

    I'm having problem with the equip(.@itemid) part. Instead of equipping the one obtained via getitem2, it equips other equips in the inventory. EDIT: Found out the problem. Delete this post please.
  15. Ohhh, thanks for that hint. I found this one: http://rathena.org/wiki/Delequip Also found out that you had this issue. Anyway, thanks!
  16. I just wanna know how I can avoid other item, that is not equipped but having the same item id, to be affected with this script. >_< Thanks. set .@itemid, getequipid(.@part); delitem .@itemid,1; getitem2 .@itemid, 1, 1, .@refine, 0, .aaSlot1[.@card], .aSlot2[.@as2], .aSlot3[.@as3], .aSlot4[.@as4];
  17. I see. I'll test this tomorrow. Thanks Emistry!
  18. Something like Emistry made. @Emistry, because of the 'else' part, i'll just ask if there are times that this npc won't give an item?
  19. Is it possible for an npc to give a random item that is a headgear? I'm thinking of doing an query_sql but it's not really that good.
  20. oh, thanks a lot. forget about that, it's fine as long as the server is safe. Anyway, can you tell me how to do a simple sql query via the npc I made? I wanna try it first.
  21. Oh, then by just using 2. my script will be good right? Like safe from SQL Injection? And, yeah, I think I should do that because the script is not really asking for a string right?
  22. is it possible for this part of this script to get an SQL injection? input @upper_hg$; if(query_sql("SELECT `view` from `item_db` where `equip_locations` = 256 and `id` ='"+@upper_hg$+"'") == 0) { mes "No headgear was found"; close; } else { query_sql "SELECT `view` from `item_db` where `equip_locations` = 256 and `id` ='"+@upper_hg$+"'", ouchoice; query_sql "SELECT `name_japanese` from `item_db` where `equip_locations` = 256 and `view` ='"+ouchoice+"'", UFS$;
  23. Is there any way to remove @who indicator: when you type @who Name: ays297 (Super Player) | Guild: lol Name: ays298 (Admin) For example, removing Super Player groups in @who? Or something like that?
×
×
  • Create New...