Jump to content
  • 0

Atcommand


Jpeeezy

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  08/18/20
  • Last Seen:  

Can you please help me to create a new command where I can have myp players type @BTS and be teleported directly to Break The Seal NPC at Prontera and @Train and be teleported to training/leveling grounds and @quest and so on. Thank you!

Edited by Jpeeezy
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

On 8/19/2020 at 6:06 PM, Jpeeezy said:

Thank you for creating this but what I need are these commands only

@quest - teleports to a quest room that I will set

@train - teleports to training grounds

@bts - teleports to where I will put the bts npcs

I already provide you what you need . I even put 1 warp command to train . So you only need to do is to copy and replace it to your own map coordinates

This is the new one that you need
 

 -	script	example	-1,{
    OnInit:
        bindatcmd "BTS",strnpcinfo(3) + "::OnBTS";
		bindatcmd "Train",strnpcinfo(3) + "::OnTrain";
		bindatcmd "Quest",strnpcinfo(3) + "::OnQuest";
        end;

//-------------------------------------------------------
    OnBTS:
		warp "prontera",155,180;
		end;
//-------------------------------------------------------
    OnTrain:
		warp "prontera",155,180;
        end;
//-------------------------------------------------------
    OnQuest:
			warp "prontera",155,180;
			end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

\doc\script_commands.txt line 7747

 

You can copy their codes and look what happened when ran it.

Then just change command to your own. (bts, train)

Edited by Start_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Try this just made it for you not tested but it should be work.   

 

 -	script	example	-1,{
    OnInit:
        bindatcmd "BTS",strnpcinfo(3) + "::OnBTS";
		bindatcmd "Train",strnpcinfo(3) + "::OnTrain";
		bindatcmd "Quest",strnpcinfo(3) + "::OnQuest";
        end;

//-------------------------------------------------------
    OnBTS:
		mes "This is me if you add mes on script";
        dispbottom "This is me if you successfully initiate bind command";
        end;
//-------------------------------------------------------
    OnTrain:
		mes "This is me if you add mes on script";
        dispbottom "This is me if you successfully initiate bind command";
		warp "prontera",155,180;
        end;
//-------------------------------------------------------
    OnQuest:
        mes "Add your quest here";
		mes "Test";
		next;
		switch(Select("Gentleman's Pipe Quest","Exit)){
				case 1:
                          mes "^00B200I need the following item:^000000";
                          mes "1500 Piece of Bamboo";
                          mes "300 Sharp Leaf";
                          mes "1000 Thin Trunk";
                          mes "50 Matchstick";
                          mes "5 TCG";
                          next;
                          mes "[Mogan]";
                          mes "Do you desire ^FFCC00Gentleman's Pipe^000000?";
                          next;
                          menu "Yes",-,"No",L_OUT;
                            if(countitem(7150) < 1500 || countitem(7100) < 300 || countitem(7186) < 1000 || countitem(7035) < 50 || countitem(7227) < 5 ) goto L_NOTENOUGH;

                            delitem 7150,1500;
                            delitem 7100,300;
                            delitem 7186,1000;
                            delitem 7035,50;
                            delitem 7227,5;

                            getitem 5377,1;
							mes "Here is your ^FFCC00Gentleman's Pipe^000000, may it serve you well.";
							close;
		}
//-------------------------NPC DIALOG ------------------------------
L_NOTENOUGH:
	mes "^FF0000Please Check your item!!^000000";
	close;
L_OUT:
	mes "Dont go back again here !!";
	close;
}

 

Edited by Poring King
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  08/18/20
  • Last Seen:  

On 8/19/2020 at 11:10 AM, Start_ said:

\doc\script_commands.txt line 7747

 

You can copy their codes and look what happened when ran it.

Then just change command to your own. (bts, train)

Sorry Im new here. I dont understand what you said. also I checked line 7747 and its only talking about latitude etc.

 

On 8/19/2020 at 12:24 PM, Poring King said:

Try this just made it for you not tested but it should be work.   

 


 -	script	example	-1,{
    OnInit:
        bindatcmd "BTS",strnpcinfo(3) + "::OnBTS";
		bindatcmd "Train",strnpcinfo(3) + "::OnTrain";
		bindatcmd "Quest",strnpcinfo(3) + "::OnQuest";
        end;

//-------------------------------------------------------
    OnBTS:
		mes "This is me if you add mes on script";
        dispbottom "This is me if you successfully initiate bind command";
        end;
//-------------------------------------------------------
    OnTrain:
		mes "This is me if you add mes on script";
        dispbottom "This is me if you successfully initiate bind command";
		warp "prontera",155,180;
        end;
//-------------------------------------------------------
    OnQuest:
        mes "Add your quest here";
		mes "Test";
		next;
		switch(Select("Gentleman's Pipe Quest","Exit)){
				case 1:
                          mes "^00B200I need the following item:^000000";
                          mes "1500 Piece of Bamboo";
                          mes "300 Sharp Leaf";
                          mes "1000 Thin Trunk";
                          mes "50 Matchstick";
                          mes "5 TCG";
                          next;
                          mes "[Mogan]";
                          mes "Do you desire ^FFCC00Gentleman's Pipe^000000?";
                          next;
                          menu "Yes",-,"No",L_OUT;
                            if(countitem(7150) < 1500 || countitem(7100) < 300 || countitem(7186) < 1000 || countitem(7035) < 50 || countitem(7227) < 5 ) goto L_NOTENOUGH;

                            delitem 7150,1500;
                            delitem 7100,300;
                            delitem 7186,1000;
                            delitem 7035,50;
                            delitem 7227,5;

                            getitem 5377,1;
							mes "Here is your ^FFCC00Gentleman's Pipe^000000, may it serve you well.";
							close;
		}
//-------------------------NPC DIALOG ------------------------------
L_NOTENOUGH:
	mes "^FF0000Please Check your item!!^000000";
	close;
L_OUT:
	mes "Dont go back again here !!";
	close;
}

 

Thank you for creating this but what I need are these commands only

@quest - teleports to a quest room that I will set

@train - teleports to training grounds

@bts - teleports to where I will put the bts npcs

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

1 hour ago, Jpeeezy said:

Thank you for creating this but what I need are these commands only

@quest - teleports to a quest room that I will set

@train - teleports to training grounds

@bts - teleports to where I will put the bts npcs

just replace the 

 

OnQuest: 
warp "your quest map",155,180;
and so on

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  08/18/20
  • Last Seen:  

On 8/20/2020 at 10:43 AM, Poring King said:



This is the new one that you need

 


 -	script	example	-1,{
    OnInit:
        bindatcmd "BTS",strnpcinfo(3) + "::OnBTS";
		bindatcmd "Train",strnpcinfo(3) + "::OnTrain";
		bindatcmd "Quest",strnpcinfo(3) + "::OnQuest";
        end;

//-------------------------------------------------------
    OnBTS:
		warp "prontera",155,180;
		end;
//-------------------------------------------------------
    OnTrain:
		warp "prontera",155,180;
        end;
//-------------------------------------------------------
    OnQuest:
			warp "prontera",155,180;
			end;
}

 

Thank you!

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