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

Aol notaic

Nosaa

New Member
Joined
Mar 6, 2013
Messages
31
Reaction score
0
i want this script please when u go out pz and don't have aol get notic you out pz and don't have aol use !aol to buy aol and protect ur items
 
COLANDUS DO THIS, ALL CREDITS TO HIM


>creaturescripts\scripts\aol.lua
Lua:
local counter = {}
function onThink(cid, interval)
	if(isPlayerGhost(cid) or getPlayerGroupId(cid) > 1) then
		return true
	end
 
	if not(getTileInfo(getCreaturePosition(cid)).protection) and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid ~= 2173 then
		if(not counter[cid]) then
			counter[cid] = 0
		end
		counter[cid] = counter[cid] + 1
		if(counter[cid] % 10 == 0)then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You are not using Amules of Loss, type !aol to buy one.")
		end
	end
	return true
end

>creaturescripts\creaturescripts.xml
XML:
<event type="think" name="Aol" event="script" value="aol.lua"/>

>creaturescripts\scripts\login.lua
before
Lua:
	return TRUE
end
paste
Lua:
registerCreatureEvent(cid, 'Aol')
 
Back
Top