![]() |
1+1=3?
These things are used to pick up and drop an item.
Class melon: NPC Code: Weapon melon: NPC Code: Weapon pickup: NPC Code: Some compination of these scripts must be causing that when it(class melon) is picked up you get +2 in the clientr.melon instead of the +1 its supposed to give. But I cant seem to find out what it is. Help? :eek: |
I'm not sure how most of you script could have worked anyway but it works like this after i fixed some things...
melon class... NPC Code: melon weapon... NPC Code: pickup weapon... NPC Code: |
Its because you can't change a clientr. string clientside. So, you never lose one when you drop it.
|
Quote:
I tough it was working first beacuse I used a npc the check the amount of melons //#CLIENTSIDE if (playerchats&&strequals(#c,count melons)){ say2 #s(clientr.melons);} But because it was client side it aparently gave me some kind of clientside amount of clientr.melon, and i tought they where redusing. odd. when I checked player atriputes wiht rc it showed a difrent amount. I got it fixed now, thanks. |
I think you needed something to update how many melon's you had. When you pick up a melon add a time out instead of doing one constantly :)
|
The melon dropper should look like this i guess :
NPC Code: |
Ksi-gs ;)
|
| All times are GMT +2. The time now is 08:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.