Vote rewards for Tibia
One Lua script works on The Forgotten Server 1.4+ and Canary. Players type !vote and receive items, coins or premium days.
Vote for Emberfall
ExampleVoting as Iron Moss
2 of 4 voted
VoteRank Vote here first
Voted. Again in 11 h 42 minTopG
Voted. Again in 2 h 02 minXtremeTop100
Waiting for the list to confirmGTOP100
Vote every 12 hoursCreate your vote page
Sign up, name your server and choose Tibia. Setup fills in the usual settings: players enter “Your in-game name” and claim with !vote.
Tell us about your server
Add your toplists
Paste the link of your server on each list. For this game, VoteRank, TopG, XtremeTop100 and others are ready.
VoteRank Recommended
TopG
Choose the reward
The item id for your client version, or a word such as coins.
Reward for every vote
Create an API key
Open Game server in the dashboard and create a key. It is shown once. You need it in the next step.
API key
gv_4d1f…9c02CopyCopy it now. We store only a hash, so it cannot be shown again.
Waiting for the first call from your game
Connect the game
Follow the steps below.
Try it
Open a vote site in your dashboard, use Send a test vote with your own name, then type !vote in the game.
Iron Moss: !vote
Thank you for voting! Rewards received for 2 votes.
API key
gv_4d1f…9c02CopyCopy it now. We store only a hash, so it cannot be shown again.
Your game has used a key
The Forgotten Server 1.4+ and Canary
Tested against a live VoteScript with a simulated gameStep 1
Put votescript.lua in data/scripts/. It works on both engines.
server/
data/
scripts/
votescript.luanew
votescript-delivery.phpnew
votescript.ininew
Step 2
Next to the server, run php votescript-delivery.php once, fill in votescript.ini with mode = "game", your key and your database, and start it again. Lua there has no web requests, so this program asks VoteScript.
$ php votescript-delivery.php
Created votescript.ini. Fill it in and start again.
[database] dsn = "mysql:host=127.0.0.1;dbname=YOUR_DATABASE;charset=utf8mb4" user = "" password = "" [votescript] url = "https://votescript.voterank.net" key = "YOUR_KEY" mode = "game"
Step 3
At the top of the script you choose what votes may give: premium days, storages, teleports, experience, outfits, mounts, your own actions. The script finds out by itself what your server can do and tells VoteScript.
local VIP = { vip = true, premium = true }
local STORAGES = { { 30000, 39999 } }
local UNLOCK = { vote_dungeon = 30100 }
local PLACES = { temple = { 1000, 1000, 7 } }
local RUN = {
daily_box = function(player, amount)
player:addItem(2160, 5)
return true
end
}Step 4
Players type !vote to claim by character name, or !vote CODE.
Iron Moss: !vote
Thank you for voting! Rewards received for 2 votes.
Toplists for Tibia
VoteRank is recommended for every game. Lists marked “test first” have a format we only found in other people’s code.
- VRVoteRankA vote every 12 hours
- ATArena-Top100A vote every 12 hours
- PSPrivate-Server.wsA vote every 24 hours
- MMMMTop200A vote every 12 hours
- T1Top100ArenaA vote every 24 hours
- TGTopGA vote every 6 hours
- STServerTiltA vote every 24 hours
- XTXtremeTop100A vote every 12 hours
- GTGTOP100A vote every 12 hours
- MMMMO ToplistA vote every 12 hours
If it does not work
The command says there is nothing to claim
Votes are not checked right now
A reward says it waits
Nothing arrives from a toplist
Do it yourself
The API, webhooks and clients work with any game.
GuideConnect your gameWhen a player types your command, the game asks VoteScript what is waiting and hands it out.
GuideRewards, bonuses and streaksStart with one reward per vote: an item, a day of VIP, a title, a teleport. Add a bonus and a streak when the first one works.
GuideToplist callbacksA callback is how a toplist tells VoteScript that someone really voted. Lists also call it postback, incentive, pingback or webhook. You paste one address per list.
Give your players one place to vote
Your page is live as soon as you create your server. You can connect the rest step by step.

