Jump to content

Release: guildgetitem2 & guildgetitembound2

Recommended Posts

guildgetitem2 & guildgetitembound2

This command sends items to the guild storage without the need of server restart.


prontera,100,100,5	script	guildgetitem2	100,{
	//guildgetitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
	switch ( guildgetitem2(1218, 1, 1, 1, 10, 4305, 0, 0, 0) ) {
		case 1: dispbottom "Item added to your guild storage."; end;
		case 0: dispbottom "Unknown Error."; break;
		case -1: dispbottom "Cannot open both storages."; break;
		case -2: dispbottom "Player doesn't have a guild."; break;
		case -3: dispbottom "Player doesn't have a guild storage."; break;
		case -4: dispbottom "Guild storage being used by someone else."; break;
		case -5: dispbottom "Guild storage is full."; break;

Works much like getitem2 and it uses the attached players guildstorage.


  • Upvote 1
  • MVP 1
Link to comment
Share on other sites

Posted (edited)
On 5/12/2023 at 10:31 PM, Skorm said:

@xilence01 Updated! You should @ me next time.

1>D:\rAthena\src\custom\script.inc(3012,31): error C2440: 'initializing': unable to convert from 'std::shared_ptr<datatype>' to 'item_data *'
1>        with
1>        [
1>            datatype=item_data
1>        ]


Edited by Pokye
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.

Reply to this topic...

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