Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Community Answers

  1. Brian's post in emperium the monster can not be created was marked as the answer   
    There is a check in @monster that prevents you from spawning an Emperium:
    trunk/src/map/atcommand.c

    if (mob_id == MOBID_EMPERIUM) { clif_displaymessage(fd, msg_txt(83)); // Monster 'Emperium' cannot be spawned. return -1; }
    To allow @monster 1288, delete those lines and recompile.
  2. Brian's post in N> script with groupid()? was marked as the answer   
    Add this getgroupid check at the beginning:
     

    - script vip_for_1week -1,{ OnPCLoginEvent: if (getgroupid() != 0) end; // first time logging into this account if (#VIP_expire == 0) { set #VIP_expire, gettimetick(2) + (7*86400); // 7 days dispbottom "Welcome to the server!"; dispbottom "You have been upgraded to a VIP for 1 week."; } if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1"; deltimer strnpcinfo(3)+"::OnPCLoginEvent"; if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent"; } else { addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent"; } } else if (#VIP_expire > 1) { set #VIP_expire, 1; atcommand "@adjgroup 0"; dispbottom "Your VIP Rental has expired."; } end; }
  3. Brian's post in Help Random WOE Castle not compatible Rathena was marked as the answer   
    Here you go: agit_controller_random.txt
    I updated the warp names to match the changes in 49459d342ec4e3b5d2ca8dbf85ab924ffa89faca.
  4. Brian's post in Reset player permanent variable was marked as the answer   
    Here's an example of how you could edit the zeny of an offline player: zeny_transfer.txt

    query_sql "UPDATE `char` SET `zeny`=`zeny`+'"+.@amt+"' WHERE `char_id`='"+.@char_id+"'";
  5. Brian's post in Warper - Last Warp after relog? was marked as the answer   
    Change these 3 variables from temporary character variables to permanent character variables:
    @lastwarpmap$
    @lastwarpx
    @lastwarpy
    Find all occurrences of each one and replace with:
    lastwarpmap$
    lastwarpx
    lastwarpy
  6. Brian's post in A little help with these simple lines was marked as the answer   
    "bc_red" is not a valid flag, so the constant gets converted to 0, and flag 0 is the same as bc_all.

    bc_all 0 bc_map 1 bc_area 2 bc_self 3 bc_pc 0 bc_npc 8 bc_yellow 0 bc_blue 16 bc_woe 32Flag should be bc_self (or bc_map for the whole map), and then specify the color after.
    // announce "<text>",<flag>,<fontColor>; announce "You suddenly hear a ghastly voice", bc_self,"0xFF0000"; sleep2 5000; announce "Faint Voice: You, who have known my existence.", bc_map,"0xFF0000"; sleep2 8000;
  7. Brian's post in When are @var saved was marked as the answer   
    They are saved in RAM and deleted when the character logs out or when the @var is deleted (set to 0 or string set to ""). Since there is no secondary storage, there is no "save interval". They are updated (in RAM) only when the @var changes.
  8. Brian's post in Dynamic Menu help was marked as the answer   
    For checking if they have an item equipped in that slot, you should use getequipisequiped.
    Even though 'getequipid' returns -1 if no item is equipped, that is considered a failure of the script command and that's why the map-server shows the debug message.
  9. Brian's post in MOBs acting like swarms was marked as the answer   
    MD_ASSIST is probably what you are looking for.
    If you look at the mode for Thief Bug Male (1054):
    - Aggressive
    - Assist
    - Detector
    - Change Target (Attack)
    - Change Target (Chase)
    Then looking at the documentation: doc/mob_db_mode_list.txt
    MD_AGGRESSIVE | 0x0004 | 4
    MD_ASSIST | 0x0008 | 8
    MD_DETECTOR | 0x0100 | 256
    MD_CHANGETARGET_MELEE | 0x1000 | 4096
    MD_CHANGETARGET_CHASE | 0x2000 | 8192
     

  10. Brian's post in [Bug] Blocked without my permission was marked as the answer   
    The "Block" link really means click this link to block the user from this PM conversation.
    If you click the Block link, that will remove the user from that PM conversation only.
  11. Brian's post in makr a threda as answrede? was marked as the answer   
    In forums where we enabled the "Best Answer" feature, if you are the topic starter, then you can click [Mark Solved] next to the reply that answered your question.
  12. Brian's post in after creating a new character how to warp it automatically to one warp once logged in was marked as the answer   
    The default behavior is start point AND save point are set to this config:
    // Starting point for new characters // Format: <map_name>,<x>,<y> start_point: new_1-1,53,111 Just to clarify: you want new chars to start in one place (poring map), but save point to be prontera,151,179 ?Using savepoint like Emistry suggested, this is what you would do:
    1. set the start_point config in conf/char_athena.conf#L99 to the Poring map
    start_point: prt_fild00,150,1502. create a script that triggers when they login for the first time(the script will set their save point to prontera,151,179
    Here is an example:
    prt_fild00,150,150,0 script Change_Save 139,1,1,{ OnTouch: if (Class==Job_Novice && BaseExp==0 && BaseLevel==1) { savepoint "prontera",151,179; set BaseExp,1; // (no need to create a new variable) } end; }
  13. Brian's post in doesnt read trunk anymore X_X was marked as the answer   
    Did you connect to your server and check the map-server console for errors?
  14. Brian's post in Is this possible gettimestr("%Y-%m-%d %H:%M:%S",21) -> gettimetick and back was marked as the answer   
    What format are your `start_date` and `end_date` columns?
    If they are YYYY-MM-DD HH:MM:SS then you should us FROM_UNIXTIME() to convert from UNIX timestamp to Date-Time format.
  15. Brian's post in Reset Stats was marked as the answer   
  16. Brian's post in SVN was marked as the answer   
    SourceForge has resolved the issue.
    http://svn.code.sf.net/p/rathena/svn/
  17. Brian's post in jobName() Gender was marked as the answer   
    jobname does take the class's gender into account.
    For example: jobname(Job_Bard) will return Bard
    whereas jobname(Job_Dancer) will return Dancer.
  18. Brian's post in Reset Npc Script (Need Help) was marked as the answer   
    Edit trunk/conf/battle/exp.conf and set this to no.
     
    // Use the contents of db/statpoint.txt when doing a stats reset and leveling up? (Note 1) // If no, an equation will be used which preserves statpoints earned/lost // through external means (ie: stat point buyers/sellers) use_statpoint_table: no
  19. Brian's post in what? was marked as the answer   
    The script command is getitem.
  20. Brian's post in save date in variable with - was marked as the answer   
    You could store it in a string (.@time_new$) instead of an integer variable (.@time_new)
  21. Brian's post in Gm Cloth was marked as the answer   
    The "GM clothes" is only set client-side by putting the account_id <admin> in clientinfo.xml
    Currently, there is no server-side source or script command to do this.
  22. Brian's post in WS2008R2. Control Panel was marked as the answer   
    http://www.google.com/search?q=cache:http://www.eathena.ws/board/index.php?showtopic=200688
    install MySQL install Apache & PHP download FluxCP edit files in /config/ folder
  23. Brian's post in rAthena forum bug? was marked as the answer   
    That <script> stuff and url is nowhere in our IPB files.
    Seems like your browser (or a browser extension) is modifying your text input boxes. Try disabling any extensions and see if it still happens.
  24. Brian's post in Whispering NPC: Full info inside was marked as the answer   
    - script apple -1,{ OnWhisperGlobal:
    set .@item_id, 512; // Apple
    if (countitem(.@item_id)) {
    if (Hp) {
    dispbottom "You don't require resurrection at this moment.";
    } else {
    set .@count, callsub(S_getrevivecount);
    // if they have less than 3 revives this hour
    if (.@count < 3) {
    callsub S_setrevivecount, .@count +1;
    dispbottom "Your Acolytes are now praying in Prontera, please wait 10 seconds for the final judgement.";
    sleep2 10000;
    recovery 0;
    dispbottom "You have "+(3 - (.@count+1))+" revives left for this hour.";
    } else {
    dispbottom "You can only be revived 3x every hour.";
    }
    }
    } else {
    dispbottom "You need to have a "+getitemname(.@item_id)+" in your inventory.";
    }
    end;
    S_getrevivecount:
    set .@now_hour, atoi(gettimestr("%y%m%d%H",9)); // YYMMDDHH
    if (atoi(delchar(revive+"",8)) < .@now_hour)
    return 0; // if their last revive was not this hour, then they have used 0 revives this hour
    else
    return atoi(charat(revive+"",8));
    S_setrevivecount:
    set revive, atoi(gettimestr("%y%m%d%H",9) + getarg(0));
    return;
    }
  25. Brian's post in auto teleport to maintown when dead was marked as the answer   
    guild_vs4,0,0,0 script die_and_warp -1,{ OnPCDieEvent:
    if (strcharinfo(3) == "guild_vs4")
    warp "SavePoint",0,0;
    end;
    }
×
×
  • Create New...