What's new

Skrypty & Kody Czy ten potw?r dzia?a?by?

Status
Not open for further replies.

Luffkay

Senior User
Joined
Dec 15, 2012
Messages
523
Reaction score
31
Witam, zacz??em interesowa? si? LUA i napisa?em pierwszy w ?yciu skrypt. Ma prawo dzia?a?, je?li tak to s? jakie? zastrze?enia?

[LUA]<?xml version="1.0" encoding="UTF-8"?><monster name="Freakseek" level="30" maglevel="13" experience="425" pushable="1" armor="32" defense="22" canpushitems="1" staticattack="50" changetarget="2500" speed="280">
<health now="310" max="310"/>
<look type="73" head="43" body="21" legs="33" feet="21" corpse="2931"/>


<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 staticattack="30"/>
<flag targetdistance="1"/>
<flag runonhealth="0"/>
</flags>


<attacks>
<attack type="melee" mindamage="13" maxdamage="68" probability="100"/>
<attack name="mana drain" interval="3000" chance="60" min="6" max="32"/>
<attack name="Light Magic Missile" interval="3000" chance="50" min="14" max="22"/>
<attack name="fireball" interval="3200" chance="30" min="32" max="67"/>
</attacks>


<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity outfit="01"/>
<immunity drunk="01"/>
<immunity invisible="1"/>
</immunities>


<summons max="1">
<summon name="Rotworm" interval="1500" chance="75"/>
</summons>


<voices interval="3200" chance="70">
<voice sentence="Road to hell"/>
<voice sentence="I kill you!"/>
<voice sentence="I'll send you to hell"/>
</voices>


<loot>
<items>
<item id="2168" countmax="52" chance1="100000" chancemax="0"/>
<item id="3012" countmax="1" chance1="20000" chancemax="0"/>
<item id="3068" countmax="1" chance1="10000" chancemax="0"/>
<item id="3577" countmax="1" chance1="900000" chancemax="0"/>
</items>
</loot>
</monster>[/LUA]
 

dami1310

Poskramiacz Internet?w
Joined
Jun 1, 2009
Messages
1,385
Reaction score
113
Odp: Czy ten potw?r dzia?a?by?

Po 1. To jest xml.
Po 2. Nie napisales skryptu, tylko edytowales gotowy kod monstera.
Po 3. Ma prawo.
 

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: Czy ten potw?r dzia?a?by?

Po 4. Najprawdopodobniej wyrzuci b??d przy "mana drain", zmie? na "manadrain".
Po 5. type="melee" zamie? na name="melee". W 3 wersjach source TFS nie znalaz?em, by type odnosi?o si? do typu ataku.
Po 6. Nie ma czego? takiego jak LUA, jest Lua.
 

Zbizu

Luakami
Joined
Mar 13, 2010
Messages
719
Reaction score
104
Age
28
Odp: Czy ten potw?r dzia?a?by?

pododawa?e? parametry w z?ych miejscach
np. pushable to flaga a ty da?e? to w dw?ch miejscach
armor si? ustawia przy defenses
nie wiem czy w og?le zostan? odczytane przez silnik
 
Status
Not open for further replies.
Top