Jump to content
  • 0

How to Do Skull Will be Auto loot on pvp


Question

8 answers to this question

Recommended Posts

Posted

try script method

conf/battle/player.conf

bone_drop: 0

-    script    test    -1,{
OnPCKillEvent:
   if(getmapflag(strcharinfo(3),mf_pvp) && killedrid != getcharid(3) ){
       set .@killerrid,getcharid(3);
       if(attachrid(killedrid))
           getitem2 7420,1,0,0,254,0,getcharid(0)&65535,getcharid(0)>>16,.@killerrid;

   }
end;
}

  • Upvote 1
Posted

you can try this also..

- script test -1,{
OnPCKillEvent:
if( getmapflag( strcharinfo(3),mf_pvp ) && killedrid != getcharid(3) ){
 set .@Name$,strcharinfo(0);
 if( attachrid( killedrid ) )
  getnameditem( 7420,.@Name$ );
}
end;
}

getnameditem

Posted (edited)

wait.... wait a moment ...

why you guys gives the one DIED have the killer's skull ?

-    script    test    -1,{
OnPCKillEvent:
   if ( getmapflag( strcharinfo(3), mf_pvp ) == 0 || killedrid == getcharid(3) ) end;
   attachrid killedrid;
   .@charid = getcharid(0);
   attachrid killerrid;
   getitem2 7420, 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;
}

Brian

I just read script.c

getitem2 command automatically make the item on floor, while getnameditem doesn't

Edited by AnnieRuru
  • Upvote 1
  • Love 1
Posted

are these applicable on GVG maps also?

 

if ( ( !getmapflag( strcharinfo(3), mf_pvp ) && !getmapflag( strcharinfo(3), mf_gvg ) ) || killedrid == getcharid(3) ) end;

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