• 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!

[Mod] Random Item Stats

How to make an restriction for certain items ?
Mean only custom swords what name or ID i typed in script can be unique/rare/legendary/epic ?
 
I'm using tfs 8.7 and when I kill some summon the script appear on exe :s
again, it won't work with TFS 0.2.X
don't bother trying.
How to make an restriction for certain items ?
Mean only custom swords what name or ID i typed in script can be unique/rare/legendary/epic ?
add isInArray check before the part where it's supposed to deal with bonuses
 
Last edited:
PHP:
[19/06/2011 09:39:34] [Error - CreatureScript Interface] 
[19/06/2011 09:39:34] In a timer event called from: 
[19/06/2011 09:39:34] buffer:onKill
[19/06/2011 09:39:34] Description: 
[19/06/2011 09:39:34] [string "loadBuffer"]:111: bad argument #2 to 'random' (interval is empty)
[19/06/2011 09:39:34] stack traceback:
[19/06/2011 09:39:34] 	[C]: in function 'random'
[19/06/2011 09:39:34] 	[string "loadBuffer"]:111: in function 'createLoot'
[19/06/2011 09:39:34] 	[string "loadBuffer"]:189: in function 'createChildLoot'
[19/06/2011 09:39:34] 	[string "loadBuffer"]:228: in function <[string "loadBuffer"]:212>
Look that - tfs 0.3.6pl1
 
Lua:
local percent, new, tmp = math.random(n.percent[1] + (v.extra[1] or 0), n.percent[2] + (v.extra[2] or 0))
you edited the script? maybe you misconfigured the percents, having min. percent higher than max percent
 
can you try to find the error in the message then?
 
there has to be an error somehere, try looking better
 
Enjoy freeze & no loop for display.

See... doExecuteShell in my personal library has neither problem, it executes in a separate thread and uses a special feedback channel for display (If you wanted to get really creative, you could install a minimal X server installation and use a automated server sided VNC outgoing connection.), but this was meant merely as a peanut gallery funny aside and not meant to derail the thread off-topic. I thought the /usr/local/bin/launch-nukes.bsh made that obvious. o_O

I think the biggest reason I said it was because he called trunk 4383 'crying damson' when indications were it was gonna be named 'Doomed Elderberry'.

Anyways, enough neffing.
 
Back
Top