-
Apprentice
LUA-Scripting Help-Thread
Last edited by Bingo1337; 07-01-18 at 07:59 AM.
-
-
Enthusiast
Re: LUA-Scripting Help-Thread
Hey thanks for the opportunity!
Indeed i have a question. I'd like to change the items that these sellers are offering? Can you help me please?
-
Apprentice
Re: LUA-Scripting Help-Thread
Last edited by Bingo1337; 07-01-18 at 07:59 AM.
-
Re: LUA-Scripting Help-Thread
It's almost correctly, exclude that you can "edit" db's via WriteGameObjInfo_Double and another functions like this.
-
Enthusiast
Re: LUA-Scripting Help-Thread
Thanks for the quick answers! I already tried via fdb editor but i'm stuck :(
@Turmalin You mean ingame as GM/DEV?
-
Re: LUA-Scripting Help-Thread
Nope, I mean lua scripts. Search "WriteGameObjInfo_" in your lua files.
And just to clarify - you would need to know *.db field name to edit it(also there are no function for string fields, as I remember).
Format:
WriteGameObjInfo_Double('itemid', 'fieldname', 'value');
Example for buff:
WriteGameObjInfo_Double(622943, "EffectTime", -1);
- - - Updated - - -
Also, if you have some knowledges in C# or js, you can try to use http://forum.ragezone.com/f885/nw-rom-1085535/, but it's a bit tricky.