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

Clary Request thread

Status
Not open for further replies.

Clary

New Member
Joined
Mar 7, 2008
Messages
1,007
Reaction score
1
Do u need any action script? or talk action? or move event?
Request it here and I will make it for u asap if I can


Remember only action, talk & move nothing else.
Move only stepin alone and maybe stepout alone

Yours,
Clary
 
Last edited:
@Marcinek

Now it doesnt works how works before... it send 2 warning messages in one second also when I push the laver after 10 minutes script just doesnt work XD! Marcinek you pwnd.! XD


/ip is it possible? xD like:


/ip 200.200.200.200

17:04 players online with ip 200.200.200.200:
Nb Name1
Nb Name2
...

Only in sources.
 
@diogo as Ronaldino said only in source sry :/
but it is possible with luasql I think.
 
Don't know but luasql check database so, if it found same ip it would be possible I think :)
But nothing is sure.
 
Not really read my first post first... I didn't say weapon and that one should work I am sure it is something with the effect.
and Ronaldino request wasn't easy to make prove Colandus and Marcinek tried and failed I don't think I can't do anything... and b4 being cocky show me what u can do in scripting I helped all the ppl that requested something can be done and in the range I said u should request in
 
global.lua:
Code:
idleEvents = {}
function playerIdle(cid, position)
	if getPlayerStorageValue(cid, 1233) ~= TRUE then
		setPlayerStorageValue(cid, 1233, TRUE)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Please press the lever, else you'll be kicked!")
		idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 1 * 60 * 1000, cid, position)
	else
		setPlayerStorageValue(cid, 1233, FALSE)
		stopEvent(idleEvents[getPlayerGUID(cid)])
		doRemoveCreature(cid)
		doSendMagicEffect(position, CONST_ME_POFF)
	end
end
Move Event:
Code:
function onStepIn(cid, item, position, fromPosition)
	idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 10 * 60 * 1000, cid, position)
	return TRUE
end

function onStepOut(cid, item, position, fromPosition)
	if getPlayerStorageValue(cid, 1233) == TRUE then
		setPlayerStorageValue(cid, 1233, FALSE)
	end
	stopEvent(idleEvents[getPlayerGUID(cid)])
    return TRUE
end

Action:
Code:
local function resetIdle(cid)
	if getPlayerStorageValue(cid, 1233) == TRUE then
		stopEvent(idleEvents[getPlayerGUID(cid)])
		doPlayerSendTextMessage(cid, 22, "You made it, newb!")
		setPlayerStorageValue(cid, 1233, FALSE)
		doPlayerResetIdleTime(cid)
		idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 10 * 60 * 1000, cid, position)
	end
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1946 then
		doTransformItem(item.uid, 1945)
		resetIdle(cid)
	else
		doTransformItem(item.uid, 1946)
		resetIdle(cid)
	end
	return TRUE
end
 
Last edited:
It does not.

I'd make it but Im too lazy to start up my server and try my/Elfs script :(

There was one thing in Elfs wrong, in the first message there is "you'll" instead of "you\'ll", but I guess you would notice it, if not try with the backslash.
 
Here you go:
put this in data/talkactions/scripts
Haste.lua
PHP:
function onSay(cid, words, param)
doSendAnimatedText(getPlayerPosition(cid), "Strong Haste", TEXTCOLOR_ORANGE)
end
and put this in data/talkactions/talkactions.xml
Code:
	<talkaction words="utani gran hur" script="Haste.lua"/>

Hey i must do on every spell if i want to get animated text to all spells?? :>
Can u make for me script that assing to all spells ??
 
As Ronaldino said.
I gave u the base
each time you will change the word to the other spell magic word and the script change Haste the the name of the spell
 
global.lua:
Code:
idleEvents = {}
function playerIdle(cid, position)
	if getPlayerStorageValue(cid, 1233) ~= TRUE then
		setPlayerStorageValue(cid, 1233, TRUE)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Please press the lever, else you'll be kicked!")
		idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 1 * 60 * 1000, cid, position)
	else
		setPlayerStorageValue(cid, 1233, FALSE)
		stopEvent(idleEvents[getPlayerGUID(cid)])
		doRemoveCreature(cid)
		doSendMagicEffect(position, CONST_ME_POFF)
	end
end
Move Event:
Code:
function onStepIn(cid, item, position, fromPosition)
	idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 10 * 60 * 1000, cid, position)
	return TRUE
end

function onStepOut(cid, item, position, fromPosition)
	if getPlayerStorageValue(cid, 1233) == TRUE then
		setPlayerStorageValue(cid, 1233, FALSE)
	end
	stopEvent(idleEvents[getPlayerGUID(cid)])
    return TRUE
end

Action:
Code:
local function resetIdle(cid, position)
	if getPlayerStorageValue(cid, 1233) == TRUE then
		stopEvent(idleEvents[getPlayerGUID(cid)])
		doPlayerSendTextMessage(cid, 22, "You made it, newb!")
		setPlayerStorageValue(cid, 1233, FALSE)
		doPlayerResetIdleTime(cid)
		idleEvents[getPlayerGUID(cid)] = addEvent(playerIdle, 10 * 60 * 1000, cid, position)
	end
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1946 then
		doTransformItem(item.uid, 1945)
		resetIdle(cid, fromPosition)
	else
		doTransformItem(item.uid, 1946)
		resetIdle(cid, fromPosition)
	end
	return TRUE
end
 
Status
Not open for further replies.
Back
Top