Jump to content

Nipsino

Members
  • Posts

    218
  • Joined

  • Last visited

Posts posted by Nipsino

  1. @Brian

    are you refer to remove / clear password ?

    it's here..

    npc/kafras/functions_kafras.txt

    // Set / Change / Clear Storage Password Function ====================
    // getarg(0) = NPC Name, getarg(1) = Company Name
    function script F_SetKafCode {
    mes getarg(0);
    if(#kafra_code) {
     mes "Your storage is protected with a password. What would you do now?";
     next;
     menu "Change old password -> 5000z",-,
     "Remove storage password -> 1000z",M_CLEAR,
     "Cancel",M_END;
    } else {
     mes ""+getarg(1)+" proudly presents you a new service:";
     mes "Additional storage protection with a password.";
     next;
     menu "Set new password -> 5000z",M_SET,
     "Cancel",M_END;
    }
    mes getarg(0);
    mes "At first, please enter your ^0000FFold password^000000.";
    set @code,callfunc("F_EntKafCode");
    if(@code==0 || @code != #kafra_code) {
     mes "Wrong password. You can't set a new password.";
     emotion e_hmm;
     goto M_END;
    }
    next;
    M_SET:
    mes getarg(0);
    mes "Now enter your ^FF0000new password^000000 to protect your storage from thieves.";
    set @code,callfunc("F_EntKafCode");
    if(@code==0) {
     mes "The password hasn't been changed.";
     emotion e_hmm;
     goto M_END;
    }
    next;
    mes getarg(0);
    if(Zeny < 5000) goto L_ZENY;
    set Zeny,Zeny-5000;
    //set RESRVPTS, RESRVPTS + (5000/50); //hardcoded password doesn't add pts
    set #kafra_code,@code;
    mes "You've protected your storage with a secret password.";
    mes "Thank you for using "+getarg(1)+".";
    emotion e_thx;
    goto M_END;
    M_CLEAR:
    mes getarg(0);
    mes "Please, enter your password before its removal.";
    set @code,callfunc("F_EntKafCode");
    if(@code==0) {
     mes "The password hasn't been removed.";
     emotion e_hmm;
     goto M_END;
    }
    next;
    mes getarg(0);
    if(Zeny < 1000) goto L_ZENY;
    set Zeny,Zeny-1000;
    //set RESRVPTS, RESRVPTS + (1000/50); //hardcoded password doesn't add pts
    if(@code == #kafra_code) {
     set #kafra_code,0;
     mes "You've successfully cleared your storage password.";
     mes "Thank you for using "+getarg(1)+".";
     emotion e_thx;
    } else {
     mes "Wrong password. We won't return your 1000z.";
     mes "Please, next time enter correct password.";
     emotion e_sry;
    }
    goto M_END;
    L_ZENY:
    mes "You don't have enough zeny.";
    emotion e_cash;
    M_END:
    close2;
    cutin "",255;
    end;
    }

    @Eden..

    i guess you required alot of src editing and client hexing to enable that official kafra password stuff..

    anyway..i dont think this type of system are really useful...

    the 1 who "hacked" of stolen your account..might just completely change your account setting when he mad of cant get your items form storage hahaha

    which result you lost your account completely instead of just items....

    Yeah, haha. A lot of people just change their info once they get it. :(

    Never. And I do mean never. Share your account info with another person/thing/animal. And you won't ever have to worry about this, Storage Item Security. Don't forget to remind your players! Happy gaming. /sob

  2. Basically it's like a 2nd chance, if you're sure you want to delete the character then you have to wait out the time to delete it. Usually when people delete their characters they sometimes regret it, especially when it's hard for them to level.

  3. Out of my spare time! I have made a command that'll be useful for your server! And I'm releasing it for FREE But please. Don't. Don't. Don't! Remove the header/credits. /sob Happy gaming! <3

    Inside the atcommand.txt, I've put the code that I have used to make the actual @command. Because I don't know how to make a diff yet. :3

    There's an already pre-compiled atcommand.c inside the RAR archive, it's easier for you to use this if you're a beginner in rAthena.

    Inside the groups.conf within your /conf folder you MUST put "manager: true" under one of the groups for this command to work!

    Also! Don't forget to put the manager.txt inside your custom folder and enable it so it'll work!

    The part below is pretty much self explanatory. Thanks! Happy gaming. <3 :(

    set .name$,"[input Server Name]";

    set .wname$,"[server Name's Warp Service]";

    set .wwname$,"[server Name's WoE Warper]";

    set .nname$,"[server Name's News]";

    Please post here if there are any errors!

    @manager.rar

  4. Emistry forgot to put the 3rdJobItems == 1. xDD Try this one

    prontera,155,181,5 script Sample 757,{

    if( 3rdJobItems == 1 ){

    mes "You have gained the Item before.";

    }else{

    switch( BaseJob ){

    Case Job_Knight: set .ItemID,7539; break;

    Case Job_Priest: set .ItemID,7539; break;

    Case Job_Wizard: set .ItemID,7539; break;

    Case Job_Blacksmith: set .ItemID,7539; break;

    Case Job_Hunter: set .ItemID,7539; break;

    Case Job_Assassin: set .ItemID,7539; break;

    Case Job_Crusader: set .ItemID,7539; break;

    Case Job_Monk: set .ItemID,7539; break;

    Case Job_Sage: set .ItemID,7539; break;

    Case Job_Rogue: set .ItemID,7539; break;

    Case Job_Alchemist: set .ItemID,7539; break;

    Case Job_Bard: set .ItemID,7539; break;

    Case Job_Dancer: set .ItemID,7539; break;

    default:

    mes "Nothing you can take..";

    close;

    }

    getitem .ItemID,1;

    mes "You have gained 1 "+getitemname( .ItemID )+".";

    set 3rdJobItems,1;

    }

    close;

    }

  5. Try changing this part

    "^008000- ^000000 Monday ^FF0000["+ (getmapusers("sch_gld.gat"))+ "]^000000",PRT,
    "^008000- ^000000 Tuesday ^FF0000["+ (getmapusers("gef_fild13.gat"))+ "]^000000",PAY,
    "^008000- ^000000 Wednesday ^FF0000["+ (getmapusers("prt_gld.gat"))+ "]^000000",GEF,
    "^008000- ^000000 Thursday ^FF0000["+ (getmapusers("aru_gld.gat"))+ "]^000000",ALDE;
    "^008000- ^000000 Friday ^FF0000["+ (getmapusers("aru_gld.gat"))+ "]^000000",AL1;
    "^008000- ^000000 Saturday ^FF0000["+ (getmapusers("prt_gld.gat"))+ "]^000000",ALE2;
    "^008000- ^000000 Sunday ^FF0000["+ (getmapusers("sch_gld.gat"))+ "]^000000",ADE3;
    

    Into this

    "^008000- ^000000 Monday ^FF0000["+ (getmapusers("sch_gld.gat"))+ "]^000000",PRT,
    "^008000- ^000000 Tuesday ^FF0000["+ (getmapusers("gef_fild13.gat"))+ "]^000000",PAY,
    "^008000- ^000000 Wednesday ^FF0000["+ (getmapusers("prt_gld.gat"))+ "]^000000",GEF,
    "^008000- ^000000 Thursday ^FF0000["+ (getmapusers("aru_gld.gat"))+ "]^000000",ALDE,
    "^008000- ^000000 Friday ^FF0000["+ (getmapusers("aru_gld.gat"))+ "]^000000",AL1,
    "^008000- ^000000 Saturday ^FF0000["+ (getmapusers("prt_gld.gat"))+ "]^000000",ALE2,
    "^008000- ^000000 Sunday ^FF0000["+ (getmapusers("sch_gld.gat"))+ "]^000000",ADE3;
    

    He put a ; where it wasn't necessary.

  6. The only way I could think of right now. Is have it dispel all of the buffs with this code. "SC_END_ALL"

    Add it before they are warped to the map, and add it at the entrance of castles with an OnTouch Label. Examples.

    Warping to PvP or whatever.

    SC_END_ALL;
    warp "map",0,0;
    

    OnTouch Label

    prtg_cas01,x,y,0  script Dispel -1,{
    end;
    
    OnTouch:
    SC_END_ALL;
    setwarg,0; // I use setwarg,0 so rangers wouldn't have their wargs.
    }
    

  7. I've tried your CP, and I didn't know how to register. Since all it ever gave me was "Your account is still pending." Mhmm, it's weird it should already update the account once they click the link.

  8. Can you please elaborate? If you'd like to add in a new skill; src/map/skill.c & src/map/skill.h

    Credits to OutofCuriousity.

    dbskill_cast_db.txt - Skill durations and delay
    dbskill_castnodex_db.txt - How skill casting is affected by stats, items and skill boosts
    dbskill_db.txt - General skill mechanics; skill type, element type, range, how many times it should hit, whether it deals splash damage and so on. 
    dbskill_nocast_db.txt - where (or in what game modes) the skill can be used
    dbskill_require_db.txt - skill requirements covering HP, MP cost, required weapon type, items consumed and so on
    dbskill_tree.txt - here you can add skills to the different jobs, set other skills as prerequisites etc.
    dbskill_unit_db.txt - how the skill interacts with targets, where it can be cast and so on
    

×
×
  • Create New...