Jump to content
  • 0

acquiring items via auto mail


joelolopez

Question


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

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 joelolopez
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

possible.just make a script that will run once a day per login and write down a mail via sql.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   131
  • Joined:  11/10/12
  • Last Seen:  

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 /sry

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

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