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

vegaseek

Member
Joined
Dec 11, 2010
Messages
146
Reaction score
8
I need script for TFS 0.2.9 (Mystic Spirit) - aol forever! I give Rep ++ for help!
 
Lua:
function onLogin(cid)
	local amulet = getPlayerSlotItem(cid, 2)
	if (amulet ~= nil) then 
		if (amulet.itemid == 2173) then
			doItemSetAttribute(amulet.uid, 'charges',  99)
		end
	end
	return true
end

Now go into items.xml and find your AOL and add this:
XML:
<attribute key="charges" value="99"/>
 
Where paste this code: ????

Code:
function onLogin(cid)
	local amulet = getPlayerSlotItem(cid, 2)
	if (amulet ~= nil) then 
		if (amulet.itemid == 2173) then
			doItemSetAttribute(amulet.uid, 'charges',  99)
		end
	end
	return true
end
 
This is your script:
ezndtv.jpg
 
Ya, I expected you were using a mainstream source, didn't realize you were using 0.2.9. Like 99% of the scripts that you are requesting will not work without extensive source edits.
 
Your making this a lot more complex than it needs to be. Just upgrade to 0.3.6 if you are this clueless towards scripting and coding.
 

Similar threads

Back
Top