Jump to content
  • 0

Floating Rates


Gundam

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  11/14/13
  • Last Seen:  

Just a request since I cant find one like it

 

- Floating Rates NPC, one that would allow a player to pay a fee "lets say one of my vote credits (7227)" to randomize the rates up to a cap

My rates are 100/100, max would be 200/200, this would last lets say 2 hours

 

I would also like it to announce which player changed the rate and if it was a positive or negative influence

 

Would like to have a secondary feature that allows a player to pay a fee using donation tokens (671) that would raise the rates to 300x for 1 hour

Same thing announce the player which did this and thank him on behalf of the server.

 

 

 

 

Don't know how extensive this would be

Edited by Gundam
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  11/14/13
  • Last Seen:  

I updated it to better reflect the changes I would like

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

- Floating Rates NPC, one that would allow a player to pay a fee "lets say one of my vote credits (7227)" to randomize the rates up to a cap

My rates are 100/100, max would be 200/200, this would last lets say 2 hours

I would also like it to announce which player changed the rate and if it was a positive or negative influence

prontera,155,184,5	script	kdhksjf	100,{
	if ( getstatus( SC_EXPBOOST ) ) end;
	else if ( countitem(7227) ) {
		delitem 7227, 1;
		sc_start SC_EXPBOOST, 2 * 60*60*1000, 100;
		announce strcharinfo(0) +" has gain double rate exp blah blah blah", bc_all;
	}
	end;
}
 

 

Would like to have a secondary feature that allows a player to pay a fee using donation tokens (671) that would raise the rates to 300x for 1 hour

Same thing announce the player which did this and thank him on behalf of the server.

prontera,155,184,5	script	kdhksjf	100,{
	if ( getstatus( SC_EXPBOOST ) ) end;
	else if ( countitem(671) ) {
		delitem 671, 1;
		sc_start SC_EXPBOOST, 1 * 60*60*1000, 200;
		announce strcharinfo(0) +" has gain triple rate exp blah blah blah", bc_all;
	}
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  11/14/13
  • Last Seen:  

I am terrible at scripts.... How would that go into an existing floating rates script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

How would that go into an existing floating rates script

then show your floating rate script
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  11/14/13
  • Last Seen:  

http://pastebin.com/YmtPei0a

 

I use that one, but also have a problem with it, it starts Wednesday for some reason

Would much prefer one that was 24/7

Edited by Gundam
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  11/14/13
  • Last Seen:  

Still looking, been searching around and have not found a good script to use as a base

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

http://pastebin.com/YmtPei0a

 

I use that one, but also have a problem with it, it starts Wednesday for some reason

Would much prefer one that was 24/7

 

If you read the documentation (or even just look up some of the commands used in this script), you'll find it very easy to decipher. Here's a stripped version of the script with only what you need:

-	script	floating_rates	-1,{
   
	OnClock0000:
		// Configuration
		.base_rate = rand(10000, 15000);	// Base EXP rate
		.job_rate = rand(10000, 15000);		// Job EXP rate
		
		// Adjust rates
		setbattleflag("base_exp_rate", .base_rate);
		setbattleflag("job_exp_rate", .job_rate);
		
		// Reload the database
		atcommand "@reloadmobdb";
		end;
		
		
	OnMinute01:
		// Announce current rates on the first minute of every hour
		announce "Double EXP is currently in affect with 1."+ (.base_rate - 100) +"x/1."+ (.job_rate - 10000) +"x rates", bc_all, 0xFF6060;
		end;
		
}

I also removed the temporary global variables and just placed the announcer in the same script. I'm not sure why the original author needed separate scripts for a basic functionality. o_o

Edited by Missingno
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...