Pneuma Posted March 20, 2012 Posted March 20, 2012 1st: How do I make it so an NPC is activated every other day and activated 3 times for each day its activated? 2nd: How do I make it so all buffs are taken off on a map?(Player is warped to the map and debuffed) 3rd: How do I make it so no matter what a players stats or cards are, they can still be effected to status effects on a map caused by a script? Please and thank you :3 If you would like to know exactly what I need this all for, its for my fishing script~ Quote
ngek202 Posted March 20, 2012 Posted March 20, 2012 (edited) 2nd. OnPCLoadMapEvent: getmapxy(.@map$, .@x, .@y, 0); if (.@map$ = "map") {} sc_end SC_ALL; end; Edited March 20, 2012 by ngek202 Quote
Nameless2you Posted March 20, 2012 Posted March 20, 2012 Don't use sc_end sc_all that also removes overweight and other status effect.. Quote
ngek202 Posted March 20, 2012 Posted March 20, 2012 (edited) removes overweight really but how come mine is not, Overweight Status still stays. Edited March 20, 2012 by ngek202 Quote
Emistry Posted March 20, 2012 Posted March 20, 2012 1st: OnClock0000: OnClock0300: OnClock0600: etc.... 2nd: yes..it is true that sc_end all are not suggested...it might removed your jailed status, cash food status , mute status, etc... use a loop to loop through every buff and check if it is a jail / mute /cash food status ...if yes the skip those status..while remove the rest... 3rd: list all the card that can prevent the status change in the db/item_noequip.txt then all this card will be unable to use in the map after the mapflag is applied. Quote
Pneuma Posted March 20, 2012 Author Posted March 20, 2012 Thanks emistry but..How do I make it 1st every other day? I want it to be like... Monday, Wednesday, Friday are the only days the event is activated Quote
Emistry Posted March 20, 2012 Posted March 20, 2012 Thanks emistry but..How do I make it 1st every other day? I want it to be like... Monday, Wednesday, Friday are the only days the event is activated there is alot way to do so.... here is 1 of the way. On<weekday><hou<minute>: This will execute when the server clock hits the specified date or time. Hours and minutes are given in military time. ('0105' will mean 01:05 AM). Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat. Months are 01 to 12, days are 01 to 31. Remember the zero. beside..you can also use this way..check for what day it is then only check for time to run event.. Quote
Pneuma Posted March 20, 2012 Author Posted March 20, 2012 So...I would make it OnMon so and so forth? Please give me an example of how to start Monday, at midnight Quote
Question
Pneuma
1st: How do I make it so an NPC is activated every other day and activated 3 times for each day its activated?
2nd: How do I make it so all buffs are taken off on a map?(Player is warped to the map and debuffed)
3rd: How do I make it so no matter what a players stats or cards are, they can still be effected to status effects on a map caused by a script?
Please and thank you :3 If you would like to know exactly what I need this all for, its for my fishing script~
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.