What's new

Frost Charm - Frost Heart

Status
Not open for further replies.

Muuti

User
Joined
Oct 27, 2008
Messages
10
Reaction score
2
Witam, mam skrypt na frost heart pod tibie8.1 lecz chcial bym miec pod 8.4 bo na 8.4 z 8.1 nie chodzi... ten skrypt

Chodzi mi o skrypt na takie cos jak jest na kovloria ots
Code:
function onUse(cid, item, frompos, item2, topos)
local lvl = getPlayerLevel(cid)
local addhealth = math.random(8, lvl) * 30 + 185 - 8*30 -- ta funkcja zapewnia losowosc dodanego hp
doSendAnimatedText(frompos,''.. addhealth ..'',5)
doPlayerSendCancel(cid,"Doladowales ''.. addhealth ..'' HP.")
doSendMagicEffect(frompos,12)
doPlayerAddHealth(cid, addhealth)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
return 1
end

Code:
<action itemid="XXXX" script="frostheart.lua" />
Gdzie XXXX to ID Frost Heart umiescilem

i jest problem w tym ze pokazuje ile dodaje wszystko ok ale nie dodaje mi tego hp gdzie powinno to dziala na zasadzie uha...

probowalem zrobic ten skrypt z UHa ale nie dziala


prosze o pomoc!!!!

za Pomoc REPOCIK!

//Doda?em code
 
Last edited by a moderator:

Szpaku17

Advanced User
Joined
Aug 14, 2008
Messages
313
Reaction score
5
Odp: Frost Charm - Frost Heart

nie dzia?a @:/ mam tfsa 0.2 8.40
 

Svira

Active User
Joined
Apr 12, 2008
Messages
77
Reaction score
2
Odp: Frost Charm - Frost Heart

Dodaje X Many oraz X hp :) dziala na TFS ^^
PHP:
*****BY*****
****Svira****
local MIN_HEALTH = XXX
local MAX_HEALTH = XXXX
local MIN_MANA = XXX
local MAX_MANA = XXXX
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) == FALSE then
		return FALSE
	end
	if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return TRUE
	end
	if doCreatureAddHealth(itemEx.uid, math.random(MIN_HEALTH, MAX_HEALTH)) == LUA_ERROR or doPlayerAddMana(itemEx.uid, math.random(MIN_MANA, MAX_MANA)) == LUA_ERROR then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid)
	return TRUE
end
data\actions\scripts <tutaj ;] (mysle ze wiesz co zrobic :p)
 

Devilver

Advanced User
Joined
Apr 15, 2009
Messages
445
Reaction score
24
Odp: Frost Charm - Frost Heart

Wszystko ?adnie dzia?a :) bardzo fajny skrypt.
 

animkarka

Active User
Joined
Jan 27, 2009
Messages
63
Reaction score
1
Odp: Frost Charm - Frost Heart

Tez mia?em taki problem:|
Ale juz nie mam :D
 

Svaren

Active User
Joined
Mar 17, 2009
Messages
58
Reaction score
3
Odp: Frost Charm - Frost Heart

Bardzo fajny i my?l? ?e przydatny skrypcik :D
 

Radhez92

Advanced User
Joined
Oct 21, 2008
Messages
278
Reaction score
3
Odp: Frost Charm - Frost Heart

Moglby ktos przerobic ten skrypt pod TFS tibia 8.5
Daje Reputa za Pomoc
 

iqaz

User
Joined
Nov 16, 2008
Messages
16
Reaction score
0
Odp: Frost Charm - Frost Heart

Wszystko pieknie dzia?a.
 

PeinAkatsuki

New User
Joined
Dec 29, 2009
Messages
7
Reaction score
0
Odp: Frost Charm - Frost Heart

ej wezcie napiszcie co to robi? co to za item w og?le jest
 

Rolfix

New User
Joined
Nov 28, 2010
Messages
2
Reaction score
0
Odp: Frost Charm - Frost Heart

@up
Ten item daje Ci x HP oraz x MP ;)
 

Vermin

Active User
Joined
Dec 8, 2010
Messages
51
Reaction score
1
Odp: Frost Charm - Frost Heart

Spr?bujcie tego:

Code:
function onUse(cid, item, frompos, item2, topos)  -- By Seminari;

local lvl = getPlayerLevel(cid)
local addhealthXX = math.random(8, lvl)
local addhealth = (addhealthXX * 30 + 185 - 8*30) -- ta funkcja zapewnia losowosc dodanego hp
doSendAnimatedText(frompos,''.. addhealth ..'',5)
doPlayerSendCancel(cid,"Doladowales ''.. addhealth ..'' HP.")
doSendMagicEffect(frompos,12)
doPlayerAddHealth(cid, addhealth)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
return true
end
 
Status
Not open for further replies.
Top