This is the little bit of code that appears to be the issue, I may have something wrong here, though I don't know.
I've tried both SetName and book.name to change the books name and both crash the server. I do have concern with the RequestInput as I changed to using that instead of a text entry gump which it originally was. Below this little blob is the much awaited file pol kicks me, if anyone can tell me what is going on.
Code: Select all
exported function SetBookName( book, who, auto:=0 )
if ( book.movable == 0 )
SendSysMessageCL ( who, 502413, color := 33 ); // That cannot be done while the book is locked down.
return 0;
endif
var charge_prop := GetObjProperty ( book, "%Charges%" );
var charges := charge_prop["charges"];
if( !charges )
charges := 0;
endif
var getname := GetObjProperty ( book, "Name" );
if( !getname )
getname := "a runic atlas";
endif
if( !auto )
getname := RequestInput ( who, book, "Something" );
SendSysMessageCL ( who, 502414, color := 66 ); // Please enter a title for the runebook:
if( !getname )
getname := "a runic atlas";
endif
endif
SetObjProperty( book, "Name", CStr( getname ));
//SetName( book, name+" [charges: "+charges+"]" );
book.name := getname+" [charges: "+CStr(charges)+"]";
return 1;
endfunction