• 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]you click the item and is talking about

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a scripter you click the item and it is talking about "VIP" - in one color, red
rep+:wub:

Cykotitan :wub:

@edit

It has to be infinite
 
Tested and working with TFS 0.4

data/actions/scripts/vip.lua :
LUA:
local text = "VIP"

function onUse(cid, item, fromPosition, itemEx, toPosition)
	doSendAnimatedText(getPlayerPosition(cid), "".. text .."", TEXTCOLOR_RED)
end

data/actions/actions.xml :
LUA:
<action itemid="XXXX" event="script" value="vip.lua"/>

Replace XXX with the item ID
 
Last edited:
=_=
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doSendAnimatedText(getThingPos(cid), "VIP", TEXTCOLOR_RED)
end
 
=_=
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doSendAnimatedText(getThingPos(cid), "VIP", TEXTCOLOR_RED)
end

Tell me the difference between mine and yours, why that return?

I'm just curries since I'm trying to learn, I'm not criticizing you
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local saying = "VIP" --put what you want the item to say when used here
	local times = 3      --put how many times you want the item to say it here
	
	for i = 1, times do
		doSendAnimatedText(getPlayerPosition(cid), saying, TEXTCOLOR_RED)
	end
	
	return TRUE
end
 
LUA:
local x = {say = "VIP", times = 3}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	for i = 1, x.times do doSendAnimatedText(getPlayerPosition(cid), x.say, TEXTCOLOR_RED) end
	return true
end
 
Back
Top