joelolopez Posted November 1, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Share Posted November 1, 2013 (edited) i would like to request a script that will give you a random item on first login once a day , u will be able to receive random items attached on your mail... for example: from: Admins bla bla bla bla bla <attached item> is this possible? Edited November 1, 2013 by joelolopez Quote Link to comment Share on other sites More sharing options...
LuLu Posted November 1, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 398 Reputation: 131 Joined: 11/10/12 Last Seen: October 6, 2024 Share Posted November 1, 2013 possible.just make a script that will run once a day per login and write down a mail via sql. Quote Link to comment Share on other sites More sharing options...
joelolopez Posted November 1, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted November 1, 2013 thanks for the reply but wat u did is you just confirmed it that its possible, im still requesting a script on how to mail an item to players in their first login once a day, how am i suppose to do with the sqls i dont have knowledge about sqls so far... Quote Link to comment Share on other sites More sharing options...
LuLu Posted November 1, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 398 Reputation: 131 Joined: 11/10/12 Last Seen: October 6, 2024 Share Posted November 1, 2013 Sorry don't have much time to do this npc and to think about the whole script. This is time consuming. Sorry, but I think this can be done via query_sql("INSERT INTO `mail` ("modifications/actions here.........."); just select your sql info and start adding items like query_sql("SELECT account_id,char_id FROM ...... = variables here....") Sorry xD Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 1, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share Posted November 1, 2013 Refer to query_sql for the syntax : - script Sample -1,{ OnPCLoginEvent: if ( gettimetick(2) < #timer ) dispbottom "Time left : " + ( #timer - gettimetick(2) ) + " seconds."; else { // .. your insert query_sql #timer = gettimetick(2) + 86400; } end; } Quote Link to comment Share on other sites More sharing options...
Question
joelolopez
i would like to request a script that will give you a random item on first login once a day , u will be able to receive random items attached on your mail...
for example:
from: Admins
bla bla bla bla bla
<attached item>
is this possible?
Edited by joelolopezLink 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.