Jump to content
×
×
  • Create New...

Unlimited Red & Blue Potion


Recommended Posts

config.cpp open and search

Kod:
int gPlayerMaxLevel = 99;

add under

Kod:
int SnYesilMorpot = 0;
int SnKirmiziMavipot = 0;


search

Kod:
TOKEN("max_level")

max_level this block under

Kod:
        TOKEN("SN_YM_POT")        
        {
            str_to_number(SnYesilMorpot, value_string);
            continue;
        }
        
        TOKEN("SN_KM_POT")
        {
            str_to_number(SnKirmiziMavipot, value_string);
            continue;
        }

config.h open and search

Kod:
extern int gPlayerMaxLevel;

add under

Kod:
extern int SnYesilMorpot;
extern int SnKirmiziMavipot;


char_item.cpp open and search

Kod:
PointChange(POINT_HP_RECOVERY, item->GetValue(0) * MIN(200, (100 + GetPoint(POINT_POTION_BONUS))) / 100);

find

Kod:
item->SetCount(item->GetCount() - 1);

replace with

Kod:
                        if ((SnKirmiziMavipot == 0))                        
                        {
                        item->SetCount(item->GetCount() - 1);
                        }

search

Kod:
AddAffect(affect_type, apply_type, apply_value, 0, apply_duration, 0, true, true);

find

 
item->SetCount(item->GetCount() - 1);

replace with

Kod:
                       if ((SnYesilMorpot == 0))                            
                       {
                       item->SetCount(item->GetCount() - 1);
                       }

now on server
channel1
channel2
channel3
channel4
game99
add above CONFIG file

Kod:
SN_YM_POT: 1
SN_KM_POT: 1


1; active
0; passive

  • Love 1
  • Think 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.