Jump to content
  • 0

Dual log restriction required to avoid skull farm


DEsMOn

Question


  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

Hello Scripters,

Can anyone guide to add restriction in this script so players can't farm skull in dual log.

-	script	test	-1,{
OnPCKillEvent:
   //if ( ( !getmapflag( strcharinfo(3), mf_pvp ) && !getmapflag( strcharinfo(3), mf_gvg ) ) || killedrid == getcharid(3) ) end;
   if ( getmapflag( strcharinfo(3), mf_pvp ) == 0 || killedrid == getcharid(3) ) end;
   attachrid killedrid;
   .@charid = getcharid(0);
   attachrid killerrid;
   getitem2 8966, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
//    getnameditem 7420, rid2name( killedrid ); // <-- EDITED, this command doesn't drop item on floor
   end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

-	script	test	-1,{
OnPCKillEvent:
   //if ( ( !getmapflag( strcharinfo(3), mf_pvp ) && !getmapflag( strcharinfo(3), mf_gvg ) ) || killedrid == getcharid(3) ) end;
   if ( getmapflag( strcharinfo(3), mf_pvp ) == 0 || killedrid == getcharid(3) ) end;
   attachrid killedrid;
   .@charid = getcharid(0);
   attachrid killerrid;
   if(getcharip(killedrid) == getcharip(getcharid(3))) end;
   getitem2 8966, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
//    getnameditem 7420, rid2name( killedrid ); // <-- EDITED, this command doesn't drop item on floor
   end;
}

 

  • Upvote 1
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

6 minutes ago, cook1e said:
-	script	test	-1,{
OnPCKillEvent:
   //if ( ( !getmapflag( strcharinfo(3), mf_pvp ) && !getmapflag( strcharinfo(3), mf_gvg ) ) || killedrid == getcharid(3) ) end;
   if ( getmapflag( strcharinfo(3), mf_pvp ) == 0 || killedrid == getcharid(3) ) end;
   attachrid killedrid;
   .@charid = getcharid(0);
   attachrid killerrid;
   if(getcharip(killedrid) == getcharip(getcharid(3))) end;
   getitem2 8966, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
//    getnameditem 7420, rid2name( killedrid ); // <-- EDITED, this command doesn't drop item on floor
   end;
}

 

THANK YOUUUUUUUUUU SO MUCHHHHHHHHHHHHHHHHHHHHHHHHHH.!!!

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