Jump to content

Start_

Members
  • Posts

    950
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by Start_

  1. -	script	TestScript::QuickTest	4_F_03,{
    	mes "What you want?";
    	next;
    	switch(select("Use Charge", "See Charge", "Exit")) {
    	case 1:
    		if (.n_now > 0){
    			.n_now--;
    			if (.n_now < .n_max) {
    				setnpctimer 0;
    				initnpctimer;
    				mes "Starting recharges.";
    			}
    			getitem 512, 1;
    			mes "Done. Current Charges: "+.n_now+"/"+.n_max+".";
    		}
    		else{
    			mes "No Charges.";
    		}
    		close;
    	case 2:
    		mes "Next Charge in "+((.cont)/1000)+" seconds.";
    		close;
    	}
    	close;
    
    OnTimer1000:
    	if (.cont <= 0) {
    		.cont = .delay;
    		.n_now++;
    	}
    	else{
    		.cont -= 1000;
    		stopnpctimer;
    		setnpctimer 0;
    		if (.cont <= 0) {
    			.n_now++;
    			if (.n_now >= .n_max)
    			end;
    			.cont = .delay;
    		}
    		initnpctimer;
    	}
    	end;
    	
    OnInit:
    	.n_max = 5;		//max charges
    	.n_now = 5;		//actual charge
    	.delay = 10*1000;//time to recover 1 charge (10,000)
    	.cont = 0;		//actual time left to recharge
    	end;
    }
    
    prontera,164,170,4	duplicate(QuickTest)	Test Quick#prt	4_F_03

    Not sure it's work like what do you want but try it first.

    • Upvote 1
  2. setrandomoption(EQI_HAND_R,0,.opt[.@sel],12,0);
    	setrandomoption(EQI_HAND_L,0,.opt[.@sel],12,0);
    	setrandomoption(EQI_GARMENT,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_GARMENT,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_SHOES,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_ACC_L,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_ACC_R,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_ACC_R,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_HEAD_MID,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_HEAD_LOW,0,.opt[.@sel],0,0);
    	setrandomoption(EQI_HEAD_TOP,0,.opt[.@sel],0,0);

    At these lines you should change EQI_XXX,0 to EQI_XXX,1 for random option #2

    • Upvote 1
×
×
  • Create New...