Jump to content
  • 0

Few needs


Pneuma

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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~

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

2nd.

OnPCLoadMapEvent:
getmapxy(.@map$, .@x, .@y, 0);
if (.@map$ = "map") {}
sc_end SC_ALL;
end;

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

Don't use sc_end sc_all :)

that also removes overweight and other status effect..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

removes overweight

really but how come mine is not, Overweight Status still stays.

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

So...I would make it

OnMon so and so forth?

Please give me an example of how to start

Monday, at midnight

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