Jump to content
  • 0

getitem but without pickup... prompt?


Echoes

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

Hello rAthena,

Today I bring you this question, is it possible to make these... prompt on the screen above the player
image.png.c492a45e19c21280923d1b059c2588d7.png getitem 502,1;

not appear when using getitem? I searched the script_commands.txt for a command to give items to players without that message but I didn't find anything...

I'm okay with killing a monster and naturally getting those messages when I pick up their drops, but if I get an item via OnNPCKillEvent I want to avoid the message of getting such item from the monsters.

 

Help please 😄

Edited by Echoes
idk how that image message thingy is called
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   6
  • Joined:  03/02/18
  • Last Seen:  

then dont use "announce" in script if you want to get a message to your self....

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

47 minutes ago, AceofSpades said:

then dont use "announce" in script if you want to get a message to your self....

Hmm I don't know how to call it in english but... I meant the prompt you get when you pick up something? as stated in first message with the image as example. It's not an announce in itself since I'm not using the script announce at all.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

Maybe add the item to the MySQL Inventory of the player. But its not good to do it on this way.

 

Idk if it possible with source edit. It's could be hardcoded in the client.

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

On 12/7/2023 at 2:19 PM, Rynbef said:

Maybe add the item to the MySQL Inventory of the player. But its not good to do it on this way.

 

Idk if it possible with source edit. It's could be hardcoded in the client.

 

Rynbef~

Hi and thanks for your reply.

Yeah I've had bad experiences editing player inventories with MySQL so I want to avoid that 🙈

Hmm MMM

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   1
  • Joined:  10/11/23
  • Last Seen:  

I think you need to modify your source.

image.png.b9502775281453911a8244f61de15841.png

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

On 12/11/2023 at 1:26 AM, Harith said:

I think you need to modify your source.

image.png.b9502775281453911a8244f61de15841.png

🤔but only to apply on OnNPCKillEvents? I'm still learning how to read those c:

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

not sure if this is correct, but you could try update it to not to execute the clif_additem(...) if the player obtain items from npc script.

find this 

enum e_additem_result pc_additem(map_session_data *sd, struct item *item, int amount, e_log_pick_type log_type)

then adjust the code inside.

if (log_type != LOG_TYPE_SCRIPT)
	clif_additem(....);

 

if you are update database record, you need to kick the player out from server before you update it, otherwise the data will be overridden when player relog.

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