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

[REQUEST] Aol System

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a scripter so.
you to use the item, and you get aol
~~~~~~~~~~~~~~:p
and if you speak another! aol and loses money
rep+:peace:
 
I didn't quite understand what you want, but let's try this.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local loss = 10000
	if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then
		doPlayerRemoveMoney(cid, loss)
		doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have lost money.")
	else
		doPlayerAddItem(cid, 2173, 1, true)
		doCreatureSay(cid, "" .. getItemNameById(2173) .. "!", TALKTYPE_ORANGE_1)
		doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
	end
	return true
end
 
Back
Top