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
Add in creaurescripts.xml
and in login.lua
SS:
If you have AOL, then it will only show in LOG, so it doesnt spamm ur screen
If you dont have AOL, it will show on screen and LOG!
Tested on 0.4
Should work fine on 0.3.6
Rep++ if thats help you
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
If you dont have AOL, it will show on screen and LOG!
Tested on 0.4
Should work fine on 0.3.6
Rep++ if thats help you
Last edited: