Jump to content

Moonlight

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Thank you! That script works perfectly, although, still doesn't work per settings NPC. >.< But thank you either way!
  2. Hi Mumbles. Something like this? (it doesnt work though.. :[) - script at_main -1,{ OnInit: bindatcmd "main", strnpcinfo(3) +"::OnCommand", 0, 2; end; OnCommand:sleep2 100; if (.@atcmd_parameters$[0] == "on") { if (!main) { atcommand "@join #main"; message strcharinfo(0), "You can use the global/main chat system by whispering to '#main'."; main = 1; } else { message strcharinfo(0), "You are already in #main chat."; } } else if (.@atcmd_parameters$[0] == "off") { if (main) { atcommand "@channel leave #main"; message strcharinfo(0), "You are no longer in #main chat."; main = 0; } else { message strcharinfo(0), "You are not in #main chat. You can join the global/main chat system by typing '@main on'."; } } else { message strcharinfo(0), "Invalid parameters."; message strcharinfo(0), .@atcmd_command$ +" failed."; } end; OnPCLoginEvent:sleep2 500; if (.@atcmd_parameters$[0] == "on") { if (!main) { atcommand "@join #main"; message strcharinfo(0), "You can use the global/main chat system by whispering to '#main'."; main = 1; } else { message strcharinfo(0), "You are already in #main chat."; } } else if (.@atcmd_parameters$[0] == "off") { if (main) { atcommand "@channel leave #main"; message strcharinfo(0), "You are no longer in #main chat."; main = 0; } else { message strcharinfo(0), "You are not in #main chat. You can join the global/main chat system by typing '@main on'."; } } else { message strcharinfo(0), "Invalid parameters."; message strcharinfo(0), .@atcmd_command$ +" failed."; } end; }
  3. Hi Mumbles! Thanks for your help so far. ^^ I've tried both methods. For the first one, It doesnt let me make it a permanent command that even stays upon relogging. I've done what you said and edited the script by replacing "@main" with "main" (see below) but alas it doesnt work. >.< - script at_main -1,{OnInit: bindatcmd "main", strnpcinfo(3) +"::OnCommand", 0, 2; end; OnCommand: if (.@atcmd_parameters$[0] == "on") { if (!main) { atcommand "@join #main"; message strcharinfo(0), "You can use the global/main chat system by whispering to '#main'."; main = 1; } else { message strcharinfo(0), "You are already in #main chat."; } } else if (.@atcmd_parameters$[0] == "off") { if (main) { atcommand "@channel leave #main"; message strcharinfo(0), "You are no longer in #main chat."; main = 0; } else { message strcharinfo(0), "You are not in #main chat. You can join the global/main chat system by typing '@main on'."; } } else { message strcharinfo(0), "Invalid parameters."; message strcharinfo(0), .@atcmd_command$ +" failed."; } end; } Ive also tried to put the command in the option NPC like you said, but it says "main failed" and then the rest of the failed channel message system, i've tested if it really was by dual clienting, but my character did not receive the #main messages unless i typed the command manually first. Does that mean this cant be done? ]:
  4. Hello Hercules! Is someone so kind to help me? I am using emistry's build manager but the problem is that as soon as i save a build with a level 99 non-trans character, reborn and restore my build I will have 2x 99 stats as a novice high!! and on top of that comes the extra 2x 99 stats that i am able to get as a reborn 99/70 class, which results in me being able to get almost 4x 99stats! I really need assistance please! Can someone help me only make the build save option only available for level 99/70/50 trans characters and max level extended classes? thank you so much! I really appreciate it! I've tried this but it doesnt work: Case 1: if (Class == EAJ_UPPER) goto pass; mes "I'm sorry, but you can only use this function as level 99/70 transcendent class!"; close; pass: for( set .@i,1; .@i <= .MaxSlots; set .@i,.@i + 1 ) Here the whole script! headerfunction ManageBuild;mes "[Stat & Skill Manager]";mes "Good day, what can I do for you?";next;if ( Weight > 25000 ){mes "[Stat & Skill Manager]";mes "Oh, I can't help you! I can only help you if your weight is below 2000. Please store some items first!";close;}if (checkfalcon() || checkcart() || checkriding()){mes "[Stat & Skill Manager]";mes "Oh, I can't help you. Please remove your Falcon, Cart or Peco first.";close;}switch( select( ( .BMMode & 1 )?"^FF0000Create or switch builds^000000":"",( .BMMode & 2 )?"^0000FFReset Stat^000000":"",( .BMMode & 4 )?"^0000FFReset Skills^000000":"")){Case 1:for( set .@i,1; .@i <= .MaxSlots; set .@i,.@i + 1 )set .@Menu$,.@Menu$ + (( getd( "Slot_"+.@i+"$" ) == "" )?"^FF0000Empty Slot^000000":getd( "Slot_"+.@i+"$" ) )+":";set .@Slot,select( .@Menu$ );do{next;mes "Build : ^FF0000"+(( getd( "Slot_"+.@Slot+"$" ) == "" )?"Slot "+.@Slot:getd( "Slot_"+.@Slot+"$" ) )+"^000000";mes "STR - ^0000FF"+getd( "STR_"+.@Slot )+"^000000 INT - ^0000FF"+getd( "INT_"+.@Slot )+"^000000";mes "AGI - ^0000FF"+getd( "AGI_"+.@Slot )+"^000000 DEX - ^0000FF"+getd( "DEX_"+.@Slot )+"^000000";mes "VIT - ^0000FF"+getd( "VIT_"+.@Slot )+"^000000 LUK - ^0000FF"+getd( "LUK_"+.@Slot )+"^000000";mes " ";mes "Remaining Points : ^0000FF"+getd( "STATS_"+.@Slot )+"^000000";set .@Option,select(( getd( "Slot_"+.@Slot+"$" ) == "" )?"":"^0000FFSwitch",( getd( "Slot_"+.@Slot+"$" ) == "" )?"Save":"",( getd( "Slot_"+.@Slot+"$" ) == "" )?"":"^FF0000Clear" );ManageBuild( .@Slot,.@Option);}while( .@Option != 1 );break;Case 2:ResetStatus;mes "[Stat & Skill Manager]";mes "Your Stats have been reset.";break;Case 3:ResetSkill;mes "[Stat & Skill Manager]";mes "Your Skills have been reset.";break;}close; function ManageBuild {switch( getarg(1) ){Case 1: // Switch Buildmessage strcharinfo(0),"Build has been switched!";ResetStatus;set StatusPoint,getd( "STATS_"+getarg(0) );statusup2 bStr,getd( "STR_"+getarg(0) ) - 1;statusup2 bAgi,getd( "AGI_"+getarg(0) ) - 1;statusup2 bVit,getd( "VIT_"+getarg(0) ) - 1;statusup2 bInt,getd( "INT_"+getarg(0) ) - 1;statusup2 bDex,getd( "DEX_"+getarg(0) ) - 1;statusup2 bLuk,getd( "LUK_"+getarg(0) ) - 1;break;Case 2: // Save Buildsetd( "STR_"+getarg(0) ),readparam(bStr);setd( "AGI_"+getarg(0) ),readparam(bAgi);setd( "VIT_"+getarg(0) ),readparam(bVIT);setd( "INT_"+getarg(0) ),readparam(bInt);setd( "DEX_"+getarg(0) ),readparam(bDex);setd( "LUK_"+getarg(0) ),readparam(bLuk);setd( "STATS_"+getarg(0) ),StatusPoint;if( .Length[0] < .Length[1] && .Length[0] ){mes "Input a ^FF0000Name^000000 for this Slot.";mes "Name Length : "+.Length[0]+" ~ "+.Length[1]+" Chars";do{input getd( "Slot_"+getarg(0)+"$" );}while( getstrlen( getd( "Slot_"+getarg(0)+"$" ) ) < .Length[0] || getstrlen( getd( "Slot_"+getarg(0)+"$" ) ) > .Length[1] );}else{setd( "Slot_"+getarg(0)+"$" ),"Build "+getarg(0);}message strcharinfo(0),"Build has been saved!";break;Case 3: // Remove Buildmessage strcharinfo(0),"Build has been cleared!";setd( "STR_"+getarg(0) ),0;setd( "AGI_"+getarg(0) ),0;setd( "VIT_"+getarg(0) ),0;setd( "INT_"+getarg(0) ),0;setd( "DEX_"+getarg(0) ),0;setd( "LUK_"+getarg(0) ),0;setd( "STATS_"+getarg(0) ),0;setd( "Slot_"+getarg(0)+"$" ),"";break;}return;} OnInit:// 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,4;// Enable Stats Slot Rename + Max Name Length ( 0 = Disable )setarray .Length,3,26; // Min. ~ Max. Words.end; }}}
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.