Jump to content
  • 0

Request woe cash points


Question

Posted

Can I request every time the player kill during woe time will earn cash points

 

During woe time Only Example: 9:00pm-10:00pm

 

1kill = 1cash points!!

 

Thank you! 

 

 

4 answers to this question

Recommended Posts

Posted

Didn't test. Try :

-    script    Sample    -1,{
    OnInit:
        setarray .Map$[0],"prtg_cas01","prtg_cas02";
        set .size, getarraysize(.Map$);
        end;

    OnPCKillEvent:
        for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 )
            if ( !agitcheck() || !agitcheck2() || strcharinfo(3) != .Map$[.@i] ) 
                end;
        
        set #CASHPOINTS, #CASHPOINTS + 1;
        dispbottom "You have gained 1 cash point. Total is " +#CASHPOINTS+ " cash points.";
        end;
}
Posted
-	script	Sample	-1,{
OnPCKillEvent:
	if(strcharinfo(3) == "pvphero")
	{
		if(@Delay < gettimetick(2))
		{
			set .@Amount,rand(1,2);
			set #CASHPOINTS,#CASHPOINTS + .@Amount;
			dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";
			set @Delay,gettimetick(2) + 180;
		}
	}
	end;
}

@patskie thanks but Can I ask how to add this more maps?

Posted

Try this one :

 

-    script    Sample    -1,{

setarray .Map$, "pvphero", "prontera", "payon";
set .@size, getarraysize(.Map$);

OnPCKillEvent:
    for ( set .@i, 0; .@i < .@size; set .@i, .@i + 1 ) {
        if(strcharinfo(3) == .Map$[.@i])
        {
            if(@Delay < gettimetick(2))
            {
                set .@Amount,rand(1,2);
                set #CASHPOINTS,#CASHPOINTS + .@Amount;
                dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";
                set @Delay,gettimetick(2) + 180;
            }
        }
    }
    end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...