Senzu

Status
Zamknięty.

premek1

User
Zarejestrowany
Dołączył
Wrzesień 28, 2010
Posty
31
Liczba reakcji
0
Witam. Teraz mam problem z Senzu. Poprostu nie dzia?a. Klikam ka?dym klawiszem itd i nic, wcze?niej dzia?a?o. Oto kod w pliku senzu.lua:
Kod:
function onUse(cid, item, frompos, item2, topos)
	local level = getPlayerLevel(cid)
	local mlevel = getPlayerMagLevel(cid)
	local exhausted_seconds = 0
	local exhausted_storagevalue = 74
	local mana_minimum = 70000
	local mana_maximum = 70000
	local mana_add = math.random(mana_minimum, mana_maximum)
		if(item.type >= 1) 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 - 0)
				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
A jak klikam prawym i lewym na senzu to jest: You see an item of type 2673. ID: 2673. Position(X: 100 Y: 189 Z: 7)
Prosze o szybk? odpowied? ;(
 
Odp: Senzu

Gdy uruchamiasz tfs wy?wietla Ci si? konsola, nie? Zobacz, czy nie ma tak jakiego? b??du [w tre?ci]
 
Odp: Senzu

Nie ma ale ale w pliku Items.xml nic nie ma nazwy
Kod:
<?xml version="1.0"?>
<items>
<item id="100" name="">
</item>
<item id="7448" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7449" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7450" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7451" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7452" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7453" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7454" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7455" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7456" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7457" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7458" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7459" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7460" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7461" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7462" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7463" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7464" name="">
	<attribute key="weight" value="0"/>
</item>
<item id="7465" name="">
</item>
<item id="7466" name="">
</item>
<item id="7467" name="">
</item>
<item id="7468" name="">
</item>
<item id="7469" name="">
</item>
<item id="7470" name="">
</item>
<item id="7471" name="">
</item>
<item id="7472" name="">
</item>
<item id="7473" name="">
</item>
<item id="7474" name="">
</item>
<item id="7475" name="">
</item>
</items>
nie da?em calego bo za dlugie, Z nazwami naprawilem z kopii ale nadal senzu nie dzia?a, tylko senzu nie dzia?a
 
Ostatnia edycja:
Odp: Senzu

Pod TFS 0.4 (nie testowane)
Kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local minmana, maxmana, storage, time = 70000, 70000, 74, 0
 if (item.type >= 1) then
  if exhaustion.check(cid, storage) == false then
   if isPlayer(cid) == true then
	doSendMagicEffect(getCreaturePosition(cid),12)
	doCreatureAddMana(cid, math.random(minmana, maxmana))
	doCreatureAddHealth(cid, math.random(minmana, maxmana))
	exhaustion.set(cid, storage, time)
	doChangeTypeItem(item.uid, item.type - 0)
   else
	 doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	 doPlayerSendCancel(cid, "You are exchausted.")
   end
  else
   doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
   doPlayerSendCancel(cid, "You are exchausted.")
  end
 end
end

Jak nie dzia?a to daj mi spis funkcji twojej wersji TFS.
 
Ostatnia edycja:
Odp: Senzu

Nie dzia?a. Jakie funkcje? Gdzie to jest?

Ja nie mam TFS tylko Wodbo( nie wiem cze to jaka? r??nica ) i chyba 8.0
 
Odp: Senzu

Kolego je?eli tworzysz potwora i stoisz kolo niego GM/GOD to si? nie dziw ?e si? nie zmienia?

Mam racje ??
 
Odp: Senzu

Hmm nawet podmieni?em plik items.otb i nic. Chyba zmienie, ?e Senzu leaf lub senzu root wi?cej daj?
 
Ostatnia edycja:
Odp: Senzu

Temat mo?na zamkn??
Notka moderatorska:
Zamykam
 
Ostatnio edytowane przez moderatora:
Status
Zamknięty.
Back
Do góry