Alexandria 53 Posted September 14, 2015 Hello there! We have this plugin but my users dont want it working in pvp/gvg/bg maps. When you are in those maps, you wont get items but when you are out of those maps, you will get the items if you are out of them. Any help would be appreciated. Thank you! Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted September 15, 2015 (edited) find and add after if (!sd) return 0;if(map_flag_vs(sd->bl.m)) {clif->message(sd->fd, "command cant be used on pvp/gvg/bg maps");return 0;} Edited September 15, 2015 by Angelmelody Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 15, 2015 (edited) 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 Edited September 15, 2015 by Alexandria Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted September 15, 2015 if (!sd) return 0; To if (!sd) return true; Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 15, 2015 if (!sd) return 0; To if (!sd) return true; Thank you but it didnt work: [Debug]: Source (NPC): Restock at prontera (140,140) Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted September 16, 2015 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 prontera,140,140,5 script Restock 999,{ change into - script Restok -1,{ Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 16, 2015 (edited) 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 prontera,140,140,5 script Restock 999,{ change into - script Restok -1,{ Thank you for answering but now... [Debug]: Source (NPC): Restock (invisible/not on a map) Edited September 16, 2015 by Alexandria Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 18, 2015 Hello guys, im wondering if there is any solution for that. thank you! Quote Share this post Link to post Share on other sites
0 Samuel 83 Posted September 18, 2015 Hello guys, im wondering if there is any solution for that. thank you! just change the return 0 to return true; Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted September 18, 2015 Thank you for answering but it always gives the Debug in console. Quote Share this post Link to post Share on other sites
0 Samuel 83 Posted September 18, 2015 Thank you for answering but it always gives the Debug in console. if (!sd) return 0; if(map_flag_vs(sd->bl.m)) { clif->message(sd->fd, "command cant be used on pvp/gvg/bg maps"); return 0; } what i mean is change all the return 0 to return true Quote Share this post Link to post Share on other sites
Hello there!
We have this plugin but my users dont want it working in pvp/gvg/bg maps. When you are in those maps, you wont get items but when you are out of those maps, you will get the items if you are out of them.
Any help would be appreciated. Thank you!
Share this post
Link to post
Share on other sites