Jump to content

Vach

Members
  • Posts

    326
  • Joined

  • Last visited

Posts posted by Vach

  1. Sry for the stupid question, but have you add your custom Quest in the quest_db.txt at rAthena?

    80468,0,0,0,0,0,0,0,"Helping Hailer Girl"
    

    yeap its added correctly within the database as well

    @ossi0110

    which client are you using because nearly everything out of msgstringtable is hardcoded in the 2012-04-10aRagexeRE.exe client so if one of the newer ones is less hardcoded or one of the slightly earlier versions didn't have this issue i'm interested.

    I would suggest moving to a new client, this solvec most of those hard coded string issues for me.

  2. I actually use setd and getd for the temporary variables used in the function call, as it makes it dynamic and I never need to change anything.

    I need them global, or at least thought I did, because my function matrix (bunch of nested functions) calls them and explodes them/reads them for data... But if I can make a single function have access to .Variables and pass that to the other functions which then use temporary scope variables... Viola. No globals.

    So my question to you, if I put ".Var$,"String"" inside a "- script function {" NPC... Setting it with OnInit, will those variables stay for the duration of map server load even though its just a function NPC?

    @Annie - I don't understand... You want me to test your script?

  3. The permanent global variables are avoidable, it will just drastically slow the script down, and I can't set npc "permanent" .Variables in the script because of how the script is primarily a function... although that could work since its technically still an "NPC."

  4. Account bound items is located here: http://rathena.org/board/files/file/2558-account-bound-items/

    My function is as follows:

    function<TAB>script<TAB>GetBoundItem<TAB>{
    // Gives the player a bound item but checks if its stackable and just does regular give item
    // if it is.
    
    
    // One Arg (zero), the item ID.
    
    set .@ItemType,getiteminfo(getarg(0),2);
    if (.@ItemType == 0 || .@ItemType == 2 || .@ItemType == 3 || .@ItemType == 6 || .@ItemType == 7 || .@ItemType == 8 || .@ItemType == 10 || .@ItemType == 11 || .@ItemType == 18) {
    getitem getarg(0),1; }
    else {
    getitembound getarg(0),1; }
    
    return;
    }
    

  5. Hmm... well based on my situation...

    In short, you don't really need to worry too much about using perm-char variables. But watch out for too much #variables($) & $variables($) as these will slowly start to eat your server...(I learned the hard way, but Annie saved me before it was too late =P).

    This worries me, I have a TON of $Variables$ for my quest system, and many #variables$... what should I do to minimize problems? Should I move all my $variables$ to some kind of temporary function call pretending to be global variables? More specifically, should I change that ASAP?

  6. It does, but in my opinion this will become undesireable without a large amount of control functions.

    Without being labeled as platinum skills, these skills could become free skill points if a skill resetter on your server. Also, if they are skills the class actually has then your NPC could easily either do nothing or grant additional points that that character would be considered to "have", again if a reset were to ever happen (or a stored build, such as Emistry's script).

    You'd have to have a large amount of class checks going on for each skill via the NPC, and write a variable that prevents resetting and ensures the skill isn't taken already and/or otherwise ever available for that job path.

    I would recommend using items for something like this, because then the server knows in advance those skills are truly (misc) and you have way more control.

    This is just my opinion.

  7. This is impossible within the current structure of the skill database(s).

    In order for a class to have a skill, it needs to be in that particular classes' skill tree, configured in the lua files, and you need to be sure that class has access to its requirements. The last one becomes an issue with something like a passive skill for a weapon that class can't use.

    Class == Job.

    =P

    There is a script command to give skills, but it won't function properly if it isn't in their skill list.

  8. going back to 2012-04-10. Just for rathena's purpose. Haven't tried 2012-04-18. Does it works like a charm like 2012-04-10?

    To be honest, I'm not sure. I had absolutely no problems with 04-24 except the weapon sprite issue that I recently posted about. I just very much dislike the old text file system compared to the itemInfo.lua structure. I am actually using a stabilized 06-18 now.

    Just as a side note Vach, if you know of one that can convert around 10k custom items in the item_db2 to the iteminfo.lua please let me know. Thanks.

    Peopleperson49

    I don't, I used the same converter that is available here on the forum downloads. I only had about 200 or so custom items. My recommendation is to use that file but parse it into sections of the highest it can manage. And copy/paste to your own itemInfo.lua.

    That's a lot of custom items! XD

×
×
  • Create New...