What's new

Senzu + Exhausted

Status
Not open for further replies.

DJSOJA1991

Banned
Joined
Sep 6, 2008
Messages
173
Reaction score
4
Szukam skryptu na senzu( Cos jak np jakis item dajace mane i hp +4500hp i many lub 50% hp i many)
ma ktos taki skrypt lub potrafi go zrobic. szukam go i niemoge znalesc.
 

Warcho

User
Joined
Nov 10, 2010
Messages
47
Reaction score
1
Odp: Senzu + Exhausted

chyba o to chodzi ;d

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -30, 1.7, 0)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.3 - 25
max = (level * 2 + maglevel * 3) * 2.6

if min < 250 then
min = 250
end

return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 

Dragonballfan

Banned
Joined
May 28, 2010
Messages
81
Reaction score
4
Odp: Senzu + Exhausted

To nie to samo, ale pomagam jak mog? :(
To tak w actions/scritps tworzymy plik o nazwie senzu.lua
wklejamy:
function onUse(cid, item, frompos, item2, topos)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local exhausted_seconds = 1
local exhausted_storagevalue = 7480
local mana_minimum = 50000
local mana_maximum = 70000
local mana_add = math.random(mana_minimum, mana_maximum)
if(item.type >= 100) then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
if(isPlayer(cid) == 1) then
doSendMagicEffect(topos,12)
doPlayerAddMana(cid, mana_add)
doPlayerAddHealth(cid, mana_add)
doPlayerSay(cid,":)",1)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doChangeTypeItem(item.uid, item.type - 1)
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exchausted.")
end
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted.")
end
else
if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted.")
else
if(isPlayer(cid) == 1) then
doSendMagicEffect(topos,12)
doPlayerAddMana(cid, mana_add)
doPlayerAddHealth(cid, mana_add*1.5)
doPlayerSay(cid,"I feel the best",1)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doRemoveItem(item.uid, 1)
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exchausted.")
end
end
end
return 1
end
to
-==- ile ma regenerowa? hp po u?yciu
-==- ile ma regenerowa? many po u?yciu
od razu m?wi? skrypt jest zrobiony aby si? senzu ko?czy?o:)
w ations.xml dodajemy
<action itemid="2673" script="senzu.lua" />
-==- id itemka jaki ma u?ywa? :)
tam sobie reszt? po edytuj np efekty napis itp.. :)
 
Last edited:

szymong1996

Advanced User
Joined
Mar 4, 2010
Messages
227
Reaction score
3
Age
27
Odp: Senzu + Exhausted

Jak zrobic zeby to dawalo jakis % hp ?
 

danielplas

User
Joined
Aug 8, 2008
Messages
44
Reaction score
0
Odp: Senzu + Exhausted

Dziekuje Tobie Bardzo ;].
Szuka?em Tego Skrypta Bardzo D?ugo,
Nawet Sw?j Temat Robi?em I Nic ;]
Dziekuje jeszcze raz
PozDro
 
Status
Not open for further replies.
Top