Item Skull Remover - Problem

Status
Zamknięty.

master sraster

Active User
Zarejestrowany
Dołączył
Styczeń 12, 2010
Posty
95
Liczba reakcji
0
siema mam problem ze removerem by gelio
m?j skrypt wygl?da o tak:
Kod:
-- Skull remove by Gelio
-- With little Gesior's help (frags remove)
function onUse(cid, item, frompos, item2, topos)
local zabieraLadunki = "tak"   -- Czy zabiera ladunki runy
local usuwaRedSkulla = "tak"   -- Czy usuwa red skulla
if((getPlayerSkullType(cid) ~= SKULL_RED or usuwaRedSkulla == "tak") or getPlayerSkullType(cid) ~= SKULL_GREEN) then
	doCreatureSetSkullType(cid, SKULL_NONE)
	doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You don't have any skull now.")
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED)
else
	doPlayerSendCancel(cid,"You can't remove red or green skull.")
end
if(zabieraLadunki == "tak") then
	if(item.type > 1) then
		doChangeTypeItem(item.uid, item.type-1)
	else
		doRemoveItem(item.uid,1)
	end
end
end

niby wszystko gra ale frag?w nie zabiera ;/ help !!!
 
Odp: Item Skull Remover - Problem

ehh po prostu nie ma tej linijki co by mia?a zabierac fragi xD

pod
doSendMagicEffect
dodaj
PHP:
	doPlayerSetRedSkullTicks(cid, 0)

wszystko bedzie dzia?a?
zapewne j? usun??es bo jak przegl?dalem jego skrypt to tam jest nawet komentarz do tego ^.^
 
Odp: Item Skull Remover - Problem

ok ju? sprawdzam czy wszystko gra zaraz dam edita jak bedzie wszystko w porz?dku :)




@EDIt
jee!! gra muzyka! dostajesz rupcik a temacik mo?na przymkna? ;)

Notka moderatorska:
Zamykam, Sokou otrzymuje punkt w rankingu.
 
Ostatnio edytowane przez moderatora:
Status
Zamknięty.
Back
Do góry