@Vitrue: You can't have a visible NPC and the atcommand, unfortunately, because of the NPC_checknear test. You can call labels off an invisible NPC, though~ So here's a patch removing the NPC coordinates and adding bindatcmd:
@@ -7,16 +7,17 @@
//===== Compatible With: =====================================
-//= rAthena SVN r15340+
+//= rAthena SVN r16471+
//===== Description: =========================================
//= A dynamic quest shop based on Lunar's, with easier config.
//= Includes support for multiple shops & cashpoints.
//= Item Preview script by ToastOfDoom.
+//= [bindatcmd] Script activated by command @quest.
//============================================================
-prontera,164,203,6 script Quest Shop 998,{
+- script Quest Shop -1,{
function Add; function Chk; function Slot; function A_An;
+OnMenu:
if(.Shops$ != "") set .@i,1;
else {
set .@menu$,"";
@@ -102,6 +102,7 @@
OnInit:
freeloop(1);
+ bindatcmd("quest",strnpcinfo(0)+"::OnMenu");
// --------------------- Config ---------------------
upaste: http://upaste.me/raw/5ad09654ecdbb6f (full script)
If you still want the visible NPC, you'd have to write something like:
prontera,164,203,6 script Quest Shop#duplicate 998,{ doevent "Quest Shop::OnMenu"; end; }