Jump to content
  • 0

An item that will allow players to use @storage and @go command


Question

Posted

Just like premium, an item that will allow player to use @go and @storage command..

 

The item has

  1. has time just like premium ticket
  2. if player uses this he will use a variable like for example #gscom

I'm currently using the premium script provided here in rAthena that uses #Premium and also changes its group level to 1..

2 answers to this question

Recommended Posts

  • 1
Posted
-	script	atcmd_example	-1,{
OnInit:
	bindatcmd "storage",strnpcinfo(3)+"::OnAtcommand";
	bindatcmd "go",strnpcinfo(3)+"::OnAtcommandGO";
	.item_req = 501;	// you item id
	end;
OnAtcommand:
	if ( countitem( .item_req ) ) openstorage;	// open storage if have the item
	end;
OnAtcommandGO:
	if ( !countitem( .item_req ) ) end;	// @go if have the item
	for( ; .@i < .@atcmd_numparameters; .@i++ )
		.@mes$ = .@mes$ + ( .@mes$ == "" ? "" : " " ) + .@atcmd_parameters$[.@i];
	atcommand "@go "+ .@mes$;
}

 

has time just like premium ticket

Use rentitem

 

 

if player uses this he will use a variable like for example #gscom

I don't get this part

  • Upvote 1

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