#1 2007-12-08 17:35:05

 Rici

Sułtan łechtaczek

Skąd: Ełk
Zarejestrowany: 2007-05-15
Posty: 1753
Nick: Vineium Doron
Profesja: Paladyn
Server: Guardia
Level: 64

Potwory, Czary, NPC

Prosze o wklejanie tutaj Skrypty na potwory, Czary, NPC. To ułatwi nowym użytkownikom znalezienie skryptów


http://img13.imageshack.us/img13/8466/ovoj.jpg

Offline

 

#2 2007-12-21 16:34:04

Dj Michcio

Gość

Re: Potwory, Czary, NPC

rici ty wklej kilka a ja se dam do swojego popsutego otsa :(:( ok?

 

#3 2007-12-21 16:53:27

Nightmare

http://i37.tinypic.com/zmmamp.gif

Zarejestrowany: 2007-12-18
Posty: 33

Re: Potwory, Czary, NPC

no chyba po to jest ten temat żeby dla takich noobów jak ty (Mówie o dj Michcio)Którzy nie umieją używać opcji Szukaj ...

Offline

 

#4 2007-12-22 14:35:58

Lord500

http://i35.tinypic.com/2usym0z.gif

65646456
Skąd: Załęże
Zarejestrowany: 2007-12-16
Posty: 124
WWW

Re: Potwory, Czary, NPC

OO dużo tu jest tych skryptów :] To rici, ja bym skopiował z innych tematów te NPC itp i wkleił tutaj :]


http://img527.imageshack.us/img527/4812/78711530cp5.png

Offline

 

#5 2007-12-22 16:02:25

 Rici

Sułtan łechtaczek

Skąd: Ełk
Zarejestrowany: 2007-05-15
Posty: 1753
Nick: Vineium Doron
Profesja: Paladyn
Server: Guardia
Level: 64

Re: Potwory, Czary, NPC

@topic no dodajcie cos xD
To ja coś dodam xD
NPC
Santa [8.0]
Tworzymy Santa.xml i wpisujemy w nim

Kod:

<npc name="Santa" script="data/npc/scripts/santa.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
    <health now="150" max="150"/>
    <look type="160" head="0" body="94" legs="0" feet="94"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|!"/>
        <parameter key="message_farewell" value="Merry Christmas." />
        <parameter key="message_placedinqueue" value="Your time will come |PLAYERNAME|, ho ho ho." />
        <parameter key="message_walkaway" value="Merry Christmas." />
        <parameter key="message_idletimeout" value="Merry Christmas." />
        <parameter key="message_walkaway" value="Merry Christmas!" />
    </parameters>
</npc>

Potem tworzymy santa.lua i wpisujemy:

Kod:

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)            npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)             npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                    npcHandler:onThink() end
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg)
    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    if(npcHandler.focus ~= cid) then
        return false
    end

    present = getPlayerStorageValue(cid, 67872)
    random = math.random(1, 40)

    if msgcontains(msg, 'present') then
    if present == -1 then

    if (random >= 1 and random <= 3) then
    doPlayerAddItem(cid, 2112, 1)
    setPlayerStorageValue(cid, 67872, 1)
    selfSay('You were very lucky! Here is your present.')

    elseif (random >= 4 and random <= 12) then
    doPlayerAddItem(cid, 2675, 15)
    setPlayerStorageValue(cid, 67872, 1)
    selfSay('Merry Christmas! Ho Ho Ho!')

    elseif (random >= 13 and random <= 20) then
    doPlayerAddItem(cid, 2688, 10)
    setPlayerStorageValue(cid, 67872, 1)
    selfSay('Merry Christmas! Ho Ho Ho!')

    elseif (random >= 21 and random <= 30) then
    doPlayerAddItem(cid, 6501, 3)
    setPlayerStorageValue(cid, 67872, 1)
    selfSay('Merry Christmas! Ho Ho Ho!')

    elseif (random >= 31 and random <= 40) then
    doPlayerAddItem(cid, 2674, 5)
    setPlayerStorageValue(cid, 67872, 1)
    selfSay('Merry Christmas! Ho Ho Ho!')
end

    else
    selfSay('You already have your present, ho ho ho!')
end
end
return 1
end    

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

A teraz Monster[8.0]
Tworzymy Demon Rat.xml i w nim

Kod:

<?xml version="1.0"?>
<monster name="Demon Rat" description="a BlackDemon" experience="6000" speed="420" race="fire">
  <health now="2000" max="2000"/>
  <strategy attack="900" defense="500"/>
  <targetchange speed="420" chance="75"/>
  <look type="21" head="0" body="0" legs="0" feet="0" addons="0" corpse="2916"/>
  <flags>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag hostile="1"/>
    <flag attackable="1"/>
    <flag pushable="1"/>
    <flag staticattack="1"/>
    <flag targetdistance="1"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" chance="100" skill="420" attack="420" min="-1337" max="-1337"/>
    <attack name="Sudden Death" interval="4000" chance="50" min="-1337" max="-1337" range="6"/>
    <attack name="Ultimate Explosion" interval="6000" chance="35" min="-6666" max="-6666"/>
  </attacks>
  <defenses defense="80" armor="20">
    <defense name="Ultimate Healing" interval="2300" chance="75" min="1337" max="1337"/>
    <defense name="Strong Haste" interval="4200" chance="50"/>
  </defenses>
  <immunities>
    <immunity name="poison"/>
    <immunity name="outfit"/>
    <immunity name="drown"/>
    <immunity name="invisible"/>
  </immunities>
  <voices speed="2000" chance="80">
    <voice sentence="I PWN YOU ALL" yell="1"/>
    <voice sentence="I am the king"/>
    <voice sentence="IAM A RAT COME LOOK" yell="1"/>
  </voices>
  <summons maxSummons="10">
    <summon name="Demon" speed="2000" chance="75"/>
    <summon name="Orshabaal" speed="6000" chance="30"/>
  </summons>
  <loot>
    <item id="2421" countmax="1" chance="300"/>
    <item id="2393" countmax="1" chance="1000"/>
    <item id="1987" countmax="1" chance="30">
      <inside>
        <item id="2148" countmax="100" chance="50"/>
      </inside>
    </item>
  </loot>
</monster>

I potem w monsters.xml

Kod:

<monster name="Demon Rat" file="Demon Rat.xml" />

http://img13.imageshack.us/img13/8466/ovoj.jpg

Offline

 

#6 2007-12-23 10:00:11

Lord500

http://i35.tinypic.com/2usym0z.gif

65646456
Skąd: Załęże
Zarejestrowany: 2007-12-16
Posty: 124
WWW

Re: Potwory, Czary, NPC

A co ten NPC Santa robi ?? Jak prezenty rozdaje to super :]


http://img527.imageshack.us/img527/4812/78711530cp5.png

Offline

 

#7 2007-12-24 11:06:48

Kajtek

http://i38.tinypic.com/avakh.gif

328432
Call me!
Zarejestrowany: 2007-12-24
Posty: 73
WWW

Re: Potwory, Czary, NPC

Fajny stworek nawet
moje gg 328432


http://r5.fodey.com/1e87448ad9a0d4768a424147325b4a6f6.1.gif
Ip 83.144.112.190 Acc http://83.144.112.190/ tIBIA 7.6 mAPA Fajna Lekkie Lagi Exp 250

Offline

 

#8 2007-12-24 15:00:42

Lord500

http://i35.tinypic.com/2usym0z.gif

65646456
Skąd: Załęże
Zarejestrowany: 2007-12-16
Posty: 124
WWW

Re: Potwory, Czary, NPC

Ej, a po co dajesz swoje GG ?? Aha i jeszcze nie oceniłem twojej pracy rici 9/10 :]


http://img527.imageshack.us/img527/4812/78711530cp5.png

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
przegrywanie kaset vhs warszawa https://gabinet-kosmed.pl