Berkley
Journeyman
Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0
|
always 200 arrows and bolts in backpack
i use this function to restock ammo in some npc's backpack (inventar)
[FUNCTION f_restock ammo]
FORCONT <UID> 0
IF (<name> == 'arrows' || 'crossbow bolt')
REMOVE
ENDIF
ENDFOR
NEWITEM=i_arrow, 200, <uid>
NEWITEM=i_xbolt, 200, <uid>
TIMERF 7200, f_restock ammo
.
.
it is working but it produces some error warnings too
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'leather' ['leather leggings == 'arrows' || 'crossbow bolt')']
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'leather' ['leather sleeves == 'arrows' || 'crossbow bolt')']
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'studded' ['studded gloves == 'arrows' || 'crossbow bolt')']
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'studded' ['studded gorget == 'arrows' || 'crossbow bolt')']
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'checkered' ['checkered shirt == 'arrows' || 'crossbow bolt')']
21:11:ERROR:(sphere_citizens.scp,3201)Undefined symbol 'backpack' ['backpack == 'arrows' || 'crossbow bolt')']
.
.
How can I stop the Error Messages?
Best regards, Lars
|
|
02-17-2016 06:17 AM |
|
|