Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[8.1][Problem]Dodawanie nowego monstera+2pytania dot skryptow


MasterofFps

Rekomendowane odpowiedzi

Opublikowano

Dodawanie nowego monstera = Problem rozwiazany :D ... bylo pare bledow w kodzie

 

 

Dzisiaj chcialem sobie dodac pare monsterow...

Dodalem monstera o nazwie Axyr II

w data/monsters

potem w data/monsters/monsters.xml

potem w ot map editorze ...

zrobilem sobie 2 expowiska i dalem tam pare Axyrow

jak juz zapisalem mapke (oczywiscie tp i wszystko zrobilem juz)

to chcialem zobaczyc jak sie tam expi 2 postacia

gdzy wbilem na expowisko nr 1 to niebylo tam wgl potworkow a gdy zobaczylem na moj silnik (troche przewinalem do gory)

to zobaczylem takie cos (/m Axyr II >tez niemoge ;/)

screen :

1372028565-U374573.png

oco chodzi?? pls pomozcie !!

 

 

 

mozna stworzyc rune dodajaca magic lvl ??

jesli mozna to jak?

jak by wygladal skrypt?

 

 

jak zrobic czar w talkactions ?

zeby nie bylo ogromnego spammu np. bim bam boom x 100 w chacie

chce zeby byl na czerwono tak jak kiedys bylo na tibi 7.6(VipOt :D)

jak by wygladal taki skrypt?

za pomoc dam like it i 5 w profilu ....!!!!

za pomoc we wszystkim dam like it - 3x + 5x3 w profilu (codziennie 1x5 :D)

Opublikowano

nie pamietam dobrze bo dawno to było lecz cos jeszcze musisz mieć znaczy gdzies dodac tego potworka . Jak sobie przypomne to napisze na priv

 

 

http://tibia.net.pl/threads/6986-8-1-Jak-dodać-nowego-potwora

 

w kazdym poradniku pisze ze tylko do data/monsters i do xml i do map editora ...

czekam na pomoc....

;/

Opublikowano

wstaw skrypt z twojego potwora.

Runa +MLVL

data/actions/sctipts i uworz nowy plik np. runamlvl.lua

-- Runa dajaca Magic by Rafaeru
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 10 then       -- od ktorego lvl mozna uzywac
doCreatureSay(cid, "Tekst Po Uzyciu", TALKTYPE_ORANGE_1)
doPlayerAddmagiclevel(cid, 1000) -- ile da "spalonej many"
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "Napis jesli sie nie uda.", ALKTYPE_ORANGE_1)
end
end 

data/actions w ations.xml

<action itemid="ID wygladu runy" script="runamlvl.lua" />

Ad. 3

Chcesz żeby porostu po użyciu czaru nie wyskakiwać wiadomość na chacie tylko byl taki pomarańczowo - czerwony napis czaru na ekranie ?

Opublikowano

wstaw skrypt z twojego potwora.

Runa +MLVL

data/actions/sctipts i uworz nowy plik np. runamlvl.lua







-- Runa dajaca Magic by Rafaeru
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 10 then       -- od ktorego lvl mozna uzywac
doCreatureSay(cid, "Tekst Po Uzyciu", TALKTYPE_ORANGE_1)
doPlayerAddmagiclevel(cid, 1000) -- ile da "spalonej many"
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "Napis jesli sie nie uda.", ALKTYPE_ORANGE_1)
end
end 

data/actions w ations.xml







<action itemid="ID wygladu runy" script="runamlvl.lua" />

Ad. 3

Chcesz żeby porostu po użyciu czaru nie wyskakiwać wiadomość na chacie tylko byl taki pomarańczowo - czerwony napis czaru na ekranie ?

to tak :

runka nw czy dziala sprawdze jutro :D

lap skrypt axyra :D :





<?xml version="1.0" encoding="UTF-8"?>
<monster name="Axyr II" nameDescription="a Axyr II" race="blood" experience="15000000" speed="4080" manacost="10000">
  <health now="1560000" max="1560000"/>
  <look type="143" head="94" body="77" legs="95" feet="114" addons="3" corpse="6080"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="40"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" min="-160" max="-600"/>

    <attack name="manadrain" interval="3000" chance="13" range="7" min="-30400" max="-53000"/>

    <attack name="fire" interval="2000" chance="20" range="7" radius="7" target="1" min="-55600" max="-60500">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-5225" max="-5275">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-52000" max="-74000">
      <attribute key="areaEffect" value="energy"/>
    <attack name="physical" interval="4000" chance="15" range="7" radius="13" target="0" min="-41000" max="-56500">
        <attribute key="areaEffect" value="yellowspark"/>
    </attack>
    </attack>
    <attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-46000" max="-69080">
        <attribute key="areaEffect" value="greenshimmer"/>
    </attack>
    <attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-47500" max="-69000">
        <attribute key="areaEffect" value="rednote"/>
    </attack>

    <attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
      <attribute key="shootEffect" value="fire"/>
    </attack>
    <attack name="fire" interval="3000" chance="34" range="7" radius="2" target="1" min="-60900" max="-67000">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>

    <attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-60020" max="-63800">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="poison" interval="2000" chance="20" length="8" spread="3" min="-60000" max="-75000">
      <attribute key="areaEffect" value="poison"/>
    </attack>

  </attacks>
  <defenses armor="60" defense="65">
    <defense name="healing" interval="1000" chance="15" min="5090" max="6000">
      <attribute key="areaEffect" value="blueshimmer"/>
     </defenses>
  <immunities>
    <immunity physical="0"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="1"/>
    <immunity outfit="1"/>
    <immunity drunk="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="3">
    <summon name="Axyr" interval="2500" chance="10" max="2"/>
  </summons>
  <voices interval="5000" chance="10">
    <voice sentence="MUHAHAHAHA!" yell="1"/>
    <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
    <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
    <voice sentence="Your resistance is futile!"/>
    <voice sentence="Your soul will be mine!" yell="0"/>
  </voices>
<loot>
 	<item id="5741" chance="12000"/> 
 	<item id="2159" countmax="20" chance="100000"/> 
	<item id="2281" countmax="1" chance="100000"/>
	<item id="2287" countmax="2" chance="100000"/>

 	</item>
</loot>
</monster>

 

Ad. 3

tak :D chce zeby niebylo widac czaru w chacie i zeby byl na czerwono :D

 

@ to przez te 3 errory moj potworek niedziala??

screen :

1372167794-U374573.png

 

 

jak naprawic te errory? :D

Opublikowano

Poprawie ci je jak będę na kompie i dam edita ale jak widzę to jakieś literowki.

edit:

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Axyr II" nameDescription="a Axyr II" race="blood" experience="15000000" speed="4080" manacost="10000">
  <health now="1560000" max="1560000"/>
  <look type="143" head="94" body="77" legs="95" feet="114" addons="3" corpse="6080"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="40"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" min="-160" max="-600"/>

    <attack name="manadrain" interval="3000" chance="13" range="7" min="-30400" max="-53000"/>

    <attack name="fire" interval="2000" chance="20" range="7" radius="7" target="1" min="-55600" max="-60500">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-5225" max="-5275">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-52000" max="-74000">
      <attribute key="areaEffect" value="energy"/>
    <attack name="physical" interval="4000" chance="15" range="7" radius="13" target="0" min="-41000" max="-56500">
        <attribute key="areaEffect" value="yellowspark"/>
    </attack>
    </attack>
    <attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-46000" max="-69080">
        <attribute key="areaEffect" value="greenshimmer"/>
    </attack>
    <attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-47500" max="-69000">
        <attribute key="areaEffect" value="rednote"/>
    </attack>

    <attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
      <attribute key="shootEffect" value="fire"/>
    </attack>
    <attack name="fire" interval="3000" chance="34" range="7" radius="2" target="1" min="-60900" max="-67000">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>

    <attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-60020" max="-63800">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="poison" interval="2000" chance="20" length="8" spread="3" min="-60000" max="-75000">
      <attribute key="areaEffect" value="poison"/>
    </attack>

  </attacks>
  <defenses armor="60" defense="65">
   <defense name="healing" interval="1000" chance="15" min="5090" max="6000">
      <attribute key="areaEffect" value="blueshimmer"/>
  <immunities>
    <immunity physical="0"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="1"/>
    <immunity outfit="1"/>
    <immunity drunk="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="3">
    <summon name="Axyr" interval="2500" chance="10" max="2"/>
  </summons>
  <voices interval="5000" chance="10">
    <voice sentence="MUHAHAHAHA!" yell="1"/>
    <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
    <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
    <voice sentence="Your resistance is futile!"/>
    <voice sentence="Your soul will be mine!" yell="0"/>
  </voices>
  <loot>
 	<item id="5741" chance="12000"/> 
 	<item id="2159" countmax="20" chance="100000"/> 
	<item id="2281" countmax="1" chance="100000"/>
	<item id="2287" countmax="2" chance="100000"/>
  </loot>
</monster>

nie sprawdzalem czy dziala ale powinno.

Opublikowano

a jaki to silnik ? i czy looktype jest potwora czy itema ?

silnik to Evolution by Torth v.4 8.1

looktype jest czlowieka z 3 addonami tz. tego woja z toporem na plecach :D

na innym potworze mi dziala tz. na 2 innych :D

Opublikowano

Poprawiona wersja:

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Axyr II" nameDescription="a Axyr II" race="blood" experience="15000000" speed="4080" manacost="10000">
    <health now="1560000" max="1560000"/>
    <look type="143" head="94" body="77" legs="95" feet="114" addons="3" corpse="6080"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="40"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="-160" max="-600"/>

        <attack name="manadrain" interval="3000" chance="13" range="7" min="-30400" max="-53000"/>

        <attack name="fire" interval="2000" chance="20" range="7" radius="7" target="1" min="-55600" max="-60500">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-5225" max="-5275">
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
        <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-52000" max="-74000">
            <attribute key="areaEffect" value="energy"/>
        <attack name="physical" interval="4000" chance="15" range="7" radius="13" target="0" min="-41000" max="-56500">
            <attribute key="areaEffect" value="yellowspark"/>
        </attack>
        <attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-46000" max="-69080">
            <attribute key="areaEffect" value="greenshimmer"/>
        </attack>
        <attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-47500" max="-69000">
            <attribute key="areaEffect" value="rednote"/>
         </attack>
         <attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
            <attribute key="shootEffect" value="fire"/>
        </attack>
        <attack name="fire" interval="3000" chance="34" range="7" radius="2" target="1" min="-60900" max="-67000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-60020" max="-63800">
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="poison" interval="2000" chance="20" length="8" spread="3" min="-60000" max="-75000">
            <attribute key="areaEffect" value="poison"/>
        </attack>
	</attacks>		
	<defenses armor="60" defense="65"/>
    <summons maxSummons="3">
        <summon name="Axyr" interval="2500" chance="10" max="2"/>
    </summons>
    <voices interval="5000" chance="10">
        <voice sentence="MUHAHAHAHA!" yell="1"/>
        <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
        <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
        <voice sentence="Your resistance is futile!"/>
        <voice sentence="Your soul will be mine!" yell="0"/>
    </voices>
	<loot>
 	    <item id="5741" chance="12000"/> 
 	    <item id="2159" countmax="20" chance="100000"/> 
	    <item id="2281" countmax="1" chance="100000"/>
	    <item id="2287" countmax="2" chance="100000"/>
	</loot>
</monster>

PS. ale on mało bije i po co tyle mu czarów dajesz ? nie możne z łapy dużo bić ? myślę ze to wina tych wszystkich jego spellow

@edit:

Znalazlem ze spellami ale bedzie troche zabawy wiec tak :

w kazdym spellu trzeba edytowac

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

na:

function onCastSpell(cid, var) 
    if getPlayerStorageValue(cid, 19234) < os.time()) then
        doCombat(cid, combat, var)
        setPlayerStorageValue(cid, 19234, os.time() + 2)
    end
end

gdzie ta: () + 2 to exht

Opublikowano

Poprawiona wersja:



<?xml version="1.0" encoding="UTF-8"?>
<monster name="Axyr II" nameDescription="a Axyr II" race="blood" experience="15000000" speed="4080" manacost="10000">
    <health now="1560000" max="1560000"/>
    <look type="143" head="94" body="77" legs="95" feet="114" addons="3" corpse="6080"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="40"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="-160" max="-600"/>

        <attack name="manadrain" interval="3000" chance="13" range="7" min="-30400" max="-53000"/>

        <attack name="fire" interval="2000" chance="20" range="7" radius="7" target="1" min="-55600" max="-60500">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-5225" max="-5275">
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
        <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-52000" max="-74000">
            <attribute key="areaEffect" value="energy"/>
        <attack name="physical" interval="4000" chance="15" range="7" radius="13" target="0" min="-41000" max="-56500">
            <attribute key="areaEffect" value="yellowspark"/>
        </attack>
        <attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-46000" max="-69080">
            <attribute key="areaEffect" value="greenshimmer"/>
        </attack>
        <attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-47500" max="-69000">
            <attribute key="areaEffect" value="rednote"/>
         </attack>
         <attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
            <attribute key="shootEffect" value="fire"/>
        </attack>
        <attack name="fire" interval="3000" chance="34" range="7" radius="2" target="1" min="-60900" max="-67000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-60020" max="-63800">
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="poison" interval="2000" chance="20" length="8" spread="3" min="-60000" max="-75000">
            <attribute key="areaEffect" value="poison"/>
        </attack>
	</attacks>		
	<defenses armor="60" defense="65"/>
    <summons maxSummons="3">
        <summon name="Axyr" interval="2500" chance="10" max="2"/>
    </summons>
    <voices interval="5000" chance="10">
        <voice sentence="MUHAHAHAHA!" yell="1"/>
        <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
        <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
        <voice sentence="Your resistance is futile!"/>
        <voice sentence="Your soul will be mine!" yell="0"/>
    </voices>
	<loot>
 	    <item id="5741" chance="12000"/> 
 	    <item id="2159" countmax="20" chance="100000"/> 
	    <item id="2281" countmax="1" chance="100000"/>
	    <item id="2287" countmax="2" chance="100000"/>
	</loot>
</monster>

PS. ale on mało bije i po co tyle mu czarów dajesz ? nie możne z łapy dużo bić ? myślę ze to wina tych wszystkich jego spellow

@edit:

Znalazlem ze spellami ale bedzie troche zabawy wiec tak :

w kazdym spellu trzeba edytowac



function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

na:



function onCastSpell(cid, var) 
    if getPlayerStorageValue(cid, 19234) < os.time()) then
        doCombat(cid, combat, var)
        setPlayerStorageValue(cid, 19234, os.time() + 2)
    end
end

gdzie ta: () + 2 to exht

nie ja mu tyle czarow dalem :D

skopiowalem axyr i zmienilem nazwe tylko xD i expa

i pare kodow pousuwalem...

dzieki za pomoc...

tego axyra zrobie na innym kodzie :D

wezme skopiuje kod z cata i przerobie wyglad,nazwe,exp,atak,loot i reszte zostawie

 

ok teraz juz wiem jak zrobic rune palaca mane i jak naprawic potworka

 

a z tymi spellami wytlumacz to troche lepiej :D

gdzie ta: () + 2 to exht

 

co to jest exht? :D

 

zamienilem i nic ;/ nadal to samo (zamienilem tylko w exori :D dla testu)

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...