Kod:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutes
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, 5) //skąd skrypt wie że ma dodać skila o 5 ;D
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, -10) //tu to samo skąd wie że chodzi o shield
function onUse(cid, item, fromPosition, itemEx, toPosition) //to o ile się nie mylę jest funkcja a to w () to zmienne tak ?
if(doAddCondition(cid, condition)) then // "doAddCondition" to jest część języka czy ustawia się właściwości samemu ? ;d
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED)
doRemoveItem(item.uid)
end
return true
end
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dragon" nameDescription="a dragon" race="blood" experience="700" speed="180" manacost="0"> // tu tak samo dla sprostowania "speed" to jest część pisania czy coś typu zmiennej jak coś typu zmiennej to gdzie znajdują się właściwości ;d
<health now="1000" max="1000"/>
<look type="34" corpse="5973"/>
<targetchange interval="5000" chance="8"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="300"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-10" max="-120"/> // to też mnie ciekawi obrażenia od min 10 do 120 musi być jakaś funkcja losująca prawda ?
<attack name="fire" interval="2000" chance="15" range="7" radius="4" target="1" min="-60" max="-110"> //w tym miejscu będzie mnie interesować tylko jak ustawić częstotliwość tego ataku w sumie ucieszę się jakby ktoś objaśnił całą linijkę.
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="3000" chance="8" length="8" spread="3" min="-90" max="-170">
<attribute key="areaEffect" value="firearea"/>
</attack>
</attacks>
<defenses armor="25" defense="18">
<defense name="healing" interval="1000" chance="13" min="34" max="56">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element firePercent="100"/>
<element earthPercent="80"/>
<element energyPercent="20"/>
<element icePercent="-10"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="GROOAAARRR" yell="1"/>
<voice sentence="FCHHHHH" yell="1"/>
</voices>
<loot>
<item id="2672" countmax="3" chance="90000"/><!-- dragon ham --> // i jeszcze to ;D też najbardziej interesuje mnie jak ustawić częstotliwość wypadania, domyślam się że będzie to "chance"
<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
<item id="2398" chance="20000"/><!-- mace -->
<item id="2455" chance="6666"/><!-- crossbow -->
<item id="2434" chance="1333"/><!-- dragon hammer -->
<item id="2509" chance="1818"/><!-- steel shield -->
<item id="2406" chance="20000"/><!-- short sword -->
<item id="2647" chance="2222"/><!-- plate legs -->
<item id="2457" chance="3333"/><!-- steel helmet -->
<item id="2387" chance="4000"/><!-- double axe -->
<item id="7430" chance="400"/><!-- dragonbone staff -->
<item id="2397" chance="5000"/><!-- longsword -->
<item id="2546" countmax="13" chance="39000"/><!-- burst arrow -->
<item id="5877" countmax="1" chance="4000"/><!-- green dragon leather -->
<item id="1987" chance="59000"><!-- bag -->
<inside>
<item id="2187" chance="1111"/><!-- wand of inferno -->
<item id="2148" countmax="25" chance="100000"/><!-- gold coin -->
<item id="2516" chance="600"/><!-- dragon shield -->
<item id="2145" countmax="3" chance="1538"/><!-- small diamond -->
<item id="2177" chance="2000"/><!-- life crystal -->
<item id="2413" chance="6666"/><!-- broadsword -->
<item id="2409" chance="509"/><!-- serpent sword -->
<item id="5920" countmax="1" chance="5000"/><!-- green dragon scale -->
</inside>
</item>
</loot>
</monster>
Kod:
function onSay(cid, words, param, channel)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. getPlayerMoney(cid) .. " gold.")
return true
end
mam nadzieje że dobrze wybrałem kategorie ;d z góry dziękuje, naprawdę ;D
Zakładki