PDA

View Full Version : [317] Making Donators Only shop [317] Snippet



Xdragon
June 20th, 2010, 20:30
Search for :


if(NPCID == 2536){
PutNPCCoords = true;
WanneShop = 43;
}
Or

if(NPCID == 500){
PutNPCCoords = true;
WanneShop = 44;
}
if(NPCID == 465){
PutNPCCoords = true;
WanneShop = 45;
}

One of that lol
Add under the last }

if(NPCID == #### && donator == 1) {
PutNPCCoords = true;
WanneShop = @@;
}
else if(NPCID == #### && donator == 0) {
PutNPCCoords = true;
sM("You must be a Donator to open this shop.");
}

Change the #### to a npc ID
Change the @@ to the shop ID

credits to me
Have fun !

Ninga Nun
June 21st, 2010, 17:07
Tyvm i liked your other thread, the donator items and tht so tyvm ;)

Xdragon
June 21st, 2010, 17:29
Yw :D

shabz
June 29th, 2010, 00:40
doesn't wrk for me ::SS when u click on the NPC it says u need to be donator to open this shop and when u trade the NPC it jus opens up :S

Xdragon
June 29th, 2010, 11:27
doesn't wrk for me ::SS when u click on the NPC it says u need to be donator to open this shop and when u trade the NPC it jus opens up :S

Yea maybe its bc ur Donator Lol Or You dont have Donator But member
If u have member and not Donator add this :


if(NPCID == #### && member == 1) {
PutNPCCoords = true;
WanneShop = @@;
}
else if(NPCID == #### && member == 0) {
PutNPCCoords = true;
sM("You must be a Member to open this shop.");
}

IllusionX
June 29th, 2010, 12:03
in what file i need to search that?? its a newb question... but i just need to know that lol

TehCow
June 29th, 2010, 17:40
Lol you're explaining such easy things. :p

Ryan
June 29th, 2010, 18:28
Do you really need to make three tutorials explaining the same thing, just doing different things?

sikkens1997
August 6th, 2010, 18:40
lol, i think its very usefull :P

Divine
August 6th, 2010, 18:57
Lol you're explaining such easy things. :p

Lol you'd be surprised at the lack of knowledge of some nubbers :3