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

Help z silnikiem

Lolek

New Member
Joined
Sep 29, 2008
Messages
298
Reaction score
0
Witam prosze o pomoc z silnikiem probowalem wielu skryptow zeby runa usuwala rs i nic poprostu jak sie uzyje ja to rs znika tak jak pk po 15min miga a potem nie ma rs ale koles relog i znowu jest rs nie wiem czemu
 
Masz:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerRedSkullEnd(cid) == 0) then
doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullEnd(cid, 0)
doTransformItem(item.uid, 2300)
end
end

Sprawdź, czy działa bo nie moje :P
 
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

Obecnie ten skrypt mam moglbys go przerobic plax mam tfs 0.3.5
 
Słuchaj ja nie widze takiej potrzeby by ten co mi podałeś przerabiać ja dodałem do tego mojego by usuwała sie runka.
Dodaj tak do actions.xml:
<action itemid="2300" event="script" value="skullremover.lua"/>
i w scripts stwórz plik 'skullremover.lua'
dodaj do niego ten kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerRedSkullEnd(cid) == 0) then
doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullEnd(cid, 0)
doChangeTypeItem(item.uid, item.type-1)
doRemoveItem(item.uid,1)
end
end

Pomogłem? to daj Rep'a
 
Last edited:
doCreatureSetSkullType(cid, SKULL_NONE)
doCreatureSetRedSkullTime(cid, 0)

kkthxbb
 
czy moglby ktos ulozyc skrypt z tego co napisal chojrak bo to pelle co napisal nie dziala caly czas you cann to not use object ;s
@edit
napisze ktos takiego skrypta ze w bazie danych wlazi tam i danemu playerowi wlazi w redskull time czy jakos tam sie przestawia i zeby ustawialo 0?
 
Last edited:
Dal Ci chyba, co? Tylko troche zle dziala. Na przyklad nie ma sprawdzenia czy masz fraga/skulla.
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerSkullType(cid) ~= SKULL_RED) then
		doCreatureSetSkullType(cid, SKULL_NONE)
		doCreatureSetRedSkullTime(cid, 0)
		else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "jestes lysym chujem i nie masz red skuula")            
	end 
end

=DDDDDDDDDDDDDDDDDDDDDDDDDD
teraz jest pro =[
 
Primo: Skrypt usunie skulla/fragi gdy nie mamy red skulla.
Drugo: Skrypt nam powie, ze nie mamy red skulla, gdy mamy red skulla.

Gje Zet Pro Evul
 
szubienica.jpg


Jest jeszcze 1 wolne miejsce, kto idzie ? : (

LUA:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
        if(getPlayerSkullType(cid) == SKULL_RED) then
                doCreatureSetSkullType(cid, SKULL_NONE)
                doCreatureSetRedSkullTime(cid, 0)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "tfuj skull has ben dilejt")
                else
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "jestes lysym chujem i nie masz red skuula")            
        end
end

Jest jeszcze dla mnie nadzieja? :(
 
Last edited:
sprawdz to

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerRedSkullEnd(cid) == 0) then
doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullEnd(cid, 0)
doTransformItem(item.uid, 2300)
end
end
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerRedSkullEnd(cid) == 0) then
doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullEnd(cid, 0)
doTransformItem(item.uid, 2300)
end
end

a ten skrypt usuwa rsy z fragami razem?
 
Back
Top