Scripts for running the various commands/npcs (done so far) are pushed.

This commit is contained in:
Filip Maj 2016-03-12 02:54:03 -05:00
parent e851c767df
commit e409d3792c
67 changed files with 1447 additions and 0 deletions

View file

@ -0,0 +1,23 @@
--[[
DiceCommand Script
--]]
function onEventStarted(player, actor, maxNumber)
if (maxNumber == nil) then
maxNumber = 999;
end
result = math.random(0, maxNumber);
worldMaster = getWorldMaster();
player:sendGameMessage(player, worldMaster, 25342, 0x20, result, maxNumber);
player:endEvent();
end
function onEventUpdate(player, npc)
end