Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...

  • Nie jesteś zalogowany.

#1 2007-11-30 21:49:48

Razor13

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2007-11-26
Posty: 15

Jak umiescic jakies npc na mapie

Siemka mam pytanko jestem zielony w tych zeczach ale chcialbym umiescic sante na mojej mapce
OTO CALY TEN KOD GDZIE TU MOGE WLOZYC TE MJEJSCE X,Y,Z


focus = 0
talk_start = 0
target = 0
following = false
attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)
end

function onCreatureAppear(creature)
end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Merry Christmas!')
focus = 0
talk_start = 0
end
end

function onCreatureTurn(creature)
end

function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end

function onCreatureSay(cid, type, msg)
msg = string.lower(msg)

if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Merry Christmas ' .. creatureGetName(cid) .. '!')
focus = cid
talk_start = os.clock()
end

if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! Please wait.')
end

if string.find(msg, '(%a*)present(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then
present = getPlayerStorageValue(cid,1210)
if present == -1 then
buy(cid,item,1,0)
setPlayerStorageValue(cid,1210,1)
end

if present == 1 then
selfSay('Sorry, I dont have more presents for you.')
end
end

if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end


function onCreatureChangeOutfit(creature)
end


function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Merry Christmas!')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 3 then
selfSay('Merry Christmas!')
focus = 0
end
end
if focus == 0 then
cx, cy, cz = selfGetPosition()
randmove = math.random(1,25)
if randmove == 1 then
nx = cx + 1
end
if randmove == 2 then
nx = cx - 1
end
if randmove == 3 then
ny = cy + 1
end
if randmove == 4 then
ny = cy - 1
end
if randmove >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end

if focus > 0 then
rand = math.random(1,6)
if rand == 1 then
item = 2969
elseif rand == 2 then
item = 2973
elseif rand == 3 then
item = 2981
elseif rand == 4 then
item = 3520
elseif rand == 5 then
item = 2930
else
item = 3524
end
end

if focus == 0 then
randsay = math.random(1,75)
if randsay == 1 then
selfSay('Hmmhmm...')
end
if randsay == 2 then
selfSay('Hoho...')
end
end
end

Offline

 

#3 2008-01-14 09:29:14

Pisul

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2008-01-04
Posty: 14

Re: Jak umiescic jakies npc na mapie

Te ja w world nie mam NPC


http://www.pokeplushies.com/images/plushies/Digimon/plushie_lunamon.gif

Offline

 

#4 2008-01-14 14:59:38

reeay

http://i37.tinypic.com/sb1sbd.jpg

Skąd: Warszawa
Zarejestrowany: 2007-12-04
Posty: 172
WWW

Re: Jak umiescic jakies npc na mapie

Lol ?! po c...j sie tak meczyc jak mozna szybciej,sprawniej,wygodniej w map editorze dac ?!


http://zanimnapiszesz.ovh.org/img/zanimnapiszesz6.gif

Offline

 

#5 2008-01-14 15:26:02

Pisul

http://i38.tinypic.com/19pb0n.gif

Zarejestrowany: 2008-01-04
Posty: 14

Re: Jak umiescic jakies npc na mapie

reeay jak powiedz ja w map editorze je dodaje tam w creatures one wygladaja jak krzaki ale to sie podobno zmieni w grze, ale nie wiem jak je doidac na mapke klikam NPC wybieram np.Varkhal i nic klikam i on sie nie pojawia czy trzeba cos jeszcze?


http://www.pokeplushies.com/images/plushies/Digimon/plushie_lunamon.gif

Offline

 

#6 2008-01-15 15:27:45

reeay

http://i37.tinypic.com/sb1sbd.jpg

Skąd: Warszawa
Zarejestrowany: 2007-12-04
Posty: 172
WWW

Re: Jak umiescic jakies npc na mapie

na koncu

Kod:

creatures.xml

w map editorze (folderze z nim) masz
cos typu

<creature looktype="127" name="Eddy" type="npc"/>
<creature looktype="140" name="Medusa" head="120" body="113" legs="114" feet="132" type="npc"/>
<creature itemid="4011" name="Pothead" type="npc"/>

zrob kopie

<creature looktype="140" name="Medusa" head="120" body="113" legs="114" feet="132" type="npc"/>

i nazwe zmien z Medusa na np Varkhal albo Frodo i inne jakie masz na otsie i potem zapisz to, wejdz w map editor i zrob "spawn" jak do potwora i wstaw w pole tego "spawnu" tego npc a jesli chcesz zmienic w map editorze wyglad zeby w menu bylo widac tego typa to wejdz w folder "npc" w folderze z otsem i do "xml" wejdz jakiegos i tam masz lootype= i inne te head, body, legs i inne

jak masz <creature looktype="140" name="Medusa" head="120" body="113" legs="114" feet="132" type="npc"/> to skopiuj i wklej to ponizej poprostu zeby bylo cos takiego

Kod:

<creature looktype="140" name="Medusa" head="120" body="113" legs="114" feet="132" type="npc"/>
<creature looktype="140" name="Medusa" head="120" body="113" legs="114" feet="132" type="npc"/>

i tylko tam gdzie name="Medusa" wpisz np "Varkhal"

teraz moze zrozumiecie

___________________
Pomogłem ? Plus for me ?

Ostatnio edytowany przez reeay (2008-01-16 15:17:10)


http://zanimnapiszesz.ovh.org/img/zanimnapiszesz6.gif

Offline

 

#7 2008-01-15 16:54:18

MixFixGirl

Zbanowany

Re: Jak umiescic jakies npc na mapie

reeay napisał:

ta kopia to zrob ze skopiujesz wklej to i nizej linijke zrob taka samą, pewnie tego nie rozumiesz chodzi mi to ze musi byc "szkielet"

Tego zdania to i ja nie rozumiem

@topic
W MapEditorze na górze jest taki jakby czerwony kwadrat, postaw go tam gdzie chcesz postawić NPC, potem postaw tam NPC i gotowe.

 

#8 2008-01-26 18:45:27

Bam

http://i37.tinypic.com/2dqpohz.gif

5236665
Skąd: Łódź->Dbwa
Zarejestrowany: 2008-01-25
Posty: 20
Nick: Cybrik
Profesja: Nerana
Server: 100

Re: Jak umiescic jakies npc na mapie

Wielkie dzieki Reeay

Offline

 

#9 2010-01-04 19:01:39

 Villeno12

http://i38.tinypic.com/2ni1vub.gif

7350073
Zarejestrowany: 2010-01-03
Posty: 77
Nick: Villeno12
Profesja: 127.0.0.1
Server: 999

Re: Jak umiescic jakies npc na mapie

Zobacz Map Edytorem


http://s2.tibiafun.y0.pl/char.php?c=Villeno12         <-- Click Please

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
customform apartamenty Kraków trojan deweloper dachy warszawa turystyka górska