ThyroDree 3 Posted March 6, 2014 @dealer Info : @dealer opens a shop that sells Poison Bottles , YGGG,etc., Zeny is needed to buy in this shop Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 6, 2014 (edited) just use bindatcmd simple - script slslfkdsscxvxc -1,{OnInit: bindatcmd "dealer", strnpcinfo(0)+"::Onaaa"; end;Onaaa: callshop "blahblah", 1; end;}- shop blahblah -1,678:-1,608:-1btw, if callshop with type 2, it ask you to sell items instead of want to buy it =/ Edited March 6, 2014 by AnnieRuru 1 WalkingBad reacted to this Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted March 6, 2014 Edit your atcommand.c and add: ACMD_FUNC(dealer){ nullpo_retr(-1,sd); if( sd->npc_id || sd->vender_id || sd->buyer_id || sd->state.trading || sd->state.storage_flag ) return -1; npc_event(sd,"DEALER_NPC::OnWantToSell",0); return 0; } NPC: -<tab>script<tab>DEALER_NPC<tab>-1,{OnWantToSell:callshop "SellShop",2;end; - shop SellShop 139,678:-1,608:-1} Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted March 6, 2014 (edited) what line on atcommand.c? edit;:: i already tried compile ( success ) run the server and type @dealer Chat Box Said : [ @dealer is Unknown Command. ] Edited March 6, 2014 by ThyroDree Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted March 6, 2014 (edited) i will try this now just use bindatcmdsimple - script slslfkdsscxvxc -1,{OnInit: bindatcmd "dealer", strnpcinfo(0)+"::Onaaa"; end;Onaaa: callshop "blahblah", 1; end;}- shop blahblah -1,678:-1,608:-1btw, if callshop with type 2, it ask you to sell items instead of want to buy it =/ okay thanks annieruru ill try this now THANNKS IT WORKS! Edited March 6, 2014 by ThyroDree Quote Share this post Link to post Share on other sites
@dealer Info :
@dealer opens a shop that sells Poison Bottles , YGGG,etc., Zeny is needed to buy in this shop
Share this post
Link to post
Share on other sites