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

Daifuku

Graphics Moderators
Staff member
Messages
226
Points
43
Discord
itsbecaxo 
Emulator
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.


 
Last edited by a moderator:
*Updated my script request

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

 
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,).
 
Last edited by a moderator:
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
default_tongue.png
, for this way , we can force users on old map to warp to new map too, so that's not a problem maybe...
default_tongue.png
 
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!

 
Last edited by a moderator:
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 ⊂(^(工)^)⊃ 

 
Last edited by a moderator:
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.

 
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. (/(エ)\)

 
Last edited by a moderator:
if players are on the map then warp them to the new map and vice versa.

 
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
 
Last edited by a moderator:
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

 
Currently busy A_A; will test is as soon as I can and let you know if it worked.

 
Back
Top