Jump to content
  • 0

Question

Posted

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

5 answers to this question

Recommended Posts

  • 0
Posted

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 ?

 

  • 0
Posted
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?

  • 0
Posted (edited)
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
  • 0
Posted
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.

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