Created
April 12, 2016 22:44
-
-
Save TeoTwawki/6eadb99d149f3271e18ee72be769284c to your computer and use it in GitHub Desktop.
example of an NPC static shop script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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