Littlefoot Posted November 7, 2013 Posted November 7, 2013 Can anyone make me a script that when a person type "@go home" the script will automatically use the atcommand warp prontera 150 150 Quote
Emistry Posted November 7, 2013 Posted November 7, 2013 you can just simply modify the source part... change the coordinate here src/map/atcommand.c#L1739 { MAP_PRONTERA, 156, 191 }, // 0=Prontera then change edit this line src/map/atcommand.c#L1816 if (strncmp(map_name, "prontera", 3) == 0 || strncmp(map_name, "home", 3) == 0) { 1 Quote
Capuche Posted November 7, 2013 Posted November 7, 2013 another option should be to use bindatcmd - script atcmd_example -1,{ OnInit: bindatcmd "go",strnpcinfo(3)+"::OnAtcommand",0,99; end; OnAtcommand: if ( .@atcmd_parameters$[0] == "home" ) { message "You are warped to prontera."; warp "prontera",150,150; } else atcommand "@go "+ implode( .@atcmd_parameters$," " ); end; } but I think Emistry's suggestion is better Quote
Littlefoot Posted November 11, 2013 Author Posted November 11, 2013 How about i will only use the command @home? Is it possible with script? Quote
Patskie Posted November 11, 2013 Posted November 11, 2013 This? - script Sample -1,{ OnInit: bindatcmd "home",strnpcinfo(3)+"::OnWarp"; end; OnWarp: warp "prontera",150,150; end; } Quote
Question
Littlefoot
Can anyone make me a script that when a person type "@go home" the script will automatically use the atcommand warp prontera 150 150
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.