Jump to content
  • 0

how to set debuff on npc warper ?


Styx15

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  47
  • Reputation:   0
  • Joined:  09/28/20
  • Last Seen:  

i need to help set debuff     sc_end SC_GEFFEN_MAGIC3; on npc warper..thank you

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   7
  • Joined:  12/29/18
  • Last Seen:  

replace 

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet.";
	else
		warp lastwarp$,lastwarpx,lastwarpy;
	end;

to 

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet.";
	else {
		sc_end SC_GEFFEN_MAGIC3;
		warp lastwarp$,lastwarpx,lastwarpy;
	}
	end;

 

 

and replace 

function Go {
	set lastwarp$, getarg(0);
	set lastwarpx, getarg(1,0);
	set lastwarpy, getarg(2,0);
	warp getarg(0),getarg(1,0),getarg(2,0);
	end;
}

to 

function Go {
	set lastwarp$, getarg(0);
	set lastwarpx, getarg(1,0);
	set lastwarpy, getarg(2,0);
	sc_end SC_GEFFEN_MAGIC3;
	warp getarg(0),getarg(1,0),getarg(2,0);
	end;
}

 

 

Another Note:
I haven't tested with this status, I tested with sc_freeze and it worked, should work with this status too

Another Note ++ : @mrfizi is too fast >_<

Edited by Yuno
edit after i have seen the answer of Mrfizi
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  47
  • Reputation:   0
  • Joined:  09/28/20
  • Last Seen:  

On 3/4/2022 at 2:28 AM, Fluxion said:

replace 

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet.";
	else
		warp lastwarp$,lastwarpx,lastwarpy;
	end;

to 

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet.";
	else {
		sc_end SC_GEFFEN_MAGIC3;
		warp lastwarp$,lastwarpx,lastwarpy;
	}
	end;

 

 

and replace 

function Go {
	set lastwarp$, getarg(0);
	set lastwarpx, getarg(1,0);
	set lastwarpy, getarg(2,0);
	warp getarg(0),getarg(1,0),getarg(2,0);
	end;
}

to 

function Go {
	set lastwarp$, getarg(0);
	set lastwarpx, getarg(1,0);
	set lastwarpy, getarg(2,0);
	sc_end SC_GEFFEN_MAGIC3;
	warp getarg(0),getarg(1,0),getarg(2,0);
	end;
}

 

 

Another Note:
I haven't tested with this status, I tested with sc_freeze and it worked, should work with this status too

Another Note ++ : @mrfizi is too fast >_<

i try but now working../wah

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

1 hour ago, Styx15 said:

i try but now working../wah

Now or Not? If not working, try to restart your server. Is there any error on your putty terminal/screen?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  47
  • Reputation:   0
  • Joined:  09/28/20
  • Last Seen:  

On 3/5/2022 at 12:30 PM, mrfizi said:

Now or Not? If not working, try to restart your server. Is there any error on your putty terminal/screen?

oh need restart server... now working..thank you very much.... @mrfizi , @Fluxion.../thx

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