GM Djinsu Posted November 21, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 74 Reputation: 16 Joined: 05/08/12 Last Seen: May 15, 2024 Share Posted November 21, 2012 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. Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 19 hours ago Share Posted November 21, 2012 OnPCLoginEvent: dispbottom "New Request..."; dispbottom "Attendance Points...."; end; 1 Quote Link to comment Share on other sites More sharing options...
GM Djinsu Posted November 22, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 74 Reputation: 16 Joined: 05/08/12 Last Seen: May 15, 2024 Author Share Posted November 22, 2012 @Emistry - Thank you for your help , 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; Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 19 hours ago Share Posted November 22, 2012 just put it together.. http://pastebin.com/raw.php?i=kf72P8cy 1 Quote Link to comment Share on other sites More sharing options...
GM Djinsu Posted November 22, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 74 Reputation: 16 Joined: 05/08/12 Last Seen: May 15, 2024 Author Share Posted November 22, 2012 Thank you very much. Quote Link to comment Share on other sites More sharing options...
Question
GM Djinsu
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.