vendor buy to buy
Posted: Mon Mar 06, 2006 11:08 pm
where i canc hange te fonction vendor buy to buy...vendor sell to sell
https://www.forums.polserver.com/
Code: Select all
// These speech items require no other speech, so should be included in all checks.
if (text["appraise"] || text["stable"] || text["showinventory"] || text["showrestock"])
pass := 1;
endif
// If the character wants to do something with a vendor:
if (text["buy"] || text["sell"] || text["train"] || text["teach"]||(pass))
// Just pick the nearest vendor if the player isn't specific.
if( text["merchant"] || text["vendor"] || (pass) )
var dis := 7;
foreach mob in npclist
if(CheckLineOfSight(who, mob))
var dst := dist(who, mob);
if(dst < dis)
dis := dst;
npc := mob;
endif
endif
endforeach
endif