Jump to content
  • 0

Hateffect pk command


luizinhomt

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  88
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

Good night everyone, I have pk mode on my server. wanted when the player activates @modpk automatically a custom aura was displayed on him as a hateffect and when deactivated the aura disappears automatically. thank you all

  • MVP 1
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.03
  • Content Count:  154
  • Reputation:   0
  • Joined:  01/03/20
  • Last Seen:  

hello sir, can i ask if how to make script like NPC that you can pay the NPC zeny or zeny bag to change an aura, i have a lot of aura collection in my GRF but i dont know how to use it and make npc for this so i can use, only blvl99 can aura blue set from server, but if u dont mine sir,i just want to ask how to get aura change even what kind of lvl and i can change the look/effect of an aura on just NPC ?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  148
  • Reputation:   21
  • Joined:  11/12/18
  • Last Seen:  

On 8/21/2023 at 7:45 AM, luizinhomt said:

Good night everyone, I have pk mode on my server. wanted when the player activates @modpk automatically a custom aura was displayed on him as a hateffect and when deactivated the aura disappears automatically. thank you all

what you mean is when player activates his pk mode and aura will be attached on him/her?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  88
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

On 9/11/2023 at 7:10 AM, Forshaken said:

what you mean is when player activates his pk mode and aura will be attached on him/her?

that's exactly my friend

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  148
  • Reputation:   21
  • Joined:  11/12/18
  • Last Seen:  

3 hours ago, luizinhomt said:

that's exactly my friend

You can just make a script for it bro

-    script    at_pk    -1,{
OnInit:
    bindatcmd "pk",strnpcinfo(3)+"::OnDo",0,99;
    end;
OnDo:
  if(!pk_mode){
     atcommand "@pk";
     set pk_mode,1;
     hateffect,HATEFF_ID,TRUE;
  }else{
     atcommand "@pk";
     set pk_mode,0;
     hateffect,HATEFF_ID,FALSE;
  }
end;

OnPCLogoutEvent:
   if(pk_mode){
     atcommand "@pk";
     set pk_mode,0;
     hateffect,HATEFF_ID,FALSE;
   }
end;
}

Edited by Forshaken
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  88
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

7 hours ago, Forshaken said:

You can just make a script for it bro

-    script    at_pk    -1,{
OnInit:
    bindatcmd "pk",strnpcinfo(3)+"::OnDo",0,99;
    end;
OnDo:
  if(!pk_mode){
     atcommand "@pk";
     set pk_mode,1;
     hateffect,HATEFF_ID,TRUE;
  }else{
     atcommand "@pk";
     set pk_mode,0;
     hateffect,HATEFF_ID,FALSE;
  }
end;

OnPCLogoutEvent:
   if(pk_mode){
     atcommand "@pk";
     set pk_mode,0;
     hateffect,HATEFF_ID,FALSE;
   }
end;
}

As soon as I get home I'll test it now, thank you very much my friend

 

If it's not too much to ask, do you know how I can add attributes when I enter pk mode like adding +20 str.

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