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

Poll System

MaXwEllD

New Member
Joined
Sep 10, 2009
Messages
28
Reaction score
1
Location
Brazil

Author: MaXwEllDeN(MaXwEllD)
Tested in version: TFS 0.4.0
#Introduction

Hi guys. Here we have a simple poll system '-'. The messages in the photos are in portuguese, but i translate it.

2053u9t.png

#Installation

First, download the system and put the files in their respective folders.

Poll System Download


After placing the files in your folder add the following tags:

@Creaturescripts

Code:
    <event type="login" name="PollLogin" event="script" value="PollMax.lua"/>      <!-- Poll System By MaXwEllDeN -->

@Talkactions

Code:
	<talkaction words="!polls" event="script" value="PollMax.lua"/>      <!-- Poll System By MaXwEllDeN -->

Good bye :D.

 
Last edited:
On line 68, from talkactions part, it says:

Code:
POLL.func.addPoll(''..params[2]..'', Opt)   The survey "FUCK YAH" was added to the options:

You need to change it for this one or wont work:

Code:
POLL.func.addPoll(''..params[2]..'', Opt)   --The survey "FUCK YAH" was added to the options:
 
[22:47:41.241] [Error - TalkAction Interface]
[22:47:41.241] data/talkactions/scripts/PollMax.lua:eek:nSay
[22:47:41.241] Description:
[22:47:41.241] data/lib/PollSystem.lua:71: bad argument #1 to 'pairs' (table expected, got nil)
[22:47:41.241] stack traceback:
[22:47:41.241] [C]: in function 'pairs'
[22:47:41.241] data/lib/PollSystem.lua:71: in function 'hasPoll'
[22:47:41.241] data/talkactions/scripts/PollMax.lua:64: in function <data/talkactions/scripts/PollMax.lua:8>
 
Back
Top