Jump to content
  • 0

Freebies per account directly in Storage


Question

9 answers to this question

Recommended Posts

Posted

I'm pretty sure they just need to re-log to view added items in storage...

<starter_map>,0,0,5	script	notalk_freebie	-1,500,500,{
OnTouch:
	if( !#freebies ) {
		//                   <itemid> <amount> <refine> <attribute> <card0> <card1> <card2> <card3>
		callsub( Sub_Insert, 1599    , 1     , 10     , 6         , 1599  , 1599  , 1599  ,   1599); //+10 Ice Angra with 4 Angra's in card slot.
		callsub( Sub_Insert, 2199    , 1     , 10     , 6         , 2199  , 2199  , 2199  ,   2199); //+10 Ice Ahura with 4 Ahura in card slot.
		//etc...
		#freebies++;
		dispbottom "Freebies have been added to your storage. Re-log to acquire them!";
	}
	end;

Sub_Insert:
		query_sql(
			"INSERT INTO `storage` (`account_id`,`nameid`,`amount`,`identify`,`refine`,`attribute`,`card0`,`card1`,`card2`,`card3`) "+
			"VALUES ("+getcharid(3)+","+getarg(0)+","+getarg(1,1)+",1,"+getarg(2,0)+","+getarg(3,0)+","+getarg(4,0)+","+getarg(5,0)+","+getarg(6,0)+","+getarg(7,0)+");"
		);
		return;
}

This is why I wish we had more control of the mail system from scripts. xD

Posted

Now it's working. Just change starter_map to whatever map it is. However Skorm, how to make the script tell another new character from the same account that the freebies have already been given?

Posted (edited)

Skorm, some new players reported that they dont get anything in the storage upon first logging in. How is this possible?


I think I know the reason now. When they have dual client, the freebies can no longer be given from the time they have logged in a new character.

Edited by cassie24

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