if(donator==1){
openShop == true;
} else {
openShop == false;
|
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
if(donator==1){
openShop == true;
} else {
openShop == false;
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
Change the first #### to the object i.dcase ####:
if(playerRights >= 1) {
toX = ####;
toY = ####;
sM("You teleport to the staff area !");
} else {
sM("Fuck Off You Are Not Staff !");
}
break;
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
XXXX= the item which you want to put in the shopshop = 43 Donators shop 2 2 XXXX ###
###= the amount of the items you want to put in the shop
Now to make your shop work, goto client.java. Look for this..
Keep looking until you find something that look simliar to thiswanneshop
Then copy this and paste it under the bracket ( } )if(NPCID == 1597){
PutNPCCoords = true;
WanneShop = 41;
}
####= The NPC i.dif(NPCID == ####){
PutNPCCoords = true;
WanneShop = 43;
}
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 typethen search the coords in ClickingMost. If you cant find the exact coord goto ClickingMost and c+f::myposand look for coords that are close to the other ones, save compile and see what happensc.triggerTele
AGAIN REP+ IF I HELPED
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:
For # put the NPCID for the NPC you wish to open the shop.Code:if(NPCID == #){ if(donator > 0){ PutNPCCoords = true; WanneShop = !; } else { sM("This shop is for donators only"); } }
For ! put the ShopID for the shop you wish it to open.
If you dont know where to place this search for
and place it near another statement like the one we made.Code:WanneShop
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
thanks guys i finaly fingured it out those who helped i will rep you
Guys how do i setup rebirth on my 508 server? Like what do I edit so they hit more dmg etc..?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |