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!
If you currently are using a lottery script, we can edit it to add a local function addPremiumPoints(amount) then simply alter the script to have a chance to give premium points using that function.
Although if you don't have a base to start from or can't use the search tool to find the numerous...
Nie mam pojęcia dlaczego w timer to dajecie?
Tu powinno być OK, wklej to do GLOBALEVENTS!
-- by vDk
-- With premium points by Samme.
local config = {
lottery_hour = "3 Hours", -- Time to next lottery (real time you set on globalevents.xml, its only for broadcast message.)
points = 15...
if getPlayerAccess(tid) <= 2 then -- changed
list[#list + 1] = tid -- changed
if #list == 0 then -- added
print("Not enough players for EventName to trigger.")
return true
end
local config = {
lottery_hour = "1 Hour", -- Time to next lottery (only for broadcast message, real...
Hello all!
I have one little problem in console on my ots:
[25/11/2009 00:11:53] data/globalevents/scripts/lottery.lua:onThink
[25/11/2009 00:11:53] data/globalevents/scripts/lottery.lua:13: bad argument #2 to 'random' (interval is empty)
[25/11/2009 00:11:53] stack traceback...
local config = {
lottery_hour = "24 Hours", -- Time to next lottery (real time you set on globalevents.xml, its only for broadcast message.)
points = 15, -- how many points winner get?
website = "yes" -- Do you have `lottery` table in your database?
}
function onTimer(interval...
No dobra zmieniłem na to co powiedziałeś, lecz teraz to będzie na zasadzie że co 3h. A nie o danej godzienie.
Próbowałem zrobić tak jak jest w example:
I zmieniłem na:
I nie działa, bo wyskakuje ten błąd.
Więc jak mogę teraz ustawić żeby było o danej godzinie?
which line is setup with the above script?
Basically do this.
<globalevent name="script_name" interval="3000" script="script_name.lua"/>
local config = {
[1] = {{x = 1000, y = 1000, z = 7}, "text 1"},
[2] = {{x = 1000, y = 1000, z = 7}, "text 2"},
[3] = {{x = 1000, y = 1000, z = 7}...
Hello, could someone convert this script to Revscriptsys? Thanks
The event comes down to each x configurable time, is chosen from the online player, 1 person and she receives a surprise bag (with random items to win also configurable)
Hello,
I have small problemt withs lua scripts some one can look?: )
lottery script
lottery error:
and this: [Warning - Items::loadFromXml] Unknown key value fieldAbsorbPercentFire ?
@Roddet - Thanks for the response! I tested the script and the results are mixed.
When 1 player is online and it is the GOD/GM, the lottery does not give a reward and no error is shown in console. (works perfectly)
However, when there is more than 1 player online; for some reason it will...
xeraphus i have this error in system lottery: my console is tfs 1.2 otxserver
[Warning - Event::checkScript] Can not load script: scripts/lottery.lua
data/globalevents/scripts/lottery.lua:20: 'end' expected (to close 'function' at line 6) near '<eof>'
local rewards = {
{itemid = 2160, count...
error ,i use crying damson 0.3.6 ,im using the mod one.
[23/05/2010 15:16:42] [Error - GlobalEvent Interface]
[23/05/2010 15:16:42] buffer:onThink
[23/05/2010 15:16:42] Description:
[23/05/2010 15:16:42] [string "loadBuffer"]:12: attempt to get length of field 'rewards_id' (a nil value)...