Jump to content
  • 0

All 20 minutes getitem


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

I want to make a script where the players become all 20 minutes a "Snow Flake".

Here an example:

- script Snowflake -1,{
OnTime0000:
   getitem 12491,1;
 end;

I tried to make a script like this ... please help me x.x

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

-	script	Snowflake	-1,{
OnInit:
while(1) {
	sleep 1200000;
	set .@size, query_sql("SELECT account_id FROM `char` WHERE online = 1",.@j);
	for(set .@i,0; .@i<.@size; set .@i,.@i+1)
		getitem 12491,1,.@j[.@i];
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Here's another way, using char-based timers:

-	script	Every20mins	-1,{
On20mins:
dispbottom "You have been online for 20 minutes.  Here's a snowflake!";
getitem 12491,1;
OnPCLoginEvent:
addtimer 1200000, strnpcinfo(3)+"::On20mins";
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Thank you! I hope it will works ^^

Edited by Lightning Farron
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...