Jump to content
  • 0

Disable skill uses when user in Summer/Christmas suit.


Shogun

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

As topic above, how can i disable it?

I'm using class changer suits script.

prontera,147,171,5 script Class Suits 485,{

// Settings
set .mode, 1; // Set it as following: 0 - Transcendent 2nd to 3rd class suits ; 1 - Transcendent 2nd to normal and baby 3rd class, also 3rd to baby 3rd; 2 - Transcendent 2nd to 3rd class suits and xmas, summer suits; 3 - 2nd to normal and baby 3rd class, also normal 3rd to baby 3rd plus xmas,summer.

if (.mode == 0) goto normal;
if (.mode == 1) goto misc;

normal:
mes "[suit Provider]";
mes "So, wanna change your appearance?";
menu "Change to 3rd class suit",thirdclass,"Reset appearance",reset;

misc:
mes "[suit Provider]";
mes "So, wanna change your appearance?";
menu "Change to class suit",thirdclass,"Extra suits",miscsuits,"Reset appearance",reset;

menu "Change to class suit",thirdclass,"Extra suits",miscsuits,"Reset appearance",reset;

thirdclass:
if(class == Job_Lord_Knight) { changebase 4060; close; end; }
if(class == Job_Assassin_Cross) { changebase 4065; close; end; }
if(class == Job_Paladin) { changebase 4073; close; end; }
if(class == Job_Whitesmith) { changebase 4064; close; end; }
if(class == Job_Creator) { changebase 4078; close; end; }
if(class == Job_Stalker) { changebase 4079; close; end; }
if(class == Job_Professor) { changebase 4074; close; end; }
if(class == Job_Gypsy) { changebase 4076; close; end; }
if(class == Job_Champion) { changebase 4077; close; end; }
if(class == Job_Sniper) { changebase 4062; close; end; }
if(class == Job_Clown) { changebase 4075; close; end; }
if(class == Job_High_Wizard) { changebase 4061; close; end; }
if(class == Job_High_Priest) { changebase 4063; close; end; }
else { next; mes "[suit Provider]"; mes "I'm sorry, but your class is not supported."; close; end; }

reset:
changebase Class;
close;
end;

miscsuits:
next;
mes "[suit Provider]";
mes "Which of the suits would you like to use?";
menu "Xmas suit",xmas,"Summer suit",summer;

xmas:
changebase 26;
close;
end;

summer:
changebase 27;
close;
end;

}

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2372
  • Joined:  10/28/11
  • Last Seen:  

setoption <option>,1;

refer Setoption

trunk/db/const.txt

Option_Wedding 0x1000
Option_Xmas 0x10000
Option_Summer 0x40000

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

is it like this?

// Settings
set .mode, 1; // Set it as following: 0 - Transcendent 2nd to 3rd class suits ; 1 - Transcendent 2nd to normal and baby 3rd class, also 3rd to baby 3rd; 2 - Transcendent 2nd to 3rd class suits and xmas, summer suits; 3 - 2nd to normal and baby 3rd class, also normal 3rd to baby 3rd plus xmas,summer.

if (.mode == 0) goto normal;
if (.mode == 1) goto misc;

if( Class == 27 ){ set 0x40000,1;}; //<--------------

Its working but only disable 1stjob and 2ndjob skill tree tab. Then all the skills go to misc tab.

Is it because my client allowed to view Misc Tab on skill tree?

I just need to know how to disable Misc Tab in skill tree.

Someone help?

Link to comment
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
Answer this question...

×   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.

×
×
  • Create New...