Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
Yo i was searching for a Lottery System couldn't find one for TFS 0.4 Once again haha..
Soooo heree it is DNO WHO CREDITS GO TO? Chojrak?
Lottery System. MODS/Lottery System.xml
<mod name="Lottery System" version="1.0" author="Chojrak" contact="[email protected]" enabled="yes">
<config...
Hello OTland, so for the past few days I wanted to release a lottery system like none other,
1st of all I took some of the script from the other lottery system so some of the credits go to the creator of that script ;)
Now first I will explain how this lottery system will work...
Every hour...
http://otland.net/f82/mod-chojraks-lottery-system-57314/
http://otland.net/f82/lottery-system-44496/
GlobalEventLottery System v2
Just search for lottery system.
Here is a simple lottery script, with configurable rewards chosen at random.
Tested this on tfs 1.1
Credits - @Luan Luciano
Installation -
globalevents.xml
<globalevent name="Lotto" time="01:00:00" script="Events/lottery.lua" />
(too add more, just add more lines with different time ^)...
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/lottery.lua:onThink
data/globalevents/scripts/lottery.lua:11: attempt to call method 'hasAccess' (a nil value)
stack traceback:
[C]: in function 'hasAccess'
data/globalevents/scripts/lottery.lua:11: in function...
Hi, I created a script lottery. The winner is the highest level of online players.
I do not have time to improve, put an improved version tomorrow.
Data/globalevents/scripts/arkam.lua
-- by Arkam
--- TNP go Death!
local ustawienia = {
czas_losowan = "3 Godziny", -- time to next loss...
I don't know since i started the server yesterday.. And yes.. the lottery system every 3 hours: <globalevent name="lottery" interval="10800000" event="script" value="lottery.lua"/>
So i am using this lottery system, but i dont believe it works with TFS 1.2 i am trying to make it so GM's and God's cannot get lottery rewards
Could someone possibly help me? ;d
data/globalevents/scripts/lottery.lua
--[[
ACCOUNT_TYPE_NORMAL = 1,
ACCOUNT_TYPE_TUTOR = 2...
Can anyone help me with this script?
I need him to deliver the items, only for promoted players.
local lottery = GlobalEvent("lottery")
local config = {
interval = "5 minutes.",
rewards = {
[3040] = 3, -- GOLD NUGGET
[3053] = 1, -- TIME RING
[2995] = 1, --...
Ill be releasing my lottery system soon I just need to find time to test it, in the meantime test this
<globalevent name="lottery" interval="4050000" event="script" value="lottery.lua"/>
It has five winning, but It was to be one
local config = {
lottery_hour = "4 hours", -- Tempo ate a proxima loteria (Esse tempo vai aparecer somente como broadcast message)
rewards_id = {2470, 2195, 2520, 2492, 2472, 2514, 2160}, -- ID dos Itens Sorteados na Loteria...
I also have this little bug with another global event:
Register:
<globalevent name="lottery" interval="36000" event="script" value="lottery.lua"/>
Script:
-- by vDk, klekSu
local config = {
lottery_hour = "3 Hours", -- Time to next lottery (real time you set on globalevents.xml, its only for...
TESTED ON TFS 0.3.6PL1!
All settings in script config!
It's a numeric lottery script!
The rules are very easy!
1.Player Send's tickets by command
!ticket 1,2,3,4,5,6 (type a numbers after the commas)
Players don't have ticket buy limit.
2.Next wait to 22:00 and script auto-draw numbers...
[Error - GlobalEvents::think] Failed to execute event: lottery
24774
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/lottery.lua:onThink
data/globalevents/scripts/lottery.lua:19: attempt to index local 'item' (a nil value)
stack traceback:
[C]: in function '__index'...
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/lottery.lua:onThink
data/globalevents/scripts/lottery.lua:18: attempt to index local 'item' (a nil value)
stack traceback:
[C]: in function '__index'
data/globalevents/scripts/lottery.lua:18: in function...
edit** when i open normal account this comes
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/lottery.lua:onThink
data/globalevents/scripts/lottery.lua:17: attempt to call method 'getCount' (a nil value)
stack traceback:
[C]: in function 'getCount'...