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

Problem z używaniem nowych potek na hotkeyu

kurczok666

New Member
Joined
Nov 23, 2008
Messages
64
Reaction score
1
Mam problem ponieważ zrobiłem nowe potiony dodające hp,mp potki są to wiaderka wypełnione cieczami, jednak zmieniłem ich nazwy w silniku i w containers.lua. Potki działają jednak gdy ustawiam je na hotkey to ich nie używa. Jak mogę to zmienić?
 
heh.. Jeśli mogę zapytać to na h** ci wiaderko z cieczami zwykłe poty ci nie starczą zwiększ żeby więcej dawało i lajcik. Może poprostu wiaderka na hotach nie działają ? :huh:
 
No skoro zrobiłem nowe poty to pewnie standardowe nie wystarczają.

To potrafi ktoś pomóc?

udało mi się zrobić żeby działały 2 z 3 rodzajów potionów jednak nie mam pojęcia czemu nie działa

Potki działajace.

Code:
		if item.type == TYPE_MANA_FLUID then
			if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
				doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
				return TRUE
			end
				if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 150) and 				getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(itemEx.uid, "Jedynie Alchemicy i Magowie Bitewni powyzej 150 lvla moga uzywac tych potionow.", TALKTYPE_ORANGE_1)
		return TRUE
	end
			if doPlayerAddMana(cid, math.random(350, 550)) == LUA_ERROR then
				return FALSE
			end
			doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
			doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
			doAddCondition(cid, exhaust)
			doRemoveItem(item.uid)
			return TRUE

Code:
				elseif item.type == TYPE_BEER then
				if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
					doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
					return TRUE
				end
				if((not(isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 150) and getPlayerCustomFlagValue(itemEx.uid, 					PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
				doCreatureSay(itemEx.uid, "Jedynie Lowcy powyzej 150 lvla moga uzywac tych potionow.", TALKTYPE_ORANGE_1)
				doRemoveItem(item.uid)
				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)
				doRemoveItem(item.uid)
				return TRUE

I potka nie działająca

Code:
	elseif item.type == TYPE_LIFE_FLUID then
			if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
				doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
				return TRUE
			end
			if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 150) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
				doCreatureSay(itemEx.uid, "Jedynie Gladiatorzy powyzej lvla 150 moga uzywac tych potionow.", TALKTYPE_ORANGE_1)
				return TRUE
			end
			if doCreatureAddHealth(cid, math.random(MINH, MAXH)) == LUA_ERROR then
				return FALSE
			end
				doAddCondition(cid, exhaust)
				doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
				doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
				doRemoveItem(item.uid)
			return TRUE





Są to przerobione manafluidy lifefluidy i beer tak aby dawały mane i hp.

Wszystko zapisane jest w pliku containers.lua

a cały plik wygląda tak :
Code:
http://wklej.org/id/85727/
 
Last edited:
Back
Top