• 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:
make /clean able to clean pz like depot and temple...

is it possible?

It is possible in newest trunk, but if you dont use here you have:

Open map.cpp and search:

PHP:
if(!tile->hasFlag(TILESTATE_HOUSE))

Change it into

PHP:
if(!tile->hasFlag(TILESTATE_PROTECTIONZONE))

I think it will work.
 
Not tested but if u read it this means that it will clean houses so, it is noobish :/
add a new line for it.
 
Elf, script still work sux.

20:40 - entering to the training room.
20:50 - please click the laver or you will be kicked.
20:50 - <clicked the laver>
20:51 - please click the laver or you will be kicked. - o_O
20:51 - kick.
 
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"/>

When I use this, my spells don't work. I just say "Strong Haste". Can you help? :thumbup:

Tested with every spell...
 
When I use this, my spells don't work. I just say "Strong Haste". Can you help? :thumbup:

Tested with every spell...

Go to your spells/x/great haste.lua and then in the function onCastSpell, before return doCombat add that line about animated text.
 
If for addons, the npc should say 'I go finish your addon now, come back later'

and 2 hours should have passed before he will give you the addon, how to script that?

So first he says 'I go finish....'
- 2 hours later -
'You are just in time for your addon. Here it is'
- gives addon -

and if u come before those 2 hours have passed it says
'I am affraid your addon is not done yet...'

Any help please :D

Tica~
 
this is an npc function which I don't know stop going off topic plz..
It would be something like this anyway
PHP:
function onThinkCallback()
	if(lastTime == 0) then
		lastTime = os.time()
	elseif(os.time()-lastTime >= 2*60*60) then
 
@Ronaldino
I'm saying that i don't want to see the player saying "utani gran hur", only want to see the text "Strong Haste". Sorry for my bad english... :thumbup:

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

Does this code work?:p
 
Status
Not open for further replies.
Back
Top