Jump to content

michaelsoftman

Members
  • Posts

    410
  • Joined

  • Last visited

Everything posted by michaelsoftman

  1. It's not an NPC, it's a source edit. I'm messing around with the Dark Collector class (turning it into a usable class out of boredom) and so I configuring class specific drops for them. I could do if( bl->type == BL_PC && pc_mapid2jobid(((TBL_PC*)bl)->class_, ((TBL_PC*)bl)->status.sex) == JOB_DARK_COLLECTOR ) I just want to know if this is the most efficient way or not. I'm not too familiar with some of the source code commands.
  2. I was just wondering if there's an easier way to check a player's job in the source than what I've been using, which is this, for example, to determine if they're 3rd classes: if( bl->type == BL_PC && pc_mapid2jobid(((TBL_PC*)bl)->class_, ((TBL_PC*)bl)->status.sex) >= JOB_RUNE_KNIGHT ) But I would like to know if there's an easier way to just determine a single class, or will I have to write this statement out for every class I plan to check for?
  3. Just try changing this part. set @map$, .@map$; set @x, .@x; set @y, .@y; to set @map$, "job_priest"; set @x, .@x; set @y, .@y;
  4. In the file PC.H, search for #define MAX_SKILL_TREE And make sure it's set to #define MAX_SKILL_TREE 84
  5. Your GRF isn't up to date, it's missing texture files. You need to update kRO.
  6. It's my private script... I will share more of it with you though. mes "What would you like to do?"; switch(select("Start Instance:Re-enter Instance:Quit")) { Case 1: if(CT_Lasttime + $CT_Cooldown > gettimetick(2) && CT_Lasttime < gettimetick(2)) { set .@last,CT_Lasttime + $CT_Cooldown - gettimetick(2); set .@hours,.@last / 60 / 60; set .@minutes,.@last / 60 % 60; set .@seconds,.@last % 60; mes "Due to the cooldown limit,"; mes "you cannot start the instance right"; mes "now, "+.@hours+"hours "+.@minutes+"minutes "+.@seconds+"seconds"; mes "left to start the next instance."; close; } getpartymember(getcharid(1)); if(!getcharid(1) || $@partymembercount < $CT_Minparty){ mes "Make or join a party with more than "+$CT_Minparty+" member!"; close; } if(instance_id(1)){ if(has_instance("1@cash") == ""){ mes "Your group is already registered at another instance."; close; } mes "Your group is already registered."; mes "Select ^0000FFRe-Enter Instance^000000 in the main menu to enter."; close; } set .@instance, instance_create("Instance Test", getcharid(1)); instance_attachmap "1@cashl", .@instance; instance_set_timeout(7200,300,.@instance); instance_init .@instance; set .@a$, has_instance("1@cash"); warp has_instance("1@cash"),0,0; set CT_Lasttime,gettimetick(2) + $CT_Timelimit; end; Case 2: if(!instance_id(1) || has_instance("1@val") == ""){ mes "The Instance does not exist."; mes "Please confirm with your party leader whether the Instance"; mes "has been destroyed or if the time given for entering has expired."; close; } instance_attach instance_id(1); warp has_instance("1@cash"),100,8; set CT_Lasttime,gettimetick(2) + $CT_Timelimit; end; Case 3: close; }
  7. Is it possible to have a piece of equipment that, when equipped, automatically makes you cast an AOE attacking skill? Using the 'itemskill' and 'unitskilluseid' script commands don't seem to work. For example, I equip a chain mail, it casts LOV on my position BUT damages enemies. If I use unitskilluseid it targets me instead.
  8. Here's some sample code. You have to set the $Instance_Minparty variable and edit some other things, but you should get the idea. getpartymember(getcharid(1)); if(!getcharid(1) || $@partymembercount < $Instance_Minparty){ mes "Make or join a party with more than "+$Instance_Minparty+" member!"; close; } if(instance_id(1)){ if(has_instance("1@Cash") == ""){ mes "Your group is already registered at another instance."; close; } mes "Your group is already registered."; mes "Select ^0000FFRe-Enter Instance^000000 in the main menu to enter."; close; } set .@instance, instance_create("My Instance", getcharid(1)); instance_attachmap "1@Cash", .@instance; instance_set_timeout(3600,300,.@instance); instance_init .@instance; warp has_instance("1@Cash"),0,0; end;
  9. Just change the skill tree, and the skilltreeview LUA file.
  10. You just make up values for yourself up to 255. Or write some type of quick program to loop the amount of times you need, outputting an exp value with some variance to it. I did that a while ago for exp tables
  11. Oh haha. Figures I don't think of that myself Thanks.
  12. I know that in item_noequip.txt you can prevent an item being used on a map. But what if I wanted an item that can ONLY be used on a single map? It seems inefficient to have to make every map in the game under a certain mapflag except the map I want to use. Surely there's an easier way?
  13. Depends, it can really harm a server because many players hate that type of thing. But it will stop botting, RPE, WPE, etc.
  14. You have to add more values into exp_homun.txt
  15. I think the line to change this in the config is here, #define pc_maxparameter(sd) ( ((((sd)->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO) || (sd)->class_&JOBL_THIRD ? ((sd)->class_&JOBL_BABY ? battle_config.max_baby_third_parameter : battle_config.max_third_parameter) : ((sd)->class_&JOBL_BABY ? battle_config.max_baby_parameter : battle_config.max_parameter)) ) But I'm not sure how to change it. I want Gunslingers to be able to reach the same max stats as 3rd jobs.
  16. Your LUA files are not the same date as your client.
  17. Depending on your client date, you have to edit iteminfo.lub OR the old id2numdesc, res name, item name, etc text files. Or perhaps you misplaced / mistyped the graphic info or file.
  18. What types of errors? You should learn how to merge your code, it'll save you a ton of time and problems.
  19. Gamefront? Mediafire? Any various upload site works fine.
  20. Perhaps it's a problem with your firewall? Check it's configurations.
  21. How much RAM does your server have? Perhaps you are encountering some type of game breaking bug that closes down the server.
  22. First, you shouldn't use eAthena Second, post your account text file. Your #1 server account info is incorrect either there or in your conf files.
  23. Your staff.html file doesn't contain any of the actual layout. Do you intend for it to show when loading the main page? There's a php script in your index file that loads home.php, edit that to load the page you want instead.
  24. Check your clientinfo.xml. Is it logging in to the right place? Do you have MD5 enabled but the password is not hashed in your DB?
  25. Post your login table from your SQL database.
×
×
  • Create New...