Jump to content
  • 0

How to use SC_CLOAKING in a Char without the Cloaking Skill


Question

Posted

I am using

sc_start SC_CLOAKING,15000,10,10000,SCSTART_NOICON;
sleep2 15000;
sc_end SC_CLOAKING;

 as part of my script but it only works if the player has the Cloaking skill. It is not the case for the AGI, BLESS though

sc_start SC_INCREASEAGI,240000,10;

 It works as a charm. Just wondering how to force player to use cloaking even if they don't have the skill.

During my tests, I found if I use the following it works:

skill "AS_CLOAKING",10;
sc_start SC_CLOAKING,15000,10,10000,SCSTART_NOICON;
sleep2 15000;
sc_end SC_CLOAKING;

Is this the proper way? Would it cause to accidently define Cloaking skill permanently to the player?

 

2 answers to this question

Recommended Posts

  • 0
Posted

In what escenario want you have cloaking? While in battle or depending on some situation?

If you want cloaking while in battle you should see doc/script_commands.txt and search *autobonus

  • Like 1
  • 0
Posted
On 10/4/2022 at 3:34 PM, EIysium said:

In what escenario want you have cloaking? While in battle or depending on some situation?

If you want cloaking while in battle you should see doc/script_commands.txt and search *autobonus

Thanks, @Elysium.

I was able to make it work with the following code:

													skill 135,10,1; //give cloaking skill temporary
													sc_start SC_CLOAKING,15000,10,10000,SCSTART_NOICON; //Use cloaking skill lv. 10 with 100% chance and do not send ICON to the client
														sleep2 15000;
													sc_end SC_CLOAKING; //remove cloaking after 15 seconds sleep
														end;

I want it to use cloaking after it ports to a player. Cloaking should last 15 seconds and not send icon to the client.

SOLVED

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