Jump to content
  • 0

Check npcskill ?


Idolo

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  03/30/12
  • Last Seen:  

Hello guys, I would know how I can check if my npc is going to npcskill.

I try :

if (npcskill !=0){close;}

 

But it's don't work, that's possible ? You are any idea ?

Thanks.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Can you elaborate more? If you wanted to know whether your npc have casted skill or not you can use a npc variable like .var then check back with if (.var != 0) close;

 

Not sure what are you trying to do but here's the example:

if (!.healed) { 
    npcskill "AL_HEAL",10,99,60;
    .healed = 1;
} else {
    mes "Healed already.";
    close;
}

Here is a list of different variable types:

  name  - permanent character integer variable
  name$ - permanent character string variable
 @name  - temporary character integer variable
 @name$ - temporary character string variable
 $name  - permanent global integer variable
 $name$ - permanent global string variable
$@name  - temporary global integer variable
$@name$ - temporary global string variable
 .name  - NPC integer variable
 .name$ - NPC string variable
.@name  - scope integer variable
.@name$ - scope string variable
 #name  - permanent local account integer variable
 #name$ - permanent local account string variable
##name  - permanent global account integer variable
##name$ - permanent global account string variable
Edited by Bin4ry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  03/30/12
  • Last Seen:  

Bump.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  03/30/12
  • Last Seen:  

I had not thought of that solution thanks !

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