Emistry

Utility: Build Manager

Recommended Posts

File Name: Build Manager

File Submitter: Emistry

File Submitted: 29 Jul 2012

File Category: Utilities

Content Author: Emistry

A NPC that allow your Characters to Switch Build from time to time.

Players are able to save his current status build , so that he/she can switch back to the saved build whenever he/she want.

Players no need to keep memorize their status build upon changed.

This NPC also provide other Services for Status / Skills Reset.

Configuration :

// Mode of NPC
// 1 = Save & Switch
// 2 = Reset Status
// 4 = Reset Skills
// 7 = All of Above [ 1+2+4 = 7 ]
set .BMMode,7;
// How Many Slots available to Save Status Builds.
set .MaxSlots,3;
// Enable Stats Slot Rename + Max Name Length ( 0 = Disable )
setarray .Length,4,26; // Min. ~ Max. Words.

https://rathena.org/board/index.php?/files/file/2493-%7B?%7D/

Visit Emistry Topic for more Scripts...

  • Upvote 1

Share this post


Link to post
Share on other sites

Hello Emistry,

Would you be able to pull this off my friend?

@Babylonian: It's not possible to save hotkeys, and saving equipment with my script would be inefficient (it'd require an SQL table and the 'equip' command, not too difficult to implement). Emistry has a script that saves skills as well: http://rathena.org/b...0-doppelganger/

For a delete option, add another menu option/case:

			set [email protected], Get_Menu([email protected]);
		if (getd("Build_"[email protected]+"$")=="") {
			message strcharinfo(0),"No build info found."; close; }
		setd "Build_"[email protected]+"$","";
		setd "Build_"[email protected]+"n$","";
		message strcharinfo(0),"Build "[email protected]+" deleted.";
		close;

I thought Emistry's version was only rAthena compatible. Keep in mind I am testing on a trunk version of the latest eAthena emu. (I prefer pre-renewal)

By the way, after playing around with the script, I came up with one exploitable bug:

1. If the player saves his build, afterward rebirths as level 1/1, uses the NPC's services and is granted extra status points instantly. (There is no check basically.) The new status points of a player should be calculated.

It would perhaps be nice if you can throw together a SQL version that includes the following features:

2eahqtx.jpg

• Status Saving based on specific level/point calculations. (To prevent mentioned bug: # 1.)

• Skills Saving. (Merely due to players wanting to also save skills for pvm/mvp/pvp/woe switching porpuses.)

• Hotkeys Saving (Optional.)

• Must be level 99, and only Transcendent/Rebirthed classes can use the sevice.

I am certain it would be appreciated by loads of other veterans out there.

Edit: I've come to the conclusion that rAthena is actually packed with way more bug-fixes than eAthena, and the fact that I can turn off 'Renewal Features' is awesome.

By all means, in this case forget the fact that I am testing on eAthena, I will be switching sources tonight.

If by any chance you do put together this SQL version of the Build Manager, you ought to make sure it is rA compatible rather than eA.

Cheers.

Share this post


Link to post
Share on other sites

it's possible,

my Doppelganger script & peopleperson's Split Personality script have proven to you guys that skills can be saved and change / switch anytime according tot he script..

my Build Manager & Euphy Build Manager have proven to you guys status can be save and switch at anytime according to the script..

so, most of it is possible except the hotkey parts...even though i can think of it how the hotkey is saved, but not instant updated on your clients if your switched or etc...

anyway.....will think of it if i want to update my Build Manager scripts.....

  • Upvote 1

Share this post


Link to post
Share on other sites

it's possible,

my Doppelganger script & peopleperson's Split Personality script have proven to you guys that skills can be saved and change / switch anytime according tot he script..

my Build Manager & Euphy Build Manager have proven to you guys status can be save and switch at anytime according to the script..

so, most of it is possible except the hotkey parts...even though i can think of it how the hotkey is saved, but not instant updated on your clients if your switched or etc...

anyway.....will think of it if i want to update my Build Manager scripts.....

Great to hear. It is safe to assume you are busy. Take your time, and all the best. /ok

Cheers.

Share this post


Link to post
Share on other sites

File Name: Build Manager

File Submitter: Emistry

File Submitted: 29 Jul 2012

File Category: Utilities

Content Author: Emistry

A NPC that allow your Characters to Switch Build from time to time.

Players are able to save his current status build , so that he/she can switch back to the saved build whenever he/she want.

Players no need to keep memorize their status build upon changed.

This NPC also provide other Services for Status / Skills Reset.

Configuration :

// Mode of NPC
// 1 = Save & Switch
// 2 = Reset Status
// 4 = Reset Skills
// 7 = All of Above [ 1+2+4 = 7 ]
set .BMMode,7;
// How Many Slots available to Save Status Builds.
set .MaxSlots,3;
// Enable Stats Slot Rename + Max Name Length ( 0 = Disable )
setarray .Length,4,26; // Min. ~ Max. Words.

Visit Emistry Topic for more Scripts...

Hey sir emistry, i changed my server max stat and i want to reset all builds saved into build manager, how can i do it?

Share this post


Link to post
Share on other sites

try these..

 

shutdown server..and load these SQL

DELETE FROM `global_reg_value` WHERE `str` LIKE 'STATS_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'STR_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'AGI_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'VIT_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'INT_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'DEX_%';
DELETE FROM `global_reg_value` WHERE `str` LIKE 'LUK_%';

make sure you backup 1st before do anything...

Share this post


Link to post
Share on other sites

Thank you for this sir, if im a trans max level and saved a build in the build mgr npc,

Then i rebirth(max level) and comback and load it, would it let me do it? Or the stats might stack?

Is there a check for this?

Thanks

Share this post


Link to post
Share on other sites

Thank you for this sir, if im a trans max level and saved a build in the build mgr npc,

Then i rebirth(max level) and comback and load it, would it let me do it? Or the stats might stack?

Is there a check for this?

Thanks

nope ... i didnt add that ...

 

you can add it below the npc header

if( BaseLevel < 99 ){
    mes "Only Base Level 99 can use.";
    close;
}

something like this.

Share this post


Link to post
Share on other sites

Any idea about this error? 

[Warning]: script error in file 'npc/custom/BuildManager.txt' line 9 column 2
    parse_syntax: use of deprecated keyword (use 'case' instead).
     6: switch( select( ( .BMMode & 1 )?"^FF0000Save & Switch Builds^000000":"",

     7:                                 ( .BMMode & 2 )?"^0000FFReset Status^000
000":"",
     8:                                 ( .BMMode & 4 )?"^0000FFReset Skills^000
000":"")){
*    9:         Case 1:
        ~~~~~~~~^
    10:                 for( set [email protected],1; [email protected] <= .MaxSlots; set [email protected],[email protected] + 1 )
    11:                         set [email protected]$,[email protected]$ + (( getd( "Slot_"[email protected]+"$" )
 == "" )?"^FF0000Empty Slot^000000":getd( "Slot_"[email protected]+"$" ) )+":";
    12:                 set [email protected],select( [email protected]$ );
[Error]: script error in file 'npc/custom/BuildManager.txt' line 9 column 2
    parse_line: expect command, missing function name or calling undeclared func
tion
     6: switch( select( ( .BMMode & 1 )?"^FF0000Save & Switch Builds^000000":"",

     7:                                 ( .BMMode & 2 )?"^0000FFReset Status^000
000":"",
     8:                                 ( .BMMode & 4 )?"^0000FFReset Skills^000
000":"")){
*    9:         Case 1:
        ~~~~~~~~^
    10:                 for( set [email protected],1; [email protected] <= .MaxSlots; set [email protected],[email protected] + 1 )
    11:                         set [email protected]$,[email protected]$ + (( getd( "Slot_"[email protected]+"$" )
 == "" )?"^FF0000Empty Slot^000000":getd( "Slot_"[email protected]+"$" ) )+":";
    12:                 set [email protected],select( [email protected]$ );

Share this post


Link to post
Share on other sites

the error message already told you the solution.

use of deprecated keyword (use 'case' instead).

Share this post


Link to post
Share on other sites

Is it possible to add an atcommand for this? I've tried to add one but i can't seem to make it work? Any thoughts on this?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...