Thread: Scripting Help
View Single Post
  #1  
Old 05-28-2001, 05:55 AM
Bravo_NPC-Admin1 Bravo_NPC-Admin1 is offline
Registered User
Join Date: May 2001
Location: Olympia, Washington USA
Posts: 25
Bravo_NPC-Admin1 is on a distinguished road
Send a message via AIM to Bravo_NPC-Admin1 Send a message via Yahoo to Bravo_NPC-Admin1
Cool Scripting Help

Ok. I need some help with some NPCs I made. I am making a bug-catching system, and I need some help because it won't work online..... It composes of a bottle, net, and butterfly's. This is my bottle code:
// NPC made by BocoBomy
if (playerchats && strequals(#c,buy small bug bottle) && playerrupees>=5) {
playerrupees-=5;
toweapons Small Bug Bottle;
client.BugJarCount=15;
say2
You can carry up to 15 bugs#b
in this bottle! If you want#b
to see how many bugs you have#b
stored, say "::bug count::"#b
without the parenthesis.;
}
if (playerenters && isweapon) {
client.BugJarCount=15;
}
if (playerenters) {
message Small Bug Bottle - 5 Gralat;
}
if (playerchats && strequals(#c,::bug count: && isweapon) {
say2 You have #v(client.BugCount) bugs stored;
}

The problem is, client.BugJarCount won't set to 15. I log into RC, check my profile, and it isn't there. Even if I erase the client. and just have it BugJarCount, it still won't work. Can anyone help me out with this?
__________________
-Boco