Jump to content

Jonne

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by Jonne

  1. Im sorry but no where did i find this and without it i cant set up item or monster achievments And like i said, everytime i relog, without even using the @achieve i complete the achievment, i only use it once and keep completing it everytime i relog on the explore map Once again great job on this, and have a happy new year Okay, I forgot to load the achievements already done out of the SQL. I added the function but forgot to call for it. Also the problem with the timer in misc.conf: It was called achievement_cutinduration, with one less underline '_'. I now changed it to achievement_cutin_duration in the new version. But I didn't get the other timer error you got. Please try again and report if it still messes up. I will upload the new diff any moment
  2. And also, i dont know if its related but everytime i relog on one of the explore achievements i complete it again and also get the prizes, also when i use the @achieve command, when i use it i automatically complete the achievment without doing anything ( i only tested explore acheivments and i not at the map on the time, its with any map, lets say the map is prontera, if i give the achievment on lets say morocc, i automatically complete it there) And just a small thing but when someone completes the achievment it shows ???? on the screen. @Achieve bypasses all requirement checks. About the explore thing and the error message, I will llook into it this evening or tomorrow, since I currently run out of time and have to go. You can count with a fix tomorrow or the day after.
  3. Haha, truly! Happy new year!
  4. <map>,<x>,<y>,<dir>%TAB%duplicate(Diablo Akatsuki Suit)%TAB%Diablo Akatsuki Suit#2%TAB%718 Raise the number behind # further for more duplicatse. Also, maybe try an unique name for the NPC, since its name is quite long.
  5. And yes i have the achievement_cutin_duration in my misc.conf in the battle folder. If you can help me out i'll really be grateful My bad, sorry. At first I solved this problem of deleted cutins else, but before releasing I changed to this setting. Uhm, either go to ./src/map/achievement.c line 137 and change to delete_timer(sd->achievement_cutin_timer,achievement_delete_cutin_timer); or download the diff I will by now attach to my original post. Sorry for the trouble. Wups, the commands name is "reloadachievements" with an s at the end. I only called the function reloadachievement. Sorry for the trouble!
  6. Pardon me, what? So everything a GM (Level 90+) logs in, the IP saved for him in the login table is changed to 127.0.0.1? I'd recommend a SRC edits, but if you want a NPC: -%TAB%script%TAB%name%TAB%-,{ OnPCLoginEvent: if (GetGMLevel() >= 90) { SQL_Query("UPDATE `login` SET `last_ip` = '127.0.0.1' WHERE `account_id` = '" + GetCharID(3) + "' LIMIT 1"); } End(); } Not tested, should work though.
  7. True. When taking a closer look: // read whole file to buffer fp = fopen(filepath, "rb"); if( fp == NULL ) { ShowError("npc_parsesrcfile: File not found '%s'.n", filepath); return; } But maybe they want it as standard. So in future all script files will have this extension and everything that comes with it.
  8. I don't understand? Anyway, I intalled Miruku instead of RagRay and it worked. Don't know the error now, but at least it is fixxed. Thanks!
  9. Jonne

    This or That?

    Since RO2 beta feels like WoW I say: RO1 Barney Stinson or Charlie Harper?
  10. Seems legit. Hit the circle like button in the upper right cornor of your chat box. Check all options you want to be logged. If that won't work try KeiKun's way.
  11. To all accounts. It's a fresh server with no chars. http://rathena.org/b...rathena-client/ Read main-post, please thats your rAthena Client kRO Client and rAthena Client are Different not dumb kRO Client = Ragray or Mikuru ~__~ Pardon me. RagRay
  12. http://rathena.org/board/topic/54190-release-basic-rathena-client/ Read main-post, please Yes. I changed the PACKET_VER before recompiling to 20110315 which is the clients version. I double checked: First the thread says so, second with a PE viewer tool.
  13. So today I tried to set up my local rAthena folder for some testing and for MOD/Diff creation. The server works just fine, but I have problems connecting to the char server. Well, not specifically. In particular, after the Serverselection I get a crash. It seems that I miss files, but I don't know from where. I am using the Basic rAthena Client(http://rathena.org/board/topic/54190-release-basic-rathena-client/) and changed the PACKET_VER accordingly(20110315). I can connect to the server but I crash where the char selection should be. I have the latest kRO/renewal and patched. My data.ini states: [Data] 1=test.grf 2=rdata.grf 3=data.grf test.grf only contains a clientinfo.xml. It seems to work since I can connect. My data.grf is 1,35gB and my rdata.grf is 250mB. Any suggestions? Maybe the ressources coming with the Basic Client are invalid? Here the screenshot:
  14. We don't even know what kind of donation system you use on your website. More information. Read posts about how to post a request properly...
  15. Added an edit with a feature I forgot to mention X_x
  16. You can still add the old system if you know how. Also, just pointing out: http://rathena.org/board/topic/56118-special-item-drop-system/
  17. Preamble I have written an achievement system I want to share with you. It is not the best way to solve achievement systems nor is it very efficient(though it might be more efficient than NPC scripting) and if you already have an achievement system(src or npc) and it's working for you, please don't change to mine. Mine is rather old(about half a year or more) and back then it was the first time I wrote something completly new for eAthena. What I did today was applying the system to rA and create a working diff. If you are willing to use this system then I beg you to report any bug found. Also, if there is enough demand, I might consider re-writing it from scratch, because I am overall unhappy with the system, but not really motivated to further work on it in greater detail. Also the code-style I used back then is totally going against the one I am using nowadays... Don't judge me! Functions There are pre-defined types of achievements in this system Monsterkill Achievements Itemfind Achievements (Only use this for Items NOT trade/drop/storage-able, or else it will result in abuse) Itemuse Achievements Explore Achievements Quest Achievements Special Achievements Let me explain them one after another: Monsterkill Achievements(0): Well, name says it mostly, but there is a bit more to it. You can define different types per achievement. The types are counting by ID(0), by size(1), by race(2), by element(3) or for all MvPs(4). And if player A has killed X monsters that meet the requirement, then he gets the achievement. Itemfind Achievements(1): Again, name says what it does. If you find certain items, you get the achievement. Make sure you only use it on non tradeable etc. items or it will be abused. It can also be filtered into types. They are the following: ID(0), Equip(1)[see item_db->equip), Type(2)[see item_db->type]. It will count if you drop it and pick it up again, so really, only use it on items not storageable, tradeable and dropable! Itemuse Achievements(2): Its porpuse is to count every item used. This achievement might be bugged, report anything you find fishy! It uses the same filtering as Itemfind, so please refer to that. Explore Achievements(3): When entering a map, the system checks whether the map is inside the database for explore achievements and if so, it sets the count. If the player visited all maps for one achievement, then he receives the achievement. Quest Achievements(4): When finishing certain quests, you are able to gain quest achievements. Simple as that! Special Achievements(5): This are achievements in the achievement database. But they are only applicable over @achieve from a GM or with the achieve script_command. This achievement has Event porpuses and is only added for a complete database for your website etc. Now comes the technical stuff... How to install the achievement system 1. Download the *.diff and the *.sql file(they are in the *.rar provided). 2. Import the *.sql into your rAthena database. 3. Apply the *.diff onto your rAthena server. 4. Check your ./conf/battle/exp.conf and ./conf/battle/misc.conf: Two new configs have been added: achievement_cutin_duration and achievement_exp_rate. Read the conf files for more information and change it to whatever you wish it to be. 5. Add the two new files ./src/map/achievement.c and ./src/map/achievement.h to your MAKEFILE or to your project solution and recompile! (^ Up to this point, I won't provide ANY support ^) How to add achievements Well, that is mainly why I would like to find another way of solving the achievement system. But currently it is like this: 1. Add your achievement to achievement_db. Here is a brief summary of the columns: If you chose 5 as type, you are nearly done, skip step 2. If you chose another type, please read on. 2. Go to the respective table of your chosen type: 0->mob_achievement 1->item_achievement 2->itemuse_achievement 3->explore_achievement 4->quest_achievement Now add an entry for your newly added achievement. The columns are rather similiar, but I'll explain in greater detail: mob_achievement: achievement_id: Set to ID assigned by achievement_db for your new achievement type: See description of Mobkill Achievements. There are numbers in brackets for each filtering type valueX: The value for what to filter. I.e. if you chose ID, then place an ID here. If you chose elements, place a number from the element enum here (see script_commands or src for reference) amountX: How many to kill itemfind_achievement: itemuse_achievement: achievement_id: Set to ID assigned by achievement_db for your new achievement type: See description of Itemfind Achievements. There are numbers in brackets for each filtering type valueX: The value for what to filter. I.e. if you chose ID, then place an ID here. amountX: How many to find/use explore_achievement: achievement_id: Set to ID assigned by achievement_db for your new achievement mapX: Name of the map. I.e. prontera quest_achievement: achievement_id: Set to ID assigned by achievement_db for your new achievement questX: ID of the quest 3. Last step is to reload the AchievementDB ingame via @reloadachievement or restart your server. Atcommands So, I added two atcommands working together with this System: @achieve <Achievement_ID> <Player_Name>. Give <Player_Name> Achievement with <Achievement_ID> as ID. IT DOES NOT CHECK WHETHER HE MEETS THE REQUIREMENTS! Built in for debugging and special achievements @reloadachievements. Reload the Achievement DBs. Helpfully if you added new achievements and don't want to restart the server. Scriptcommands *Achieve( <AchievementID>{, <Account_ID>}); Same as the Atcommand. If no account_id is given, use attached player. Does also not check if player meets requirements. Intended for special achievements *GetAchievementInfo(<AchievementID>, <flag>); Flag determines what to return: 0 = type, 1 = bexp, 2 = jexp, 3 = nameid, 4 = points, 5 = status 5 Only works with attached players and returns 1 if the player finished the achievement and 0 otherwise. *GetAchievementName(<AchievementID>); Returns the name of the achievement *GetAchievementCutin(<AchievementID>); Returns the name of the cutin of the achievement I think this is about all you need to know. Please report any bugs and post any suggestions. If you overwhelm me enough, I might rework it to be more user-friendly! Only post bugs and suggestions after you've read through the whole article. I will notive if you haven't. At last Download achievement.patch achievement.sql €dit: I really want to stress the following facts again: Read the whole article! Only use if you are unable to script/code a system that is suficient to suit your needs or this system matches your needs perfectly(well, w/e)! Report any found bug! €dit²: Forgot to mention. The last achievement is stored within the permanent playervariable "LastAchievement" and it stores the ID of the achievement. So you can check it via NPC script etc. Changelog: 1.0 FIrst version 1.1 Fixxed bug of not deleting the cutins properly [Thanks Dexter] 1.2 Fixxed cutin bug fully, fixxed typos in config
  18. Totally supporting that one. Nice and clean. Question to the Style of GodLesZ: When the i.e. the return value is returning error code like: 0 - no error, 1 - error and so on. How to you write that into description. Like: * @return<TAB>int<TAB>error code for calling function * 0 - no error * 1 - error or else?
×
×
  • Create New...