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.

×
×
  • Create New...