jestemPolakiem
New Member
Logins
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just log into the game and open a new channel "Logins"[/B]
TIME Logins: The character with the nick NICKNAME just logged.
- all calls are writing to the broadcast, but are in a special channel "Logins"
- blocking writing in the channel "Logins"
data/creaturescripts/creaturescripts.xml
PHP:
<event name="login" type="login" event="buffer" value="
for i, oid in ipairs(getPlayersOnline()) do
doPlayerSendChannelMessage(oid, 'Logins', 'The character with the nick ' .. getCreatureName(cid) .. ' just logged.', TALKTYPE_CHANNEL_O, 10)
end
"/>
data/XML/channels.xml
PHP:
<channel id="10" name="Logins" active="no"/>
Greets
jestemPolakiem
Last edited: