Jump to content
  • 0

npc @mainpoint


rbO

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   1
  • Joined:  12/18/13
  • Last Seen:  

when one player digit @mainpoint he will return to save point.. help me

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   1
  • Joined:  12/18/13
  • Last Seen:  

-    script    At_mainpoint    -1,{

OnInit:

    bindatcmd "mainpoint",strnpcinfo(3)+"::OnMainpoint";

    end;

OnMainpoint:

    dispbottom "You current save is : "+getsavepoint(0)+" , "+getsavepoint(1)+" , "+getsavepoint(2);

    atcommand "@return "+strcharinfo(0);

    end;

}

 

like this thx

Edited by rbO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

-	script	At_mainpoint	-1{
OnInit:
	bindatcmd "mainpoint",strnpcinfo(3)+"::OnMainpoint";
	end;
OnMainpoint:
	dispbottom "You current save is : "+getsavepoint(0)+" , "+getsavepoint(1)+" , "+getsavepoint(2)
}

pretty simple

Edited by Kurofly
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   1
  • Joined:  12/18/13
  • Last Seen:  

4191611e80.png

Edited by rbO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

oops  ^_^

-	script	At_mainpoint	-1{
OnInit:
	bindatcmd "mainpoint",strnpcinfo(3)+"::OnMainpoint";
	end;
OnMainpoint:
	dispbottom "You current save is : "+getsavepoint(0)+" , "+getsavepoint(1)+" , "+getsavepoint(2);
}

just forgot to put a ';' at the end of dispbottom

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   1
  • Joined:  12/18/13
  • Last Seen:  

have another problem, this command only know: "Your current sai is: ...", but dont warp for point

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

ahh I thought you wanted to display the save point.

Why don't you use the @load command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   1
  • Joined:  12/18/13
  • Last Seen:  

because i prefer this command with this "Your current sai is: ..."

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   18
  • Joined:  01/02/12
  • Last Seen:  

Like this 

 -    script    At_mainpoint    -1{
OnInit:
    bindatcmd "mainpoint",strnpcinfo(3)+"::OnMainpoint";
    end;
OnMainpoint:
    atcommand "@return "+strcharinfo(0);
    end;
}
Edited by Rosemount
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...