Originally posted by [b]BabyIze[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4883
[quote]BUILDIN_FUNC(callshop)
*
*
*
*
if( nd->subtype == SHOP )
{
switch( flag )
{
case 1: npc_buysellsel(sd,nd->bl.id,0); break; //Buy window
case 2: npc_buysellsel(sd,nd->bl.id,1); break; //Sell window
[b]default: clif_npcbuysell(sd,nd->bl.id); break; //Show menu[/b]
}
}[/quote]
sample script
[quote]
- script test -1,{
[b]callshop "testbuy",0; <--- flag 0 show menu[/b]
end;
}
- shop testbuy -1,505:-1
new_1-1,54,109,5 duplicate(test) buy 69
[/quote]
If player buy item with [b]WPE[/b]
He can buy items from shops.
Without going through the check area that NPC
I Test flag 1 ok no bug
[quote]callshop "testbuy",1;[/quote]
By send packet [b][ showmenu -> selectbuy --> selectitem -> input amount --> buybottom ][/b] getitem anywhere
This post has been edited by [b]BabyIze[/b]: Apr 27 2011, 07:17 PM
This post has been edited by
Xantara
on Dec 13, 2011 7:33