Skip to content

Instantly share code, notes, and snippets.

@TeoTwawki
Created April 12, 2016 22:44
Show Gist options
  • Save TeoTwawki/6eadb99d149f3271e18ee72be769284c to your computer and use it in GitHub Desktop.
Save TeoTwawki/6eadb99d149f3271e18ee72be769284c to your computer and use it in GitHub Desktop.
example of an NPC static shop script
function onTrigger(player,npc)
player:showText(npc, TEXT_ID_HERE);
local stock =
{
4238, 5000, -- HQ Fire Crystal
4239, 5000, -- HQ Ice Crystal
4240, 5000, -- HQ Wind Crystal
4241, 5000, -- HQ Earth Crystal
4242, 5000, -- HQ Lightning Crystal
4243, 5000, -- HQ Water Crystal
4244, 5000, -- HQ Light Crystal
4245, 5000 -- HQ Dark Crystal
};
showShop(player, STATIC, stock);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment