Jump to content

Release: guildgetitem2 & guildgetitembound2


Skorm

Recommended Posts


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

guildgetitem2 & guildgetitembound2


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

Example:

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

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


 

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

  • 4 years later...

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

Can you update this? Thanks!

Link to comment
Share on other sites

  • 4 years later...

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

@xilence01 Updated! You should @ me next time.

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


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   10
  • Joined:  08/22/22
  • Last Seen:  

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.

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