Jump to content
  • 0

Announce the Signed name on an Item


Good day ! I've created a simple give away npc that has name of event GM on it 


My questions is .. Is it possible to broadcast the item name including the name that signed into it ?? For example, I will open this scroll and the broadcast should be : 

"[Player Name] has obtained Battle Manual from [Eross's Angel Egg Scroll]!!!"

Instead of just:

"[Player Name] has obtained Battle Manual from [Angel Egg Scroll]!!!"


Thankyou and a Blessed  Sunday to everyone

Edited by Eross
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  - Id: 501
    AegisName: Red_Potion
    Type: Healing
    Script: |
      callfunc("F_SignedItem", 501, IG_Taming);
function	script	F_SignedItem	{
	[email protected]_id = getarg(0, 0);
	[email protected] = getarg(1, 0);
	if ([email protected]_id && [email protected]) {
		for ([email protected] = 0; [email protected] < @inventorylist_count; [email protected]++) {
			if (@inventorylist_id[[email protected]] == [email protected]_id && @inventorylist_card3[[email protected]] && @inventorylist_card4[[email protected]]) {
				[email protected]_cid = (@inventorylist_card3[[email protected]] | (@inventorylist_card4[[email protected]] << 0x10));
				query_sql("SELECT `name` FROM `char` WHERE `char_id` = "[email protected]_cid, [email protected]_name$);
				[email protected]_name$ = getitemname([email protected]_id);
				if ([email protected]_name$ != "")
					[email protected]_name$ = [email protected]_name$+"'s " + [email protected]_name$;
				[email protected]_name$[[email protected]] = [email protected]_name$;
				[email protected]$ = [email protected]$ + [email protected]_name$;
			[email protected]$ += ":";
		[email protected] = select([email protected]$) - 1;
		delitem2 @inventorylist_id[[email protected]],1,@inventorylist_identify[[email protected]],@inventorylist_refine[[email protected]],@inventorylist_attribute[[email protected]],@inventorylist_card1[[email protected]],@inventorylist_card2[[email protected]],@inventorylist_card3[[email protected]],@inventorylist_card4[[email protected]];
		[email protected]_id = groupranditem([email protected]);
		getitem [email protected]_id, 1;
		announce "["+strcharinfo(0)+"] has obtained "+getitemname([email protected]_id)+" from ["[email protected]_name$[[email protected]]+"'s "+getitemname([email protected]_id)+"]!!!", bc_all;

you can try something like this.

  • Upvote 1
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.

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.