Jump to content
  • 0

Item to Inventory


Chromebore

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  05/06/14
  • Last Seen:  

Hello I would like to ask how to make the item be on the players inventory ? Cause even with @autoloot, the item drops on the floor. Thanks !

here is the script:

 

- script gog -1,{

 
OnNPCKillEvent:
if(strcharinfo(3) == "thana_boss") {
 
getmapxy(.@gold$,.@gx,.@gy,0);
set .@Gold_Chance,rand(1,10); //Configure for chance
 
if(.@Gold_Chance == 3) //10% chance. Change to '< 2' for 20%, etc..
makeitem 12244,1,.@gold$,.@gx,.@gy;
}
end;


bump

Edited by Chromebore
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

replace makeitem 12244,1,.@gold$,.@gx,.@gy;
with

getitem 12244,1;

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