server/src/scripts/sphinx-initfactions.lua
Christian Schlittchen 8ee6431125 WDW Änderungen vom Wochenende.
- besseres Error-handling in eventhandlern
- bugfix get_variable

Scriptänderungen Sphinx
! bedarf noch eines Cleanup
2004-08-18 22:24:48 +00:00

22 lines
432 B
Lua

function init_sphinxhints()
for faction in factions() do
for i=0,14,1 do
hints[i] = 0
end
for i=0,4,1 do
if faction:get_variable("sphinxhint"..tostring(i)) == nil then
repeat
hint = math.random(0,14)
until hints[hint] = 0
hints[hint] = 1
faction:set_variable("sphinxhint"..tostring(i),tostring(hint))
end
end
end
end
init_sphinxhints()