What's new

Problem z Postaci?

Status
Not open for further replies.

ariel1324

New User
Joined
Sep 16, 2010
Messages
4
Reaction score
0
Witam Mam Pewien Problem Na Swoim Otsie.Chodzi O to ?e Jak Palek si? manasuje manarun? to nie zadaje uderze? z Vip Stara ani z Procy.Je?li ktos wie w czym tkwi problem Niech Napisze.. G?ry Dziekuje za Pomoc Dam Reputa
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Problem z Postaci?

Poka? skrypty na mana run?. Dodam Ci do niej osoby exhausted, dzi?ki czemu b?dziesz m?g? bi? ze stara jednocze?nie si? manasuj?c.
 

ariel1324

New User
Joined
Sep 16, 2010
Messages
4
Reaction score
0
Odp: Problem z Postaci?

Oto Ten Skrypt::


Code:
 local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 1000) ---- how much it heal .
return doCombat(cid, combat, var)
end

Notka moderatorska:
U?ywaj code.
 
Last edited by a moderator:

ariel1324

New User
Joined
Sep 16, 2010
Messages
4
Reaction score
0
Odp: Problem z Postaci?

Ale chodzi O to ?e Inne postacie normalnie sie manasuja i atakuja w tym samym czasie tylko palk nie moze
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Problem z Postaci?

PHP:
local exhausted_storagevalue = 50000
local exhausted_seconds = 2

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
if os.time() > getPlayerStorageValue(cid, exhausted_storagevalue) then
	doPlayerAddMana(cid, 1000) ---- how much it heal .
	doPlayerSetStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
	return doCombat(cid, combat, var)
else
	doPlayerSendCancel(cid, "You are exhausted.")
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	return false
end
end
W spells.xml daj exhausted r?wne zero "0".

Notka moderatorska:
+1 OT Expert
 
Last edited by a moderator:
Status
Not open for further replies.
Top