Thread: Donators Shop

Results 1 to 10 of 10
  1. #1 Donators Shop 
    Registered Member
    Join Date
    Oct 2008
    Posts
    107
    Thanks given
    0
    Thanks received
    0
    Rep Power
    23
    Hi all, can anyone tell me how to make a shop so that you have to be a donator to open it and if ur not and u click on it, it sends a msg saying "you need to be a donator to access this shop" or somthing like that.


    and how do i change the name of a teleportspell on lunar ancients and normal and change where it teles you to?

    Thanks
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2007
    Age
    30
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    if(donator==1){
    openShop == true;
    } else {
    openShop == false;
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2008
    Posts
    107
    Thanks given
    0
    Thanks received
    0
    Rep Power
    23
    Quote Originally Posted by Raid View Post
    if(donator==1){
    openShop == true;
    } else {
    openShop == false;
    Thanks but i really new to servers so where do i put it?
    Reply With Quote  
     

  4. #4  
    happyisbackk
    Guest
    Okay well to get a donators/mod/admin shop you should spawn a portal so only those players can get to the shop. You can spawn a portal by doing this..(and this should work if your using delta) Put in a secret location i use this X-2086 Y-4429, its the prison pete mini game area, works fine

    case ####:
    if(playerRights >= 1) {
    toX = ####;
    toY = ####;
    sM("You teleport to the staff area !");
    } else {
    sM("Fuck Off You Are Not Staff !");
    }
    break;
    Change the first #### to the object i.d
    The second #### to the X coord
    The third #### to the Y coord
    im not too sure if donators can get into it because its playerrights= 1, but you can try.

    And then making the shop itself.
    Goto shops.cfg go to the bottom and add this in under the last shop

    shop = 43 Donators shop 2 2 XXXX ###
    XXXX= the item which you want to put in the shop
    ###= the amount of the items you want to put in the shop

    Now to make your shop work, goto client.java. Look for this..

    wanneshop
    Keep looking until you find something that look simliar to this

    if(NPCID == 1597){
    PutNPCCoords = true;
    WanneShop = 41;
    }
    Then copy this and paste it under the bracket ( } )

    if(NPCID == ####){
    PutNPCCoords = true;
    WanneShop = 43;
    }
    ####= The NPC i.d
    wanneshop= the shop i.d which you added in shops.cfg
    You can have the same NPC I.D as the one above.

    REP+ if i helped

    oh and also changing teleport names you loook in texthandler, and for where they teleport you go on your server say you wanted to move home click on the home, then type
    ::mypos
    then search the coords in ClickingMost. If you cant find the exact coord goto ClickingMost and c+f
    c.triggerTele
    and look for coords that are close to the other ones, save compile and see what happens

    AGAIN REP+ IF I HELPED
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2008
    Posts
    107
    Thanks given
    0
    Thanks received
    0
    Rep Power
    23
    thanks for that happy but i dont like the whole staff/donator portal area thingy idea lol. I want to get it like how most other servers i played have it shop that anyone can get to but if ur not a donator it wont open for you only if ur a donator
    Reply With Quote  
     

  6. #6  
    Rebirth
    Guest
    Quote Originally Posted by 0runu View Post
    thanks for that happy but i dont like the whole staff/donator portal area thingy idea lol. I want to get it like how most other servers i played have it shop that anyone can get to but if ur not a donator it wont open for you only if ur a donator
    K now read this well this is all I can do to help you.

    To make a shop only open for a donator have the code to open it look like this:
    Code:
    if(NPCID == #){
    if(donator > 0){ 
    PutNPCCoords = true;
    WanneShop = !; 
    } else {
    sM("This shop is for donators only");
    }
    }
    For # put the NPCID for the NPC you wish to open the shop.
    For ! put the ShopID for the shop you wish it to open.
    If you dont know where to place this search for
    Code:
    WanneShop
    and place it near another statement like the one we made.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2008
    Posts
    107
    Thanks given
    0
    Thanks received
    0
    Rep Power
    23
    Thanks rebirth. on my laptop atm so gotta download java to see if it worked if it does thanks and you'll get a rep
    Reply With Quote  
     

  8. #8  
    Founder of MBScape & Xora

    Ryan.'s Avatar
    Join Date
    Oct 2008
    Posts
    1,509
    Thanks given
    53
    Thanks received
    49
    Rep Power
    312
    if(donator==1){
    openShop == true;
    } else {
    openShop == false;
    Bam, there you go
    Attached image
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2008
    Posts
    107
    Thanks given
    0
    Thanks received
    0
    Rep Power
    23
    thanks guys i finaly fingured it out those who helped i will rep you
    Reply With Quote  
     

  10. #10  
    popopo169
    Guest
    Guys how do i setup rebirth on my 508 server? Like what do I edit so they hit more dmg etc..?
    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
  •