Forum Nie Tylko Do Tibii I OTS!!
Wchodzimy w data/actions/scripts nastepnie robimy plik o nazwie Un Rs,po zrobieniu pliku wchodzimy do niego i piszemy:
======================================================================
Code:
Wchodzimy w data/actions/scripts nastepnie robimy plik o nazwie Un Rs,po zrobieniu pliku wchodzimy do niego i piszemy:
-- Skull remove by Mentoss12
-- With little Gesior's help (frags remove)
function onUse(cid, item, frompos, item2, topos)
local zabieraLadunki = "nie"
local usuwaRedSkulla = "tak"
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)
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
======================================================================
Dobra po wpisaniu tej,krotkiej notatki,ze tak to ujme wchodzimy w data/actions/actions.xml i piszemy oto ten tekst:
======================================================================
Code:
<action itemid="2275" script="Un Rs.lua" />
======================================================================
Kiedy to zrobimy zapisujemy. Jednak aby nasza runa miala nazwe a nie same ID wchodzimy tutaj.
Code:
------------------------------------------------------------------------------------------------------------------------------
data/items/items.xml
------------------------------------------------------------------------------------------------------------------------------
Kiedy juz jestesmy, naciskamy CTRL+F i wpisujemy 2275 wyswietli sie nam ID runy. W miejscu ..Spell Rune''napiszcie Remove Skull
Offline