Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

AOL Reminder

Experienced Elementalist
Joined
Jul 29, 2012
Messages
240
Reaction score
25
Hello,
I made this script because I didnt see anything similar here.

First create new file data\creaturescripts\scripts\AOL.lua
Code:
--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
Code:
	<event type="login" name="Aol" event="script" value="AOL.lua"/>

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


SS:
If you have AOL, then it will only show in LOG, so it doesnt spamm ur screen
Amiroslo - AOL Reminder - RaGEZONE Forums


If you dont have AOL, it will show on screen and LOG!
Amiroslo - AOL Reminder - RaGEZONE Forums

Tested on 0.4
Should work fine on 0.3.6

Rep++ if thats help you :D
 
Back
Top