Thank you but it didnt work:if (!sd) return 0;
To
if (!sd) return true;
prontera,140,140,5 script Restock 999,{Perfect. You can't use @restock in those maps and when you are in those maps the command wont restore a specific item that you chosen before.
But I'm getting this error in console when the command tries to restore the item when you are out of it.
[Debug]: Source (NPC): Restock at prontera (140,140)
https://github.com/dastgir/HPM-Plugins/blob/master/NPC/Restock.txt
Thank you for answering but now...prontera,140,140,5 script Restock 999,{Perfect. You can't use @restock in those maps and when you are in those maps the command wont restore a specific item that you chosen before.
But I'm getting this error in console when the command tries to restore the item when you are out of it.
[Debug]: Source (NPC): Restock at prontera (140,140)
https://github.com/dastgir/HPM-Plugins/blob/master/NPC/Restock.txt
change into
- script Restok -1,{
just change the return 0 to return true;Hello guys, im wondering if there is any solution for that. thank you!
if (!sd) return 0;Thank you for answering but it always gives the Debug in console.
We use essential cookies to make this site work, and optional cookies to enhance your experience.