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

message bless

crashwan

New Member
Joined
Oct 6, 2012
Messages
53
Reaction score
0
connecting or leave a protection zone, you send a message saying if you blessing or not
check

 
You could add something like this to login.lua:

Lua:
if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are blessed.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not blessed.")
	end
 
You could add something like this to login.lua:

Lua:
if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are blessed.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not blessed.")
	end




Lua:
local b = 1,5

	if not getPlayerBlessing(cid, b) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not blessed.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are blessed.")
	end
 
I'll finish the other half of the script when I get to a
computer later today if nobody does it before me.
And then post it here.

Should take 2 minutes.
 
Back
Top