Jump to content

Virtue

Members
  • Posts

    354
  • Joined

  • Days Won

    6

Posts posted by Virtue

  1. -	script	FloatingRates	-1,{
    OnInit:
    //add any other HOURS
    OnHour00:
    OnHour06:
    OnHour12:
    OnHour18:
    //-------------------
    set $@brate,rand(100,150);
    set $@jrate,rand(100,150);
    set $@drate,rand(100,150);
    //Base exp
    setbattleflag("base_exp_rate",$@brate);
    //Job exp
    setbattleflag("job_exp_rate",$@jrate);
    //Drops
    setbattleflag("item_rate_common",$@drate);
    setbattleflag("item_rate_heal",$@drate);
    setbattleflag("item_rate_use",$@drate);
    setbattleflag("item_rate_equip",$@drate);
    //we don't change card drops rate, because these values won't change them anyway
    atcommand "@reloadmobdb";
    
    announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
    end;
    }
    

    Hi,

    How do I make this script auto activate when the online players reached 40. and how ( if possible ) can i add the MVP equips & cards to the script too?

    Thanks,

    Virtue

  2. @Vitrue: You can't have a visible NPC and the atcommand, unfortunately, because of the NPC_checknear test. You can call labels off an invisible NPC, though~ So here's a patch removing the NPC coordinates and adding bindatcmd:

    @@ -7,16 +7,17 @@
    //===== Compatible With: =====================================
    -//= rAthena SVN r15340+
    +//= rAthena SVN r16471+
    //===== Description: =========================================
    //= A dynamic quest shop based on Lunar's, with easier config.
    //= Includes support for multiple shops & cashpoints.
    //= Item Preview script by ToastOfDoom.
    +//= [bindatcmd] Script activated by command @quest.
    //============================================================
    
    -prontera,164,203,6	script	Quest Shop	998,{
    +-	script	Quest Shop	-1,{
    function Add; function Chk; function Slot; function A_An;
    +OnMenu:
     if(.Shops$ != "") set .@i,1;
     else {
    	 set .@menu$,"";
    @@ -102,6 +102,7 @@
    OnInit:
     freeloop(1);
    +	bindatcmd("quest",strnpcinfo(0)+"::OnMenu");
    // --------------------- Config ---------------------
    

    upaste: http://upaste.me/raw/5ad09654ecdbb6f (full script)

    If you still want the visible NPC, you'd have to write something like:

    prontera,164,203,6	script	Quest Shop#duplicate	998,{ doevent "Quest Shop::OnMenu"; end; }

    thanks alot. i will be trying this now.

    EDIT : its working great.

  3. Setup a NPC to remove previous variables.

     set etower_timer,0;
     erasequest 60200;
     erasequest 60201;
     set party_instance_id,0;
    

    I'll try this now, thanks

    EDIT : this worked thanks, also i think this could be used as a custom Purification NPC for the Endless Tower, TYVM @Joseph

    • Upvote 1
  4. Also, search and change the time in the script:

    set .@dun_lim_time,etower_timer+604800; // 1 week
    set .@dun_lim_time2,etower_timer+14400; // 4 hours
    

    also did that nothing changed. would be nice if there is a working script for the purification stone

    EDIT : i tried editing those again, the result is like this for the old chars who entered the tower before i changed those values.

    555549_3084716535894_2093785269_n.jpg

×
×
  • Create New...