Jump to content

Utility: @giveitem command


Mabuhay

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

@giveitem command


Just a simple command for events or compensation reward to all online players. 

@giveitem <item id> <amount> <area|map|all>

Area - ppl around your screen size

Map - ppl in the map of the invoking character 

All - self explanatory 


  • Submitter
  • Submitted
    10/23/2019
  • Category
  • Video
  • Content Author
    Mabuhay

 

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

technically this script wont work

i would suggest to not use .@var with addrid command

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   5
  • Joined:  03/17/16
  • Last Seen:  

not working

 

[Error]: buildin_getitem: Nonexistant item 0 requested.
[Debug]: Source (NPC): atcmd_giveitem (invisible/not on a map)
[Error]: buildin_getitem: Nonexistant item 0 requested.
[Debug]: Source (NPC): atcmd_giveitem (invisible/not on a map)

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1529
  • Reputation:   234
  • Joined:  08/03/12
  • Last Seen:  

try to use npc:itemall script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Fixed the variable problem with the script. It should work now when script is gonna be approved. Thanks to @sader1992 for pointing it out. 

Edit: you can also use `.itemid_var` instead of global temp var `$@itemid_var` that i used in the script (same goes to amount var) . Lol, i just realised it now. But no biggy.. 

Edited by Mabuhay
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Thank you. ❤️ Hope to see more awesome releases @Mabuhay

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