Quote:
Originally Posted by cbk1994
Add an echo into the onActionSeverSide event in the DB NPC and see if the trigger is being received.
|
Yes the trigger is recived... Though, the script doesnt work...
PHP Code:
function onActionServerSide(cmd)
{
if (cmd == "buy")
{
purchase(thiso.weapon, thiso.price);
}
}
function Purchase(a, b)
{
addweapon(a);
player.rupees -= b;
}