jestemPolakiem
New Member
Online Book
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just use a book.[/B]
Players Online
» NICKNAME - 0 level, vocation is NONE
data/actions/actions.xml
PHP:
<action itemid="1961" event="buffer" value="
local string = 'Players Online\n\n'
for i, pid in ipairs(getPlayersOnline()) do
string = string .. ' » ' .. getCreatureName(pid) .. ' - ' .. getPlayerLevel(pid) .. ' level, vocation is ' .. getVocationInfo(getPlayerVocation(pid)).name .. '\n'
end
doShowTextDialog(cid, 1961, string)
"/>
Greets
jestemPolakiem
Last edited: