Jump to content
  • 0

acquiring items via auto mail


Question

Posted (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 by joelolopez

4 answers to this question

Recommended Posts

Posted

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

Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...