• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

CreatureEvent Logins

jestemPolakiem

New Member
Joined
Oct 17, 2009
Messages
48
Reaction score
2
Location
Poland
Logins
by jestemPolakiem

script has been tested on The Forgotten Server 0.3.6pl1 and worked

mapamg.png


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.
Changelog:
  • 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:
Próbowałem zrobić jak kanał help że po wylogowaniu i logowaniu kanał sam się włącza i nie działa :D

I tried to do as a channel that help to log off and log channel turns on itself and does not work: D
 
Back
Top