![]() |
Strings being cut off (NPC set)
This totally screwed up my server.
My strings are being cut off after so many characters, as if an RC were setting them. Unfortunately, only NPCs are setting the strings. When the NPC went to add a 'Bone Piece' to me, the string got cut off and gave RC chat an error. It should have added '"Bone Piece",crafting/bonepiece,1' to the list, but this is what it did: clientr.items="Frozen Bow",weapons/bow/frozenbow,1,"Training Sword",weapons/sword/trainingsword,1,"Iron Dagger",weapons/dagger/irondagger,1,"Potion of Life",items/lifepotion,837,"War Hammer",weapons/axe/warhammer,1,"Bone Pi Is there a fix to this, or do I have to rescript everything? |
You are listing EVERY item in one string? Why not assign ids, and list their ids or something? O.o
|
Because to me, that's very messy.
False alarm, but not really. I can't explain what happened, but it was something like this: The string is added, but cut off. Only one entry is added, but the last few letters are cut off. This destroyed the 3-entry format for items, because a 'fourth' entry was at the end. However, I opened my attributes and cut the broken entry out of the list and I was able to pick items up again. It's hard to explain what happened; I have no idea what caused it, because only one function adds to the item list. |
So wait.. it's fixed now?
Also.. what about multilined flags for rc.. just an idea for stefan if he reads this thread. |
Well it looks like being edited with RC, wouldn't know other reasons why it should be cut
|
Quote:
|
Quote:
|
Actually, I think it would be cleaner ;o
If I had 100 items... OWW? |
| All times are GMT +2. The time now is 01:58 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.