Lord Cyrix
New Member
- Joined
- Nov 7, 2009
- Messages
- 4
- Reaction score
- 0
Flatlander, what servers do u you have up and running right now? Im a huge fan of one of your older projects (8.6 Species)
Make a function:
function getArenaPlayers()
local ducksauce = getPlayersOnline()
local example = {}
for _, tid in ipairs(ducksauce) do
if isInArena(tid) then
table.insert(example, tid)
end
end
return example
end
<summon name="Poison Spider" interval="1000" chance="30" max="5" count="5"/>
<createList">
<summon name="Poison Spider" interval="1000" chance="30" count="1"/>
<summon name="Spider" interval="1000" chance="30" count="3"/>
</creatList>
<lifetimer time="xxx" />
<health now="xxxx" max="xxxx" gainhpticks="xxx" gainhpamount="xxx"/>
<mana now="xxxx" max="xxxx" gainmpticks="xxx" gainmpamount="xxx"/>
<trail id="xxxx" countmin="x" countmax="x" chance="xxxx"
local player = Player.get(cid)
player.setData(1,5) -- or whatever
player.setMaxLife(500)
--etc..
setPlayerStorageValue(cid, "customtable", table.serialize({[data] = {1, 5), [maxLife] = 500, etc})
You cannot serialize metatables that's one of the problems I encountered.Wouldn't that be information you'd want to have? If the server restarted you'd lose all information in your extended LUA-Table.
Plus you can do.
I am going to test how big of a table you can store, store it to globalevents, then call upon it again, and use the table in a separate script.Code:setPlayerStorageValue(cid, "customtable", table.serialize({[data] = {1, 5), [maxLife] = 500, etc})
seethroughwalls = false
--or
seethroughwalls = true
New update Made it so you can turn on/off line of sight in config.lua
Code:seethroughwalls = false --or seethroughwalls = true
Storage name as string.
instead ofCode:if getPlayerStorageValue(cid, "randomQuest") == 1 then
Code:if getPlayerStorageValue(cid, 123123) == 1 then
------------World Light----------
--Setting daytime to -1 will disable daytime and night time, and will use daylight as the default world light
daytime = 3600 -- number of seconds in a day (default 3600 for 1 hour days)
daypercent = 50 -- percentage of daytime/nighttime Example: 75% of 3600 is 2700 daytime and 900 nighttime (45 minutes/15 minutes),
daylight = 240 -- How light it is during the day (must be between 0-255)
nightlight = 40 -- How light it is during the night (must be between 0-255)
setWorldLight(lightlevel)
There wont be local light?