Jump to content
  • 0

Freebies per account directly in Storage


cassie24

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

Hello, how do I enable freebies directly in storage per account? No need to talk to any NPC? Please help.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

Thanks Skorm! I will try this in a while. I hope you can also check my other request in Script Requests though. Badly need help

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

This one's not working :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

It's not working :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

It has a bug everytime we relog a char it keeps on giving freebies.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

Mine too. In global_reg_value it will confirm the account has already received the variable #freebie, but ingame they didnt receive it. Can someone pls help?


Willing to tip

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

changeable the #freebies  to #freebies1 then it goes,  and #freebies++; to #freebies1++;

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