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

[FREE] Talkactions/Movements/Actions/global/creature/spells/MORE!

gigastar

Member
Joined
Jan 25, 2009
Messages
252
Reaction score
15
Post any requests here. I will make it completely user friendly, so you will be able to change any part of the script you might want to. It will also be extremely advanced, anything that can be put in will be.

I'm not limiting it to free script. ;P


{prime that script is set for 1 hour. If you want more hours * 2 at end thats two hours.}
 
Last edited:
so basiccally i need something that will only allow you to use it every 3hours or so and will change your vocation, i sent u a msg but i wasnt sure if i was very through with it anyway reped u already :p

edit : thanks
Lua:
local wait_time = 60 * 1000 * 60

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, vocexhuast) == 1 then
 doPlayerSendCancel(cid, "You can only use this once and hour!")
return false
else
 doPlayerSetVocation(cid, 3)
 doPlayerSendTextMessage(cid, 22, "Congratulations, you have been graced with Ranged Marksmanship, this may be reversed by replacing it with another Grace.")
 setPlayerStorageValue(cid, vocexhaust, 1)
 addEvent(waitTime(), wait_time, cid)
return false
end
return true
end




function waitTime()
if (getPlayerStorageValue(cid, vocexhaust)) then
 setPlayerStorageValue(cid, vocechause, 0)
end
end
 
Last edited:
so basiccally i need something that will only allow you to use it every 3hours or so and will change your vocation, i sent u a msg but i wasnt sure if i was very through with it anyway reped u already :p

edit : thanks
Lua:
local wait_time = 60 * 1000 * 60

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, vocexhuast) == 1 then
 doPlayerSendCancel(cid, "You can only use this once and hour!")
return false
else
 doPlayerSetVocation(cid, 3)
 doPlayerSendTextMessage(cid, 22, "Congratulations, you have been graced with Ranged Marksmanship, this may be reversed by replacing it with another Grace.")
 setPlayerStorageValue(cid, vocexhaust, 1)
 addEvent(waitTime(), wait_time, cid)
return false
end
return true
end




function waitTime()
if (getPlayerStorageValue(cid, vocexhaust)) then
 setPlayerStorageValue(cid, vocechause, 0)
end
end


Lua:
local time = 60 * 60 * 3
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 9122) == 1 then
		doPlayerSendCancel(cid, "You can only use this once and hour!")
	else
		doPlayerSetVocation(cid, 3)
		doPlayerSendTextMessage(cid, 22, "Congratulations, you have been graced with Ranged Marksmanship, this may be reversed by replacing it with another Grace.")
		setPlayerStorageValue(cid, 9122, 1)
		addEvent(waitTime(), time, cid)
	end
	return true
end
 
[Party Haste]?

CAn you make a spell that when (druid) uses it, everyone in the party gets haste for 10seconds?
(all same speed)?
 
Give me a min.......

- - - Updated - - -

Lua:
local time_to_unhaste = 10 -- in seconds --

function onCast(cid, var)
local party = getPlayerParty(cid)

if getPlayerParty(cid) > 0 then
doAddCondition(cid, CONDITION_HASTE)
doAddCondition(getPlayerParty(cid), CONDITION_HASTE)
setPlayerStorageValue(getPlayerParty(cid), isParty getPlayerName(cid), 1)
addEvent(unHaste, time_to_unhaste * 1000, cid)
else
doAddCondition(cid, CONDITION_HASTE)
addEvent(unHaste, time_to_unhaste * 1000, cid)
end
	

	
local function unHaste
doRemoveCondition(cid, CONDITION_HASTE)
for i, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, isParty getPlayerName(cid)) == 1 then
doRemoveCondition(pid, CONDITION_HASTE)
setPlayerStorageValue(pid, isParty getPlayerName(cid), 0)
end
end

- - - Updated - - -

This should work, come back with error if there are any.
 
Last edited:
any errors?

- - - Updated - - -

There definitly should have been 2 xD

Lua:
local time_to_unhaste = 10 -- in seconds --
 
function onCast(cid, var)
local party = getPlayerParty(cid)
 
if getPlayerParty(cid) > 0 then
doAddCondition(cid, CONDITION_HASTE)
doAddCondition(getPlayerParty(cid), CONDITION_HASTE)
setPlayerStorageValue(getPlayerParty(cid), isParty getPlayerName(cid), 1)
addEvent(unHaste, time_to_unhaste * 1000, cid)
else
doAddCondition(cid, CONDITION_HASTE)
addEvent(unHaste, time_to_unhaste * 1000, cid)
end
end
 
 
 
local function unHaste
doRemoveCondition(cid, CONDITION_HASTE)
for i, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, isParty getPlayerName(cid)) == 1 then
doRemoveCondition(pid, CONDITION_HASTE)
setPlayerStorageValue(pid, isParty getPlayerName(cid), 0)
end
end
end

- - - Updated - - -

The only thing about this script is if he uses it on someone, then uses it again, it will still only last until the time specified, it wont change it back again until after it wears off. Then they can get a full (however much time) again.
 
Last edited:
[Q
UOTE]local wait_time = 60 * 1000 * 60

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, vocexhuast) == 1 then
doPlayerSendCancel(cid, "You can only use this once and hour!")
return false
else
doPlayerSetVocation(cid, 3)
doPlayerSendTextMessage(cid, 22, "Congratulations, you have been graced with Ranged Marksmanship, this may be reversed by replacing it with another Grace.")
setPlayerStorageValue(cid, vocexhaust, 1)
addEvent(waitTime(), wait_time, cid)
return false
end
return true
end




function waitTime()
if (getPlayerStorageValue(cid, vocexhaust)) then
setPlayerStorageValue(cid, vocechause, 0)
end
end[/QUOTE]






its work just to change voc name and don't reset mana or hp or skill i want it reset man and hp and skills pelase
 
any errors?

- - - Updated - - -

There definitly should have been 2 xD

Lua:
local time_to_unhaste = 10 -- in seconds --
 
function onCast(cid, var)
local party = getPlayerParty(cid)
 
if getPlayerParty(cid) > 0 then
doAddCondition(cid, CONDITION_HASTE)
doAddCondition(getPlayerParty(cid), CONDITION_HASTE)
setPlayerStorageValue(getPlayerParty(cid), isParty getPlayerName(cid), 1)
addEvent(unHaste, time_to_unhaste * 1000, cid)
else
doAddCondition(cid, CONDITION_HASTE)
addEvent(unHaste, time_to_unhaste * 1000, cid)
end
end
 
 
 
local function unHaste
doRemoveCondition(cid, CONDITION_HASTE)
for i, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, isParty getPlayerName(cid)) == 1 then
doRemoveCondition(pid, CONDITION_HASTE)
setPlayerStorageValue(pid, isParty getPlayerName(cid), 0)
end
end
end

- - - Updated - - -

The only thing about this script is if he uses it on someone, then uses it again, it will still only last until the time specified, it wont change it back again until after it wears off. Then they can get a full (however much time) again.

Man, I think that if he wants a spell, you should make it function onCastSpell(cid, var) because function onCast(cid, var) is creaturescript xD
 
Back
Top