[ Request ] @dealer command

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
@dealer Info :

@dealer opens a shop that sells Poison Bottles , YGGG,etc., Zeny is needed to buy in this shop

 
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:

Code:
-<tab>script<tab>DEALER_NPC<tab>-1,{OnWantToSell:callshop "SellShop",2;end; -    shop    SellShop    139,678:-1,608:-1}
 
what line on atcommand.c?

edit;::

i already tried compile ( success ) run the server and type @dealer

Chat Box Said :

[ @dealer is Unknown Command. ]

 
Last edited by a moderator:
just use bindatcmd

simple

Code:
-	script	slslfkdsscxvxc	-1,{OnInit:	bindatcmd "dealer", strnpcinfo(0)+"::Onaaa";	end;Onaaa:	callshop "blahblah", 1;	end;}-	shop	blahblah	-1,678:-1,608:-1
btw, if callshop with type 2, it ask you to sell items instead of want to buy it =/
 
Last edited by a moderator:
i will try this now 

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 =/
okay thanks annieruru ill try this now

THANNKS IT WORKS!

 
Last edited by a moderator:
Back
Top