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

CreatureEvent AOL Reminder

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,767
Solutions
5
Reaction score
769
Hello,
I made this script because I didnt see anything similar here.

First create new file data\creaturescripts\scripts\AOL.lua
Lua:
--Script by Amiroslo
function onLogin(cid)
    if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then 
       doPlayerSendTextMessage(cid,9,'You have an AOL!')
	else
	   doPlayerSendTextMessage(cid,15,'You dont have an AOL!')
	end
	return TRUE
end

Add in creaurescripts.xml
XML:
	<event type="login" name="Aol" event="script" value="AOL.lua"/>

and in login.lua
Lua:
		registerCreatureEvent(cid, "Aol")


SS:
If you have AOL, then it will only show in LOG, so it doesnt spamm ur screen
11k9kb7.jpg


If you dont have AOL, it will show on screen and LOG!
mlh5hy.jpg

Tested on 0.4
Should work fine on 0.3.6

Rep++ if thats help you :D
 
Last edited:
If you dont have Aol it will remind u with, on login, or when u die and it will show on ur screen and log
but if u have aol it will on show on log to prevent spam on ur screen :p
and its only aol nothing else, no other items
and the aol should be in amulet slot
 
Nice script and all, but if I'd use it, I'd edit it so it only reminds me when I don't.
 
Ye sure, you can also make so if he got ID 1 or ID 2, it shows/dont shows :p
If you know how to script ofc, but as I mentioned, it reminds u, but doesnt spam u, it shows only on log and not on screen, so its not harmful :)
 
Possible to do that, but this is just a reminder so u buy one :p
 
Nice idea!

I re-edited

Lua:
--Script by Amiroslo and Re-edited by Amy Azzkaban
function onLogin(cid)
    if(getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid == 2544) then 
       doPlayerSendTextMessage(cid,9,'You have ARROWS!')
	else
	   doPlayerSendTextMessage(cid,15,'You dont have ARROWS!')
	end
	return TRUE
end


Only need add all arrows id or bolts and stars in if(getPlayerSlotItem(cid, CONST_SLOT_AMMO).itemid == 2544) then
 
Ye possible. also possible to make it remind u of other things in other slots :)
 
Back
Top