Jump to content
  • 0

"Event Automated" Shop


Jade

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

Hi, Need help on how to make Automated "Shop".

Edited by Jade
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   17
  • Joined:  04/25/18
  • Last Seen:  

If you take a look at the recently posted rune-wars script it spawns on certain times and despawns 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

2 minutes ago, Zycron said:

If you take a look at the recently posted rune-wars script it spawns on certain times and despawns 

sorry im a newbie, i don't know how to start a script ..


@ all    

can someone help me with this ... thank you ... much appreciated ..

Link to comment
Share on other sites

  • 0

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

unit controller does the trick

prontera,155,185,5	script	skfshdfs	1_F_MARIA,{
	mes "blah blah"; // main script here ... all lines below needs to be added
	close;
OnInit:
	if ( gettime(DT_HOUR) != 8 && gettime(DT_HOUR) != 9 || gettime(DT_MINUTE) > 15 ) {
		hideonnpc strnpcinfo(0);
		end;
	}
OnClock0800:
OnClock0900:
	hideoffnpc strnpcinfo(0);
	while ( checkcell( .@map$ = F_Rand("prontera", "payon", "izlude","geffen"), .@x = rand(500), .@y = rand(500), cell_chknopass ) );
	unitwarp getnpcid(0), .@map$, .@x, .@y;
//	announce "warp to "+ .@map$ +" "+ .@x +" "+ .@y, bc_all;
	sleep 15 * 60 * 1000; // 15 minutes
	hideonnpc strnpcinfo(0);
	end;
}

 

Edited by AnnieRuru
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

thank you @AnnieRuru ... a bit bug when i reload it with the clock changed ... it loads (warp in random) automatically even if it's not time yet ...


after that, it goes to the script OnClock SMOOTHLY ... i set it at 1 minute for testing ....

 

 

Edited by Jade
Link to comment
Share on other sites

  • 0

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

hmm ... do you know all woe/event controller only support weekday and hour setting, but omit the minute setting ?
because let's say I want the woe go from Sunday 11:30pm until Monday 12:30 am, this is actually very complicated to do

same thing happen here, the minute stuff is assuming the hour runs at 00 minute

so yup, your minute condition is wrong

if ( (gettime(DT_HOUR) != 12 && gettime(DT_HOUR) != 13) && gettime(DT_MINUTE) > 5 && gettime(DT_MINUTE) <= 6 ) {

honestly, just stick to ... assume it runs on xx:00 , then don't need to consider all the complicated minute stuff

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

i see, my bad ...

Thank you so much  ~~Cute~Cute~Scripter~~ @AnnieRuru ?

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