WC3FT changing the scaling with level for shopmenu items.
I would like to disable the scaling with levels so items from shopmenu and shopmenu2 will always cost the same.
I looked into some of the Inc files but I could not find it. Any help will be greatly appriciated! Indigo |
Re: WC3FT changing the scaling with level for shopmenu items.
war3ft/items.inl, line 61.
http://puu.sh/aKdFm/5f82b37a65.png |
Re: WC3FT changing the scaling with level for shopmenu items.
Thank you for your fast response. I did come across this but I didnt know how to edit it. I tried deleting the function but I couldnt it wouldnt compile war3ft.sma after. I also tried changing the values in the function. But now items from shopmenu are less expensive on lower levels. I want i to be equal on all.
While we're at it, I would also like to know a way so certain items dont stack with race abilities. For example: Sock of Feather stacking with Undeads Levitate. Any ideas? |
Re: WC3FT changing the scaling with level for shopmenu items.
You're going to have to look up some basic scripting to do that yourself. If you can't figure out how to change the cost of the item (you really tried just "deleting" a return statement?"), then I won't be of much help.
I can tell you how to do things, because I believe that the best way to do things is by yourself, so that you may learn. Any time you buy a shop item that enhances a user (speed, gravity), check their current speed/gravity (cs_get_user_maxspeed, cs_get_user_gravity, maybe?). If this retrieved value differs from the normal values (-1.0, 1.0), then prevent them from buying the item. |
Re: WC3FT changing the scaling with level for shopmenu items.
Haha, I dont know anything about the coding. I just want to satisfy the players on my server and fix these two issues (mainly the first). I've tried several things now to make it work but I cant get it to do what I want.
|
Re: WC3FT changing the scaling with level for shopmenu items.
It's as good a time as ever to learn, friend. I will give you a present but I expect that you learn how to modify this kind of stuff on your own.
items.inl, line 65 PHP Code:
You should be able to figure it out from here. I've added the two necessary blocks of code. Read what I did, and learn from it! |
Re: WC3FT changing the scaling with level for shopmenu items.
Thanks for taking the time to help me. Cant believe fixing the ratio was as simple as this.
PHP Code:
Indigo~ EDIT: Alright, so I suppose you left out a few signs to make me look at it :D PHP Code:
Thanks for the help its much appriciated. |
Re: WC3FT changing the scaling with level for shopmenu items.
I am evilly helpful :twisted:
If you need any additional help, feel free to add me on Steam, or post here. I will always take time to help someone learn, but after awhile I expect you can start to be independent. |
Re: WC3FT changing the scaling with level for shopmenu items.
Problem with your method: You can buy the items on a different race and then switch back to undead and you will keep the items and they will still stack.
Any ideas? |
Re: WC3FT changing the scaling with level for shopmenu items.
shared.inl, line 846
PHP Code:
shared.inl, line 1096 PHP Code:
I expect you are learning from this, friend. |
| All times are GMT -4. The time now is 12:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.