Warning! This is the old Hercules bugtracker archive, and may not reflect the current state of Hercules. The current bugtracker is on GitHub Issues.
Issue information
Issue ID
#5345
Status
Needs more Info
Severity
None
Started
Hercules Elf Bot
Feb 18, 2012 1:46
Last Post
Hercules Elf Bot
Feb 18, 2012 2:36
Confirmation
N/A
Hercules Elf Bot - Feb 18, 2012 1:46
Originally posted by [b]Napster[/b] [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]
can buy items from shops.
Without going through the check area that NPC
[quote]
I Test flag 1 ok no bug
[b]callshop "testbuy",1;[/b]
[/quote]
By send packet [b][ showshop -> selectbuy --> selectitem -> input amount --> buybottom ][/b] getitem anywhere (player have zeny enough to buy.)
This post has been edited by
Napster
on Feb 18, 2012 2:38
Hercules Elf Bot - Feb 18, 2012 2:01
Originally posted by [b]Ind[/b] Is this recent -- did you test it recently? I remember this bug in the past and I am mostly sure epoque had fixed it
Hercules Elf Bot - Feb 18, 2012 2:36
Originally posted by [b]Napster[/b] yes i tested confirm