viewing paste Daily Sign | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
//Author : goddameit(DeathFire)
//Assist : .g(NihilityFire)
//Test : .g(ShuraFire)
//Web : http://www.okay.hk/?fromuser=goddameit
//Version : 3
prontera,150,180,4  script  dps 990,{
    function    reward {
        set Zeny,Zeny+rand(1,10)*1000+rand(0,999);
        return;
    }
    function    se  ;
    function    de  ;
    function    sd  {
        set @dsp_t2,0;
        set @dsp_t3,0;
        set @dsp_t7,0;
        set @dsp_t1,compare(getarg(0),"a1");
 
        while(!compare(getarg(0),"a"+@dsp_t1+"b"+@dsp_t2))
        {
            set @dsp_t2,@dsp_t2+1;
            if(@dsp_t2%23==0)sleep2(1);
        }
        
        while(!compare(getarg(0),"d"+@dsp_t3+"e"))
        {
            set @dsp_t3,@dsp_t3+1;
            if(@dsp_t3%53==0)sleep2(1);
        }
        
        if(!compare(getarg(0),"c"+gettime(7)))
            set @dsp_t3,1;
        
        if(@dsp_t3==1)
            set @dsp_t1,0;
        
        if(compare(getarg(0),"a1"))
        {
            if(!sqrt(pow(@dsp_t3-gettime(8),2)))
                set @dsp_t1,1;
            else
                set @dsp_t1,0;
        }
        
        if(sqrt(pow(@dsp_t3-gettime(8),2))>1)
            set @dsp_t3,1;
            
        if(@dsp_t3!=1)
            set @dsp_t3,0;
            
        while(!compare(getarg(0),"e"+@dsp_t7+"f"))
        {
            set @dsp_t7,@dsp_t7+1;
            if(@dsp_t7%53==0)sleep2(1);
        }
            
    }
    mes "Welcome to 'Daily sign'";
    mes "1.This board is opening";
    mes "2.Sign can get ^6600991000~100000^000000z";
    mes "3.1 account can sign one time.";
    mes "4.It will auto clean messages at 1am.";
    if(#dsp$=="")
        set #dsp$,"a0b0c"+gettime(7)+"d"+gettime(8)+"e0f";
    sd(#dsp$);
    mes "[You ^FF0000"+(@dsp_t1?"already":"not yet")+"^000000 sign]";
    if(@dsp_t2)
        mes "[Keep "+@dsp_t2+" days]";
    switch(select("Watch","Sign",(getgmlevel()==99?"[Clean]":"")))
    {
        case 1:
            se();
        case 2:
            de();
        case 3:
            close2;
            goto OnClen;
    }
    function    de  {
        close2;
        if(@dsp_t1)
        {
            mes "You already sign it.";
            close;
        }
        mes "type what you want to talk.";
        mes "if don't, type'(null)'";
        input .@temp$;
        for(set .@i,0;;set .@i,.@i+1)
        {
            if(.@i%37==0)sleep2(1);
            if(getd("$dps_username_"+.@i+"$")=="")
                break;
        }
        set @dsp_t2,@dsp_t2+1;
        set @dsp_t7,@dsp_t7+1;
        if(@dsp_t3==1)
            set @dsp_t2,1;
        setd "$dps_username_"+.@i+"$",strcharinfo(0);
        setd "$dps_usertalk_"+.@i+"$",(.@temp$=="(null)"?"":.@temp$);
        setd "$dps_usertime_"+.@i+"$",gettime(3)+"h"+gettime(2)+"m"+gettime(1)+"s";
        setd "$dps_usertims_"+.@i+"$",@dsp_t2;      
        setd "$dps_usertotl_"+.@i+"$",@dsp_t7;
        set #dsp$,"a1b"+@dsp_t2+"c"+gettime(7)+"d"+gettime(8)+"e"+@dsp_t7+"f";
        mes "complete";
        reward();
        close;
    }
    function    se  {
        function    ti  {
            if(getarg(0)<10)
                return "000"+getarg(0);
            if(getarg(0)<100)
                return "00"+getarg(0);
            if(getarg(0)<1000)
                return "0"+getarg(0);
            return getarg(0);
        }
        close2;
        while(getd("$dps_username_"+.@i+"$")!="")
        {
            if(getd("$dps_usertalk_"+.@i+"$")=="")
            {
                set .@i,.@i+1;
                continue;
            }
            mes "[No."+ti(.@i+1)+"]";
            mes "^FF0000"+getd("$dps_usertime_"+.@i+"$")+" sign in.";
            mes "^8B7500'"+getd("$dps_username_"+.@i+"$")+"'";
            mes "^008B00said:'"+getd("$dps_usertalk_"+.@i+"$")+"'^000000";
            mes "[^008B00keep^000000/^FF0000total ^008B00"+getd("$dps_usertims_"+.@i+"$")+"^000000/^FF0000"+getd("$dps_usertotl_"+.@i+"$")+"^000000 days]";
            mes "=====================";
            set .@i,.@i+1;
            if(.@i%24==0)
            {
                if(select("[continue]","[end]")==1)
                    next;
                else
                    break;
            }
        }
        close;
    }
 
OnInit:
    waitingroom "{[Daily sign]}",0;
OnClock0100:
 
OnClen:
 
    while(getd("$dps_username_"+.@i+"$")!="")
    {
        setd "$dps_username_"+.@i+"$","";
        setd "$dps_usertalk_"+.@i+"$","";
        setd "$dps_usertime_"+.@i+"$","";
        setd "$dps_usertims_"+.@i+"$","";
        setd "$dps_usertotl_"+.@i+"$","";
        set .@i,.@i+1;
    }
    end;
}
Viewed 728 times, submitted by Guest.