• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

edycja lua

fragster

New Member
Joined
Nov 18, 2012
Messages
39
Reaction score
1
mam taki remover
Code:
-- 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)
	doPlayerSetRedSkullTicks(cid, 0)  -- Usuwanie fragow. Usuniesz ta linijkę to nie będzie brać fragów
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

i nie znika item po uzyciu
help
 
Back
Top