• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Spell na czas okreslony pomoc

Slepy

New Member
Joined
May 14, 2009
Messages
111
Reaction score
1
Potrzebuje Scripu Na Spell gdzie bede mogl zachowac jego efekt na sobie lecz na czas okreslony czyli napisze ze na 60 sec to przez 60 sec bedzie sie powtarzal

Need Script - Spell Where I can exura efect on me But on time 37 sec then i a make Exura then this efect repeated 60 sec you understand?

-- Efekt magiczny na sobie przez jakis czas
-- by Cuddles
-- [email protected]

-- Ustawienia
local max = 10 -- how much to repeat
local efekt = 35 -- Efect


function onSay(cid, words, param)
local count = 0
param = {cid = cid, count = 0}
addEvent(AddEffect, 60, param)

end

function AddEffect(param)
doSendMagicEffect(getCreaturePosition(param.cid), efekt)
param.count = param.count + 1
if param.count <= max then
addEvent(AddEffect, 60, param)
end
end
i wanna to change this:
local max = 10 --
for this:
local max = 10 sec --
can help me?
 
Last edited:
You should use English language at here, if you wan't to use Polish then go to the Polish Board.
How peoples from other countries may understand you?
 
Code:
local config = {
	repeatCount = 10,
	interval = 1000,
	effect = CONST_ME_HEARTS
}

local function addEffect(cid, n)
	if isPlayer(cid) == TRUE then
		doSendMagicEffect(getThingPos(cid), config.effect)
		if math.max(n, 1) < config.repeatCount then
			addEvent(addEffect, config.interval, cid, n + 1)
		end
	end
end

function onSay(cid, words, param)
	addEffect(cid, 1)
end
 
i don't wanna to repeatCount = 10,
i wanna timeCount = 60,
 
i wanna make Horse efekt for utani hur :p thx all
Elf Can Close
 
Back
Top