Jump to content
  • 0

@warp with 1,000z Charge


Question

Posted

Can someone fix this script? there's only 2 problem in this script.

1st. it keep charging me after i used @warp.

2nd. @warp is not working.

-	script	atcmd_sample_inject	-1,{
	OnInit:
		bindatcmd("warp", "atcmd_sample_inject::OnAtCmd");
		end;
		
	OnAtCmd:
		if(Zeny >= 1000) {
			set Zeny, Zeny - 1000;
			useatcmd "@warp " + .@atcmd_parameters$[0] + " " + .@atcmd_parameters$[1] + " " + .@atcmd_parameters$[2];
		} else {
			dispbottom "Sorry... you need at least 1000z to use this service";
		}
		end;
}
  • Upvote 1

2 answers to this question

Recommended Posts

  • 1
Posted
useatcmd "@warp " + .@atcmd_parameters$[0] + " " + .@atcmd_parameters$[1] + " " + .@atcmd_parameters$[2];

change to

warp .@atcmd_parameters$[0],atoi( .@atcmd_parameters$[1] ),atoi( .@atcmd_parameters$[2] );
  • Upvote 2
Posted
useatcmd "@warp " + .@atcmd_parameters$[0] + " " + .@atcmd_parameters$[1] + " " + .@atcmd_parameters$[2];

change to

warp .@atcmd_parameters$[0],atoi( .@atcmd_parameters$[1] ),atoi( .@atcmd_parameters$[2] );

Thank you very much.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...