What's new

Potrzebuje kilka skryptow!

Status
Not open for further replies.

doktor blant

Active User
Joined
Sep 25, 2010
Messages
89
Reaction score
3
Witam! Potrzebuja skryptu na:
1. Runa naprzyklad ktora ulepsza dany item naprzyklad o 20% bez mozliwosci zniszczenia go
2. Na rs removera zeby usuwal rs/bs w kazdym miejscu w kazdej porze
3. Tp runa zeby po klikniecu poprostu przenosila do temple (sam ustawie sobie wspolrzedne) potrzebuje tylko skryptu
<info> Nie widze potrzeby robienia nowego tematu zapomnialem dodac (SORRY ZA DOUBLE POSTA) <info>
prosze moderatora o sklejenie!
Potrzebuje addon bonusy na tfs 0.3.6
i jak moge poprawic zeby poty dawaly toszke wiecej hp i mp i jak zrobic zeby sie nie konczyly? Tak samo z runkami prosze o odpowiedz ;p
Pozdrawiam
Notka moderatorska:
Double post.
 

Karzelus

Advanced User
Joined
Oct 4, 2010
Messages
186
Reaction score
16
Odp: Potrzebuje kilka skryptow!

pytanie 2.

W actions/scripts/tools tworzymy 'frag.lua' a w nim:
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?:
<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/
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:
<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:
<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>

sprawdzane na tfs. 0.3.5 powinno dzialac i na 8.54 :)
 

doktor blant

Active User
Joined
Sep 25, 2010
Messages
89
Reaction score
3
Odp: Potrzebuje kilka skryptow!

Reput! Prosze o dalsze skrypty!
 
Status
Not open for further replies.
Top