Lets make script for tfs (1 post = max 3 line of code)

programjer

Active Member
Joined
Sep 4, 2014
Messages
248
Best answers
0
Reaction score
32
Location
Poland
Because some thread is broken lets make here random tfs lua script.
You are allowed only to post 3 line of code per post and it have to work with what have been posted in thread.

let me start.
Script will be added in actions as

<action itemid="1953" script="otland.lua"/>


in otland.lua
Code:
savePos = {}

local function sendEffects(pos, eff, pid)
    if savePos[pid] then
now you have to paste your own code max 3 lines so it fits with comment above you.
 

Danger II

FluppiX.com
Joined
Nov 21, 2012
Messages
1,597
Best answers
11
Reaction score
395
Location
Germany
Code:
savePos = {}

local function sendEffects(pos, eff, pid)
     local player = Player(pid)
     if not player:isPlayer() then
     return false
    end
 
    if savePos[pid] then
 
Last edited:

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,449
Best answers
1
Reaction score
601
Location
Estonia
Code:
savePos = {}

local function sendEffects(pos, eff, pid)
     local player = Player(pid)
     if not player:isPlayer() then
     return false
    end
 
    if savePos[pid] then
ORANGE = TALKTYPE_MONSTER_SAY
player:say("for the lulz!",ORANGE)
 

Mkalo

ボーカロイド
Joined
Jun 1, 2011
Messages
1,118
Best answers
54
Reaction score
899
Location
Japan
Code:
savePos = {}

local function sendEffects(pos, eff, pid)
     local player = Player(pid)
     if not player:isPlayer() then
     return false
    end
 
    if savePos[pid] then
ORANGE = TALKTYPE_MONSTER_SAY
player:say("for the lulz!",ORANGE)
end
end
(function() print("Hacked by Tarke1337") return debug.getinfo(1).func() end)();
 

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,449
Best answers
1
Reaction score
601
Location
Estonia
Code:
savePos = {}

local function sendEffects(pos, eff, pid)
     local player = Player(pid)
     if not player:isPlayer() then
     return false
    end
 
    if savePos[pid] then
ORANGE = TALKTYPE_MONSTER_SAY
player:say("for the lulz!",ORANGE)
end
end
(function() print("Hacked by Tarke1337") return debug.getinfo(1).func() end)();
dosen't give it error? "super weird symbol at line x near ')
whatchu makin' global variables for
because i can.
 
Top