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

Welcome and Effect

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
The script like this:
you enter the server and it says welcome, with an effect
this would be CONST_ME_MAGIC_BLUE
rep+
 
LUA:
function onLogin(cid)
         doPlayerSendTextMessage(cid, 22, "Welcome.")
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
return true
 
LUA:
function onLogin(cid)
         doPlayerSendTextMessage(cid, 22, "Welcome.")
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
return true
end<--?
 
LUA:
function onLogin(cid)
         doCreatureSay(cid, "Welcome.", 19)
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
return true
end

With this one it will say welcome near player name and every1 can see that he just logged in.
 
LUA:
function onLogin(cid)
         doPlayerSendTextMessage(cid, 22, "Welcome.")
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
return true
end<--?

You see you learn fast? You can now make your own scripts :P just the basic one like that script that you proved me wrong :)
 
The script of lava would make the player talk "Welcome" just like a monster, in orange...

Mine just would send a text message in white in the middle of the screen, like a broadcast "Welcome".
 
imgose.png

http://img200.imageshack.us/img200/2383/imgose.png
 
Code:
function onLogin(cid)
	return doSendAnimatedText(getThingPos(cid), "Welcome!", TEXTCOLOR_BLUE) and doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_ADVANCE, "Welcome back " .. getCreatureName(cid) .. "!")
end
 
Back
Top