Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/28/12 in all areas

  1. This was brought in the past in http://rathena.org/b...-new-gm-system/ by arcenciel, the only concern brought up at that time was made by gepard, which I shall reply to now. So yes, I think we could add this if it's reworked. And we also need to sort out possible license issue with that GeoIP data. A DBMap isn't viable, there are millions of entries in that file and it uses it's own algorithm to go thru them quickly. The GeoIP file is provided free of charge by maxmind.com (its the free type) I'm joining that discussion this late because back then I didn't seem to think it'd be worth, I have changed my mind however and I'm now willing to discuss it. I do think it's a very handy feature and seeing by the amount of times it was downloaded I do think it will be worth having on the svn. The rodeo has started! let me know what you think. share your thoughts, love and cookies.
    3 points
  2. Summary As of r15982, variables used within scripts can be directly assigned to as you would using another programming language. That is to say, that the following set of predicates will work: @i = 1; @i++; @i *= 2; @i = @j = 1; @i -= @j; for( @i = 0; 10 > @i; @i++ ) { } while( (@i += 1) < 20 ) { } Support for all of the major operator methods have been included (+=, -=, /=, *= etc.) This announcement is to ensure that any and all problems encountered while using this method of accessing variables must be reported, along with any traces you can possibly provide (and a clear example of the script is appreciated.) This comes as a secondary update to the scripting engine to unify the language to conform to standards set by other languages. The scripting engine now supports both the direct invocation of user-defined functions (r15979 and r15981) and variable access systems (r15982.) Notes This does not affect previous scripts at all. The new engine converts patterns that match var = value; to set(var, value); for backwards compatibility. Testing was performed using all of the operator methods, and was tested using loops. However, nested operations have not yet been thoroughly tested.
    2 points
  3. It is recommended that you back up and check all your tables in the database. It is possible that the person who hacked your database, have modified some table creating an unintentional failure. 1. Keylogger is the most common type of failure and your password may be being captured by it. 2. There are other reasons, such as flaws in managers for databases, like phpMyAdmin outdated, which can be exploited. 3. If you use CeresCP or FluxCP, I advise you to disable in the emulator the special characters for char names, as this may cause a security flaw, generating XSS error and then a SQL Injection. 4. If you do not use a panel, your website may be impaired by a failure like SQL Injection, so it is important that you add "addslashes" or "mysql_real_escape" for strings in fields of login and password. 5.The other way would be to invade through a flaw in its operating system, but this is a bit trickier and I guarantee that anyone here are able to do it. Good luck.
    2 points
  4. File Name: FluxCP Addon: Vote For Points File Submitter: JayPee File Submitted: 23 Mar 2012 File Updated: 26 Mar 2012 File Category: Web Resources This is my vote for points addon for FluxCP that I code from scratch. Features: Added Anti-Proxy using PHP $_SERVER['HTTP_X_FORWARDED_FOR'] - I hope it work NPC Script is included see npc script folder You can turn off the IP blocking feature which will result to account base blocking system. Allowed image to be uploaded to the database is .gif | .jpeg | .jpg | .png Some Guides: To disable the ip blocking feature just set the 'IP_BLOCKING' to FALSE at config/addon.php To edit the max file size upload just edit 'MAX_FILE_SIZE' to whatever file size you want at config/addon.php Note: If the IP Blocking System is turn on, the blocking system is IP Address Based and Account Based. While if the IP Blocking System is turn off the blocking system is Account Based only. ( IF YOU FOUND BUGS OR SECURITY EXPLOITS PLEASE REPORT IT TO ME IMMEDIATELY) Click here to download this file
    1 point
  5. It's funny, but if we really want to make rAthena stand out over the other many many versions of RO then we need to utilize peoples good work!!! Just go to the download and the source release areas and start adding those custom @ command releases to the source code! It won't break the 1:1 goal because people are not required to use them, however, it will give rAthena that edge over other versions. Every new script and @ command is one more thing we have and they don't. It will expand rAthena and get more people involved. There should never be a source release section with @ command releases for very long before being implimited. Some may need to be obmitted for obious reasons, but most are good to go as long as they work as promised, which means the will need some testing. I understand that developers are already busy with other stuff, but I hate when people ask for suggestions or help spreading the word about stuff, when there is more benificial stuff that can be done! I know that rAthena is already progressive in some area, and I believe that the work around ragnarok spreads super quickly on its own when things warrent. Why is it is that eAthena is slowed down significantly and are almost an epsiode behind, but it isn't worth people's time to convert to rAthena? Hopefully this doesn't offend anybody. Thanks. Peopleperson49
    1 point
  6. Hey guys, I found this very useful and must have command for GMs created by Ind here I tried applying from my rAthena and I got errors due to the obsolete codes used to apply the commands and also due to the new code structure for character commands. Therefore I have adjusted the codes given by Ind from his post and done some minor changes to make it compatible with the latest SVN for rAthena. Go to your socket.c and find this line #include <sys/types.h> then add this below: #include <sys/stat.h> // for stat/lstat/fstat - [Dekamaster/Ultimate GM Tool] Still on socket.c, find this line void set_defaultparse(ParseFunc defaultparse) { default_func_parse = defaultparse; } Add this below: then go to socket.h and find this: void send_shortlist_do_sends(); #endif Add the code below: /** * [Dekamaster/Ultimate GM Tool] **/ const char* geoip_getcountry(uint32 ipnum); Then go to your atcommand.c Find this line ACMD_DEF2("newmount", new_mount), And add the code below: ACMD_DEF(accinfo), Still at the atcommand.c, find: ACMD_FUNC(mapmove) then add this code before ACMD_FUNC(mapmove) Don't forget the GeoIP.dat that was provided by Ind to put it inside your db folder. Sorry for the long post. I don't know how to create a diff file I hope this would be helpful
    1 point
  7. I have seen the @dance command somewhere here at the forums but now it doesn't support the latest SVN revision of rAthena due to the changes of the structure for player commands. Here is the update to support the latest SVN revision for rAthena On your atcommand.c, find the function: ACMD_FUNC(partyrecall) Below its closing brace '}' Add this function /*========================================== * @dance by OnNplay * inspired by Anarchist * Updated by Kaito_Kid to support the latest rev. for rAthena * => Special effects with dance style *------------------------------------------ */ ACMD_FUNC(dance) { nullpo_retr(-1, sd); if (!message || !*message) { clif_displaymessage(fd, "usage: @dance 1-9"); return -1; } if ( atoi(message) == 1 ) { clif_specialeffect(&sd->bl, 413, ALL_CLIENT); } else if ( atoi(message) == 2 ) { clif_specialeffect(&sd->bl, 414, ALL_CLIENT); } else if ( atoi(message) == 3 ) { clif_specialeffect(&sd->bl, 415, ALL_CLIENT); } else if ( atoi(message) == 4 ) { clif_specialeffect(&sd->bl, 426, ALL_CLIENT); } else if ( atoi(message) == 5 ) { clif_specialeffect(&sd->bl, 458, ALL_CLIENT); } else if ( atoi(message) == 6 ) { clif_specialeffect(&sd->bl, 466, ALL_CLIENT); } else if ( atoi(message) == 7 ) { clif_specialeffect(&sd->bl, 501, ALL_CLIENT); } else if ( atoi(message) == 8 ) { clif_specialeffect(&sd->bl, 540, ALL_CLIENT); } else if ( atoi(message) == 9 ) { clif_specialeffect(&sd->bl, 550, ALL_CLIENT); } return 0; } Then find the line ACMD_DEF2("newmount", new_mount), and then place this line of code below ACMD_DEF(dance), Then recompile your source code. NOTE: I didn't create a diff file cause I don't know how to make one ;P, if someone can then it would be helpful
    1 point
  8. I want to add the Kagerou/Oboro Skills for test and practice purposes. But sadly its the first time with rathena source code editing and C++. So im just going to add a thing here and there and watch what comes out. xD I dont have all the skill infos, so i want to collect them here for all. So if you have any infos or want to correct me then feel free to post it here. The same for the source, dont know whats all to edit, so feel free to post changes i have forget or have to made. ^^ KO_YAMIKUMO (Blindly/Dark Cloud) => seems to work • MaxLv: 1 • SP Cost: 10 (SP drops with the time in this status.) per Sec: ??? • Description: Hide one's presence. SP is reduced by fixed amount while under this status. Either using it again, or reaching 0 SP will remove it. KO_RIGHT (Right Hand Mastery) => seems to work • MaxLv: 5 • Type: Passive • Description: Recover the attack power lost from equipping two weapons. • [LV 1] ATK 80% • [LV 2] ATK 90% • [LV 3] ATK 100% • [LV 4] ATK 110% • [LV 5] ATK 120% KO_LEFT (Left Hand Mastery) => seems to work • MaxLv: 5 • Type: Passive • Description: Recover the attack power lost from equipping two weapons. • [LV 1] ATK 60% • [LV 2] ATK 70% • [LV 3] ATK 80% • [LV 4] ATK 90% • [LV 5] ATK 100% Database Edits Source Edits Client-Edit More Info needed ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [iCON] KO_JYUMONJIKIRI (Cross Slasher) => added the skill and it works, but dont have enough infos • MaxLv: 5 • Type: Active • Description: Dont know it exactly what it does. What i think: If you hit your enemy he get the JYUMONJIKIRI status. And if you hit him and he has this status, then he get additional damage. Dont know how much. • [LV 1] ATK 150% Sp.Cost: 20 • [LV 2] ATK 300% Sp.Cost: 24 • [LV 3] ATK 450% Sp.Cost: 28 • [LV 4] ATK 600% Sp.Cost: 32 • [LV 5] ATK 750% Sp.Cost: 36 [iCON] KO_SETSUDAN (Soul Cut) => added the skill and it works, but dont have enough infos • MaxLv: 5 • Type: Active • Type: Range 2 • Description: If the target has a Soul Link, it gets additional damage and the Soul Link is removed. (Dont know how much damage, but it goes higher with a higher Soul Buff) • [LV 1] ATK 100% Sp.Cost: 12 • [LV 2] ATK 200% Sp.Cost: 16 • [LV 3] ATK 300% Sp.Cost: 20 • [LV 4] ATK 400% Sp.Cost: 24 • [LV 5] ATK 500% Sp.Cost: 28 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If anyone wants too I can post/add more skills. I do not know whether this might disturb someone. xD Maybe i help someone with this. ^^ I would be glad if I would get more information about the skills if anyone have. I apologize for my bad english xDD
    1 point
  9. Guardian Hunter (warning: bad english) This is a small minigame I made where you can play forever until you die or relog. SQL TOP 10 List included. The goal is to stay alive as long as you can. Every round one guardian more will be spawned where it gets harder and harder. For each kill you get a amount of zeny. You can set the maps, monster ids and the amount of zeny. The script is dynamic + spawns the monster ids randomly but with the correct amount for each round. Have Fun with it Files guardian_hunter_1.0.0.txt guardian_hunter_1.0.1.txt guardian_hunter_1.1.1.txt guardian_hunter_1.1.2.txt Changelogs 1.0.0 Release 1.0.1 Fixed first monster spawn 1.1.1 Added '@currentroom$' into monsterspawn to prevent spawning mobs outside guardian rooms after fast relog 1.1.1 Added 'x Guardians left' notification after every kill 1.1.1 Changed '(0/1)' & '(1/1)' into '(Free)' & '(Full)' 1.1.2 Added autowarp after death Features Configurable maps, monster ids, zeny reward Everything is dynamic SQL TOP 10 List How can you help me ? Give me feedback Report bugs Tell me if you like it tr0n
    1 point
  10. Show the script else we can't help. Prontera flags are by default not clickable, they're only supposed to show the owner of the castle's emblem. Only the flags outside the castles can be talked to..
    1 point
  11. While we're at it, is your inter-server user/pass still s1/p1?
    1 point
  12. LChar-Server can now save registries to a sqlite or mysql database. It also has user authorization. Just need to plug this into rA so I can use the hashing functions for the inter-server user/pw. LLogin-Server being worked on.
    1 point
  13. In before mac bans.
    1 point
  14. maybe a SQL Injection in your homepage ?! Check things like: login, password reset, account deletion, etc.
    1 point
  15. I don't think this is a feature rAthena really needs. It'd be nice, sure, but it's not something that affects every day scripting. You can just as easily convert strings into integers, and then process them accordingly: set @type, ( getarg(0) == "mes" ? 1 : (getarg(0) == "next" ? 2 : 0) ); Besides, this would mean converting the current labelling system and would require much more fiddling around with the source. This might decrease backwards compatibility, or may affect the behaviour of the scripting engine. So, for the most part, I'd have to say I reject this proposal.
    1 point
  16. just to be correct, you can switch with strings since the latest java release aka jdk 1.7^^ i would like to see string switches in here, but first there should be a working direct variable assignment like introduced in revision 15982(havent tested it though) and things like var++ and ++var for the loops etc. but as i saw in the diff of that revision they seem to intend to implement those too
    1 point
  17. no, this would need client modifications.
    1 point
  18. Patcher has been updated to version 3.0.1: Returned support the New Login System; Returned old patch info store format; Added support for running the client if the remote configuration file is not available.
    1 point
  19. i would like to share this the new food of genetic which gives +20 on each stats the old one is not adding some stats so make one that will show the added stats +20str SAVAGE_STEAK +20agi COCKTAIL_WARG_BLOOD +20vit MINOR_BBQ +20int SIROMA_ICE_TEA +20dex DROCERA_HERB_STEAMED +20luk PUTTI_TAILS_NOODLES you can edit it in status.c and after you edit recompile it hope it helps yeah
    1 point
×
×
  • Create New...