GM Djinsu Posted November 21, 2012 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
Emistry Posted November 21, 2012 Posted November 21, 2012 OnPCLoginEvent: dispbottom "New Request..."; dispbottom "Attendance Points...."; end; 1 Quote
GM Djinsu Posted November 22, 2012 Author 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
Emistry Posted November 22, 2012 Posted November 22, 2012 just put it together.. http://pastebin.com/raw.php?i=kf72P8cy 1 Quote
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.
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.