![]() |
Bottle Help
I made this but it did not work, the empty bottle does not delete, I actually have to use the empty bottle once I get the red potion to delete it, also, when I use the red potion, I don't get my red potion back. Here are the scripts:
Empty Bottle: PHP Code:
PHP Code:
|
I believe it can be solved by running your hasweapon checks in a timeout.
|
Quote:
Empty Bottle: PHP Code:
PHP Code:
|
Empty Bottle:
PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
The problem is still the same as before, even if I slightly change the timeout script because both scripts already use timeout, but I think it has something to do with the red potion because before I edited it, the empty bottle worked perfectly.
|
PHP Code:
I made a bottle weapon which was used to obtain water, but instead of replacing the weapon I instead manipulated a client stored variable. PHP Code:
|
I'm afraid Tricxta is right. I don't think you can toweapons from within a weapon (can't toweapons inside of something that was added with toweapons). Here is the closest thing you could do: you could require an empty bottle to get a red potion, then you could remove the empty bottle when you receive the red potion, and delete the red potion when it's been used, but you cannot replace it with an empty bottle using offline GS1.
I've written a quick example for you. Empty Bottle: PHP Code:
PHP Code:
The -best- alternative I can offer you is have a listening NPC to add the empty bottle after the red potion has been used. But unfortunately, that'll only provide a solution in that level because offline GS1 doesn't support with(levelname) stuff. Here's what I mean: Random NPC: PHP Code:
PHP Code:
PHP Code:
I was also thinking that in the red potion you could do something dumb like this: PHP Code:
|
Quote:
|
Alternatively you can try scripting your own inventory to handle special situations like this and give you the flexibility to change the weapon names and such. A lot of work, but you're not going to get this sort of freedom with gs1.
|
Quote:
|
| All times are GMT +2. The time now is 06:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.