Jump to content
  • 0

SPECIAL REQUEST: SIMPLE COIN GIVER EVERY X MINs


Buda Beads

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  08/16/14
  • Last Seen:  

Hello Again Master Scripters,

Im requesting for a simple script:

similar:  this is like an hourly points script but visual because of the items received.

 in giving all online players an item
(ygg/#607 or a coin) for example, every FIVE minutes.

include: player with pub/chat
exclude: vendors / with @autotrade


purpose:
loyalty currency: the longer they stay online, the more amount they will have to buy some loyalty items..

 

 

 

 

 

Thanks Master Scripters again!!!

each of you never fail me!!!!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

To give coins:

//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= GorthexTiger modified by Nibi modified again by Winz
//====================================================================

-	script	hourlypoints	-1,{
OnPCLoginEvent:
	addtimer .timer,"hourlypoints::OnPointGet";
	end;
	
OnPointGet:
	while(checkvending() >= 1 ) {
		sleep2 .delay;
		dispbottom set(.@mes$,"The loyalty reward event halted because you were vending.");
	}
	set #CASHPOINTS, #CASHPOINTS + .point_amt;
	dispbottom "You received "+.point_amt+" Cash points by staying in game for 5 minutes";
	
	addtimer .timer,"hourlypoints::OnPointGet";
	end;

OnInit:
	set .timer, 1000*60*5; //Timer in milliseconds.
	set .point_amt, 10; //Normal points gained.
	set .delay, 1000; //Delay for idle re-check check.
}

To give items:

//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= GorthexTiger modified by Nibi modified again by Winz
//====================================================================

-	script	hourlypoints	-1,{
OnPCLoginEvent:
	addtimer .timer,"hourlypoints::OnPointGet";
	end;
	
OnPointGet:
	while(checkvending() >= 1 ) {
		sleep2 .delay;
		dispbottom set(.@mes$,"The loyalty reward event halted because you were vending.");
	}
	getitem .itemid, .itemval;
	dispbottom "You received "+.itemval+" "+.itemid+" by staying in game for 5 minutes";
	
	addtimer .timer,"hourlypoints::OnPointGet";
	end;

OnInit:
	set .timer, 1000*60*5; //Timer in milliseconds.
	set .itemid, 607; //Item ID to be given.
	set .itemval, 1; //Item value to be given.
	set .delay, 1000; //Delay for idle re-check check.
}
Edited by Winz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  08/16/14
  • Last Seen:  

Thanks Master Winz for the reply....

  i hope we can continue this script that:

all the players (including afk but excluding vendor/@autotrade) at THE SAME TIME every 10 mins..   1:00,1:10,1:20,1:30,1:40,1:50,2:00

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= GorthexTiger modified by Nibi modified again by Winz
//====================================================================

-	script hourlypoints -1,{
	
	set .point_amt, 10; //Normal points gained.
	OnMinute10:
		if(checkvending() >= 1 ) {
			dispbottom "No loyalty reward because you were vending.";
		}
		set #CASHPOINTS, #CASHPOINTS + .point_amt;
		dispbottom "You received "+.point_amt+" Cash points by staying in game on the 10th minute";
		
		end;
	 
	
}

This way, I will just login at minute of 8 for every hour. after I get the points, just logout to reserve PC resource.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  08/16/14
  • Last Seen:  

thanks master winz,,, now working with a little bit of edit...

 

 

 

i hope you can help us again,, thanks master winz....

Edited by Buda Beads
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

if answered, mark as answered. if needs further help, state it clearly

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