Forum

> > CS2D > Scripts > My RPG zombie(npcs)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch My RPG zombie(npcs)

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt My RPG zombie(npcs)

REMOVED
BANNED Off Offline

Zitieren
I do RPG zombie ,but i have one problem
look it's my npcs.lua :
Mehr >

Error is bold ( text = text .. ITEMS[itemid].name .. "1" .. l[2] .. ".")

Please help

LUA ERROR: sys/lua/cs2dtibia/npcs.lua:34: attempt to concatenate field '?' (a nil value)
2× editiert, zuletzt 04.08.11 16:45:57

alt Re: My RPG zombie(npcs)

REMOVED
BANNED Off Offline

Zitieren
My items.lua (not finished):
Mehr >



Please help
1× editiert, zuletzt 10.08.11 22:51:25

alt Re: My RPG zombie(npcs)

Yasday
User Off Offline

Zitieren
You probably tried to access a field of the table called 'ITEMS' wich isn't set. There should be a mistake in one of your NPC's trade table.

alt Re: My RPG zombie(npcs)

SkullzOrig
User Off Offline

Zitieren
Alright dude, i had a couple mistakes like this before, chances are you didnt add the weapon configurations in the config.lua file for every item like the glock, you have to enter it in the weapon range

     WEAPONRANGE = { -- range of cs2d weapons. e.g. [50] = 27 means wpnid 50 has range of 27 pixels. i should get around to change this to ingame ids some time
that is scout ---> [34] = 350,
flamethrower---->     [46] = 128,
          [50] = 27,
          [69] = 32,
          [78] = 32,
and so on, make you sure you add the the weapon width
example-[34] = math.pi/12,
34 is the id of the weapon you can add more if you like
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht