Jump to content
  • 0

Request woe cash points


Famous

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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! 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

-	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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

Thanks! problem solve :)

Link to comment
Share on other sites

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.

×
×
  • Create New...