Naming Runebooks

Post your technical issues/game suggestions here.

Moderators: Siobhan, Sebastian, Drocket

Naming Runebooks

Postby Caramon on Mon Mar 01, 2004 2:51 am

I think it would be great to be able to rename your runebooks, to help organize them.

I did this script a while back. Heres the changes you'd need to make:

Gump layout:
"button 130 230 2472 2473 1 0 2", //rename button

Change the result from the gump for case 2:

2: // Rename RuneBook
if (book.movable)
RenameBook ( who , book );
return;
else
SendSysMessage (who, "You can't rename locked down runebooks.");
return;
endif
return; //nothing


Then add this function at the end:

///////////////////
// allows the user to enter a new name for the book
///////////////////

function RenameBook (who, book)


//request the user to enter a new name
local rune_name := RequestInput (who, book, "Please enter a new name for this runebook. (max 20 characters)" );

//make sure that they entered a name, and that it's not longer than 20 characters
if (!rune_name)
SendSysMessage (who, "Canceled.");
return;
elseif (len(rune_name) > 20)
SendSysMessage (who, "The name must be 20 characters or less.");
return;
else
book.name := "Runebook: " + rune_name;
endif

endfunction

I havent tried this code under the new Pol, but it should work I think. Guess I need to set up my test server again :)

Anyways, it helped me maintain my runebook collection :)
Caramon
Jr. Assistant Regular Poster
 
Posts: 63
Joined: Sat Feb 14, 2004 7:54 am
Location: Texas

Postby Augur Wildwood on Mon Mar 01, 2004 5:29 am

I like it! :)
Augur Wildwood
Sr. Regular Poster
 
Posts: 154
Joined: Tue Oct 08, 2002 8:37 pm
Location: Berkeley, CA


Return to Tech Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron