Jump to content
  • 0

"dispbottom"


GM Djinsu

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

SOLVED

I am having a problem with a pair of scripts and the default mail system.

What I would like to happen upon log in is for my chat window to display;

- Any New Mail (mail_show_status: 2) Yes, when there are unread mails

- New Requests (Support Ticket System) using 'dispbottom' command

- Attendance Points (Points per day) using 'dispbottom' command

While Individually any one of these will work, they will work not all at once.

If anyone could help me get all these to display simultaneously I would be

ever grateful for your help.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

OnPCLoginEvent:
dispbottom "New Request...";
dispbottom "Attendance Points....";
end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

@Emistry - Thank you for your help /no1 , however my first post was not as clear as I would have liked so;

Here are the two separate "OnPCLoginEvent" Snippets I am working with, how would I modify One, the Other or Both to display messages from both in their entirety?

OnPCLoginEvent:
if (#lastDayOnline < gettimetick(2)/86400) {

   if (#lastDayOnline == (gettimetick(2)/86400 - 1))
	  set #consecutive_days, #consecutive_days+1;
	  else
	  set #consecutive_days, 1;
	  set #lastDayOnline, gettimetick(2)/86400;
	  set #CASHPOINTS, #CASHPOINTS + 2;
	  dispbottom "Gained 2 Points.	Total = " + #CASHPOINTS;
	  if (#consecutive_days % 7 == 0){
	  set #CASHPOINTS, #CASHPOINTS + 50;
	  dispbottom "Gained 50 Points.	Total = " + #CASHPOINTS;
	  if (#consecutive_days % 30 == 0){
	  set #CASHPOINTS, #CASHPOINTS + 200;
	  dispbottom "Gained 200 Points.	Total = " + #CASHPOINTS;
	  end;

(Note: Yes, I am aware I need to change this one to groupid~ xD)

OnPcLoginEvent:
if(getgmlevel()<.allowgmlvl) end;
query_sql "SELECT `read` FROM `request` WHERE `read`=0", @newmessages$;
dispbottom "You got ["+getarraysize(@newmessages$)+"] unread Request(s).";
end;

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:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

Thank you very much.

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