Jump to content
  • 0
Daifuku

[Challenge for passionate scripters] V4R,OOP,D&N *UPDATED*

Question

Hello (/°(エ)°)/

I need 3 scripts but they're not so easy. Maybe that's why no-one wanted to do them so far, not even for money. 

 

- First Script

Vote for Rates

- Playerbase can vote each day on voting sites for the server

- If they reaches a certain amount of votes in a month the rates will change the next month

►►Example: If from 01.02.2015 > 28.02.2015 = 2000 votes > exp rate changes from 01.03.2015 to 31.03.2015, votes will set to 0 again

►►If 01.02.2015 > 28.02.2015 = less than 2000 votes > exp rate will not change and votes will stay for the next month's voting

- Second Script

Online/Offline Points

- Player will get X points every hour for being online and X points every hour when being offline

- Points are exchangeable in a shop
►► If player goes AFK mode = considered as offline status 

 

- Third Script

Day & Night Life

Let's use sphinx map as an example. 
- If it's night time on the server, the sphinx map will stay as official.

- If it's day time on the server, the sphinx map will change and the monster on the sphinx map will change aswell. 


I hope that anyone is out there who is willing to help me with that. I have a huge amount of ideas and don't know if they're all do-able. I already have someone working on the Vote for Rate System but you are free to accept the challenge aswell. ⊂(^(工)^)⊃

Last but not least: I prefer people who don't take money but I understand that it's RL time you're spending and I am willing to spend a bit money on it.

Edited by Daifuku

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

*Updated my script request

Third script, changing map: impossible.(maybe doing trick with attaching a instance with it and having new map to warp there or something like that can work for new map,).

others mentioned are not hard and I bet second script is released somewhere (at least I remember, I have seen it..)

Share this post


Link to post
Share on other sites
  • 0

Another thing that could maybe work : a warp portal change ?!
Example: Day time triggers at 3pm everyone who enters the warp portal to sphinx after that will end up in the other map with other mobs and such. 
Only downside would be that people could stay on both maps until they die or warp away. 
 

 

*Updated my script request

Third script, changing map: impossible.(maybe doing trick with attaching a instance with it and having new map to warp there or something like that can work for new map,).
Edited by Daifuku

Share this post


Link to post
Share on other sites
  • 0

Another thing that could maybe work : a warp portal change ?!

Example: Day time triggers at 3pm everyone who enters the warp portal to sphinx after that will end up in the other map with other mobs and such. 

Only downside would be that people could stay on both maps until they die or warp away. 

 

 

 

 

*Updated my script request

 

Third script, changing map: impossible.(maybe doing trick with attaching a instance with it and having new map to warp there or something like that can work for new map,).
I thought you want same map name :P , for this way , we can force users on old map to warp to new map too, so that's not a problem maybe... :P

Share this post


Link to post
Share on other sites
  • 0

First one: needs web programming and set these points on a table to get fetched by the script and voilà.

 

Second one: I'm 99% sure a 'points for online time system' has been already released on this community, but you'd have to modify it to fit your needs.

 

Third one: You can work around it with disabling the regular spawns and make script-generated spawns. You spawn monsters on daytime, then wait and check, like, every minute or so if it the time has changed to night and kill all the current mobs (downside, if someone's on the map what happens with the mob he/she was killing at the time?, since there'snothing to do about it), then spawn the night ones and make the cycle continue.

 

Would try to make them if I get some spare time for it!

Share this post


Link to post
Share on other sites
  • 0

 

Sphinx was just an example and what I said about the warp portal was just an idea in case that there is no other option. But jaBote wrote something interested to that  (✪㉨✪)

 

 

First one: needs web programming and set these points on a table to get fetched by the script and voilà.

 

Second one: I'm 99% sure a 'points for online time system' has been already released on this community, but you'd have to modify it to fit your needs.

 

Third one: You can work around it with disabling the regular spawns and make script-generated spawns. You spawn monsters on daytime, then wait and check, like, every minute or so if it the time has changed to night and kill all the current mobs (downside, if someone's on the map what happens with the mob he/she was killing at the time?, since there'snothing to do about it), then spawn the night ones and make the cycle continue.

 

Would try to make them if I get some spare time for it!

First, so cool that you'd try it! What you wrote about the script generated spawns sound logical but then what about the map change? And yeah well there could be an announcement or something to warn people that the map will change, so they can't complain lol.

 

I will check out every inch of herc after I got dinner in hopes to find the points for online time system. If anyone can provide a link I'd be happy tho ⊂(^(工)^)⊃ 

Edited by Daifuku

Share this post


Link to post
Share on other sites
  • 0

No need to change map, just when night falls kill all day mobs, then spawn all night ones and you're done. And vice versa with day spawns.

Share this post


Link to post
Share on other sites
  • 0

No need to change map, just when night falls kill all day mobs, then spawn all night ones and you're done. And vice versa with day spawns.

Can't do that sadly because I HAVE to change the map. The new map will look as the old one but with other textures and whatnot. (/(エ)\)

Edited by Daifuku

Share this post


Link to post
Share on other sites
  • 0

Did not test it, but this will get you the idea

1. get this https://rathena.org/board/files/file/2344-fluxcp-addon-vote-for-points/

-	script	voteexp	-1,{	OnDay11: //jan 1	OnDay21: //feb 1	OnDay31: //mar 1		//your normal rate	setbattleflag("base_exp_rate",100);	setbattleflag("base_exp_rate",100);		query_sql("SELECT SUM(points) FROM cp_v4p_voters", .@votes);	if(.@votes>=2000){ 		query_sql "DELETE FROM cp_v4p_voters";				//your 2x rate		setbattleflag("base_exp_rate",200);		setbattleflag("job_exp_rate",200);	}}
prontera,144,120,6 script Da Vote 1_F_ORIENT_04,{
query_sql("SELECT SUM(points) FROM cp_v4p_voters", .@votes);
mes "da vote is currently "+ .@votes;
close;
}
 

2.

-	script	autopoints	-1,{OnInit:	//############# C O N F I G #############	set .max_idle, 10;				// seconds start idle mode	//####################################### check player.conf	end;OnPCLogoutEvent:	set #seconds_ap, @seconds_ap;	set #iseconds_ap, @iseconds_ap;	end;OnPCLoginEvent:	set @seconds_ap, #seconds_ap;	set @iseconds_ap, #iseconds_ap;OnSec:	if( checkvending()!=2 ){		if( checkidle()==.max_idle ){			set @iseconds_ap, @iseconds_ap + 1;		}else{			set @seconds_ap, @seconds_ap + 1;		}			if( @seconds_ap>=3600 ){			set @seconds_ap, 0;						getitem 7179, 2;			dispbottom "You get 2 pods every 1 hr online";		}				if( @iseconds_ap>=3600 ){					set @iseconds_ap, 0;			getitem 7179, 2;			dispbottom "You get 1 pods every 1 hr idle";		}								addtimer 1000, strnpcinfo(3)+"::OnSec";	}}

 

3. have 2 maps
 

 

- script nightday -1,{
OnClock0600: //day
mapwarp "mapnight","mapday",0,0;
enablenpc "spinx#day";
disablenpc "spinx#night";
end;
OnClock1800: //night
mapwarp "mapday","mapnight",0,0;
enablenpc "spinx#night";
disablenpc "spinx#day";
}
 
//the portals that lead to spinks
prontera,99,64,0 warp spinx#day 2,2,mapday,204,90
prontera,99,64,0 warp spinx#night 2,2,mapnight,204,90

//mon spawn
mapday,0,0,0,0 monster Side Winder 1037,2,360000,180000,1
mapnight,0,0,0,0 monster Bigfoot 1060,2,360000,180000,1
Edited by mleo1

Share this post


Link to post
Share on other sites
  • 0

Since it's ingame day/night and we don't know when they trigger, I think it's better to make a warp that checks isnight() and warps accordingly? (It might be isday(), I forgot which one got driven off).

Something like:

premap,x,y,0	script	MapWarp	45,1,1,{end;OnTouch:if (isnight())	warp "nightmap",x,y;else	warp "daymap",x,y;end;}

Albeit warping players back and forth on automatic day/night change might be tricky. Custom label perhaps? :3

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.