Forum

> > CS2D > Scripts > My RPG zombie(npcs)
Forums overviewCS2D overview Scripts overviewLog in to reply

English My RPG zombie(npcs)

10 replies
To the start Previous 1 Next To the start

old My RPG zombie(npcs)

REMOVED
BANNED Off Offline

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

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)
edited 2×, last 04.08.11 04:45:57 pm

old Re: My RPG zombie(npcs)

REMOVED
BANNED Off Offline

Quote
My items.lua (not finished):
More >



Please help
edited 1×, last 10.08.11 10:51:25 pm

old Re: My RPG zombie(npcs)

Yasday
User Off Offline

Quote
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.

old Re: My RPG zombie(npcs)

SkullzOrig
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview