Forum

> > CS2D > Scripts > Respawn npc
Forums overviewCS2D overview Scripts overviewLog in to reply

English Respawn npc

1 reply
To the start Previous 1 Next To the start

old Respawn npc

pbeloto
User Off Offline

Quote
Hi us .

could someone help me?

I would do this in table form equal rpg tibia

code down

I would like the respawn were square shaped just like the rpg tibia

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
timer(180000,"_npcrespawn","",0)

function _npcrespawn(id)
local aleatorio = math.random(1,5)
if aleatorio == 1 then
parse("spawnnpc 1 12 13 1")
parse("spawnnpc 2 5 12 1")
parse("spawnnpc 3 1 11 1")
parse("spawnnpc 4 3 20 1")
parse("spawnnpc 5 14 23 1")
elseif aleatorio == 2 then
parse("spawnnpc 5 12 13 1")
parse("spawnnpc 4 5 12 1")
parse("spawnnpc 3 1 11 1")
parse("spawnnpc 2 3 20 1")
parse("spawnnpc 1 14 23 1")
elseif aleatorio == 3 then
parse("spawnnpc 4 12 13 1")
parse("spawnnpc 5 5 12 1")
parse("spawnnpc 1 1 11 1")
parse("spawnnpc 2 3 20 1")
parse("spawnnpc 3 14 23 1")
elseif aleatorio == 4 then
parse("spawnnpc 3 12 13 1")
parse("spawnnpc 2 5 12 1")
parse("spawnnpc 1 1 11 1")
parse("spawnnpc 5 3 20 1")
parse("spawnnpc 4 14 23 1")
elseif aleatorio == 5 then
parse("spawnnpc 3 12 13 1")
parse("spawnnpc 1 5 12 1")
parse("spawnnpc 5 1 11 1")
parse("spawnnpc 2 3 20 1")
parse("spawnnpc 4 14 23 1")
end
end

sorry my inglish

old Re: Respawn npc

BrunoRZ
User Off Offline

Quote
Couldn't understand what do you want... anyways if you're brasilian, PM me so you can freely talk portuguese
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview