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

TFS 1.0 Last Man Standing By Nevix

I know how to do it, but if I'm gonna do it everything for you, you will never learn lua language.

random number 1,5
itemchance like 1,10

if random number == 1 && itemchance == 1 then
you got this item
elseif random number == 2 && itemchance == 1 then
you got this item

you can configure it by yourself very easily


i cant script im trying to learn it but i probably fail as useual :D i learn more if u completed it so i can get the rules u made into my head tough :p:( but ill see what i can do

question did someone told you i was trying to learn lua code or just random guesse?
 
i cant script im trying to learn it but i probably fail as useual :D i learn more if u completed it so i can get the rules u made into my head tough :p:( but ill see what i can do

question did someone told you i was trying to learn lua code or just random guesse?
I learned everything by myself, I tried 100 times and one was Successful. So use your brains and do your best.


Code:
local firstrandom = math.random(1,10) -- CHANCE 1 of 10
local itemget_id1 = 2160
local itemget_id1_count = 100
local itemget_id2 = 2160
local itemget_id2_count = 2

if (firstrandom == 1) then
doPlayerAddItem(cid,itemget_id1, itemget_id1_count) 
elseif(firstrandom == 2) then
doPlayerAddItem(cid,itemget_id2, itemget_id2_count)
end
If you got number 1 or 2 you will get crystal coins, you can increase chance if you want.



you can add more and more, everything whatever you want.
 
I wonder if it is possible to change the points of reward for an item?
 
Looks amazing, can this be converted to 0.4? because old ones are bad
 
Script the guy works perfectly , however when it comes to the fight time the two players are teleported out and says it has the 2 players . know WHAT will you?
 
working on tfs 1.2! :D my map no have positions in the script can upload event map???

this event have a .php for gesior 2012??
 
Last edited:
This script is for tfs 1.0 right? Because when i try to use script it says something about 'docreateitem' and wont spawn the teleport to join last man standing ; S
 
Been trying to get this to work all day, ive added everything and edited the tps but the event never starts?

this is my globalevents.xml i set it to a low time to test it.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
   <globalevent type="startup" name="ServerStartup" script="startup.lua" />
   <globalevent type="record" name="PlayerRecord" script="record.lua" />
   <globalevent name="Server Save" time="09:55:00" script="serversave.lua" />
   <globalevent name="Last Man Standing" interval="3000" script="scripts/lms.lua"/>
   <!--
   <globalevent name="timer_example" time="12:00:00" script="my_script.lua" />
   -->
</globalevents>

Im using tfs. 1.3
 
Back
Top