• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Help z Remove Redskull

Status
Zamknięty.

Mentoria Team

User
Zarejestrowany
Dołączył
Grudzień 3, 2009
Posty
42
Liczba reakcji
0
witam potrzebuje skryptu na remove red skull jestem gotowy zap?acic ale runa musi wyglada? jak Blue note,miec 1 u?ycie ma usuwac rs i wszystkie fragi... jestem gotowy zap?aci? kontakt z gg 444340 moze te? byc za pomoc? kom?dy !rs.
 
Odp: Help z Remove Redskull

Frag removed - pochodz?cy z otland.net

W actions/scripts/tools tworzymy 'frag.lua' a w nim:
Kod:
local config =
{
    item = XXXX,  -- WPISZ ID ITEMA KT?RY MA USUWA? FRAGI PRAWYM KLIKNI?CIEM 
    level = 1,
    count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed.")
        doRemoveItem(item.uid)
        db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
        doPlayerSetSkullEnd(cid, 0, SKULL_RED)  
    else
        doPlayerSendCancel(cid, "You dot have enough level")
    end
    return TRUE
end

Do actions.xml dodajemy linijk?:
Kod:
	<action itemid="IDITEMA" event="script" value="tools/frag.lua"/>



By Gelio - Red skull remover-
Przedstawiony w postaci spella :)
data/spells/scripts/support/skull remover.lua/
Kod:
function onCastSpell(cid, var)
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
Spells.xml:
Kod:
<rune name="Skull Remover Asso" id="2263" allowfaruse="1" charges="7" lvl="80" maglv="7" exhaustion="1000" blocktype="solid" script="support/skull remover.lua"/>
Items.xml: znajdujemy item o id 2263 i nadmieniamy na to:
Kod:
	<item id="2263" article="a" name="skull remover rune">
                <attribute key="runeSpellName" value="Skull Remover Asso"/>
		<attribute key="weight" value="120"/>
                <attribute key="charges" value="4"/>
	</item>
 
Status
Zamknięty.
Back
Do góry