Jump to content
  • 0

Shower Script


chibikyle

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  05/22/12
  • Last Seen:  

Spoiler

-    script    shower    -1,{
    
OnAtcommand:
    input .@itemid;
    input .@amount;
    getitem .@itemid, .@amount;
    announce "Item Shower !",0;
    end;

OnInit:
    bindatcmd "mapitem","shower::OnAtcommand";
    end;
    
}

 

How to make this npc getitem on every player in all map ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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


OnAtcommand:
    input .itemid;
    input .amount;
    announce "Item Shower !",0;
	addrid(0);
    getitem .itemid, .amount;
    end;

 

Link to comment
Share on other sites

  • 1

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

OnAtcommand:
    input .@itemid;
    input .@amount;
    getitem .@itemid, .@amount;
    announce "Item Shower !",0;
    end;

change to

OnAtcommand:
    input .@itemid;
    input .@amount;
    announce "Item Shower !",0;
	addrid(0);
    getitem .@itemid, .@amount;
    end;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  05/22/12
  • Last Seen:  

4 hours ago, Emistry said:

OnAtcommand:
    input .@itemid;
    input .@amount;
    getitem .@itemid, .@amount;
    announce "Item Shower !",0;
    end;

change to


OnAtcommand:
    input .@itemid;
    input .@amount;
    announce "Item Shower !",0;
	addrid(0);
    getitem .@itemid, .@amount;
    end;

 

not working sir emistry. and with error

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

 

@Emistry Thank you ! Btw im one of your friends in facebook :D

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

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