Thread: Random pvp Drops applied to a certain area??

Results 1 to 5 of 5
  1. #1 Random pvp Drops applied to a certain area?? 
    !\_\So you thinK/_/!
    Guest
    Hello I'm working on a server and I'm thinking about adding pvp drops but i dont want it to be applied to dying just anywhere because that would ruin the economy of my partner's and my 317 delta. Either that or making a set item replace itself with any random item in the item.cfg. I have no idea how to do either, if anybody could provide me with the coding for either one it'd be much appreciated and I will rep++ thank you.
    Reply With Quote  
     

  2. #2  
    !\_\So you thinK/_/!
    Guest
    bumb
    Reply With Quote  
     

  3. #3  
    !\_\So you thinK/_/!
    Guest
    uhm help?
    Reply With Quote  
     

  4. #4  
    Registered Member
    white full's Avatar
    Join Date
    Jul 2008
    Posts
    879
    Thanks given
    4
    Thanks received
    19
    Rep Power
    196
    Make a boolean for a certain area then if it's in that area do the misc.random(addItem) to the dieing player so when he dies you get the item. But if it's in a place where you keep more than 1 items thers a chance of you not getting 1 of the items. There's better ways to do this but this is easiest.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jun 2008
    Age
    27
    Posts
    2,312
    Thanks given
    485
    Thanks received
    231
    Rep Power
    0
    void dropItems()
    {
    if (isInPvpArea()){
    /*DROP HERE e.g. pvp.getPvpDrop(this);*/
    } else {
    /*Other stuff here*/
    }
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •