bumxd 17 Posted June 27, 2016 Share Posted June 27, 2016 Hi,how can do what plush 71027-30 can use will after login 10second,ex: when i login on player and need wait 10second when i can use 71027-30 it item..Maybe in source it do? can anybody say how? Link to comment Share on other sites More sharing options...
Aerrow 41 Posted June 27, 2016 Share Posted June 27, 2016 Why do you want this? Link to comment Share on other sites More sharing options...
.Devil. 28 Posted June 28, 2016 Share Posted June 28, 2016 You can do a check on affects and verify if they are loaded with IsLoadedAffect. We're sorry but we don't known to code it, you can use your brain. Oh, and please, delete this comment. again. As you have done. 1 Link to comment Share on other sites More sharing options...
VegaS 1097 Posted June 28, 2016 Share Posted June 28, 2016 Use 5% of your brain for make this. case 71027: int szTimeVegas = ch->GetQuestFlag("mall.wait_time"); if (szTimeVegas) { if (get_global_time() < szTimeVegas + 10) { ChatPacket(CHAT_TYPE_INFO, "You can not do that so fast, wait 10 second!"); return; } } if (!FindAffect(MALL_INDEX_1)) { AddAffect(MALL_INDEX_1, POINT_MAX_HP_PCT, NEW_MALL_VALUE, 0, NEW_MALL_TIME, 0, true); ChatPacket(CHAT_TYPE_INFO, "Points of life were increased with 20% + for xx time."); item->SetCount(item->GetCount()-1); } else { ChatPacket(CHAT_TYPE_INFO, "This item has been used already!"); return; } break; ch->SetQuestFlag("mall.wait_time", get_global_time()); MALL_INDEX_1, enum ETypeMallBonus { NEW_MALL_VALUE = 20, NEW_MALL_TIME = 0*0*0, }; #define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || (type) == MALL_INDEX_1 || ((type) >= 500 && (type) < 600)) Link to comment Share on other sites More sharing options...
bumxd 17 Posted June 30, 2016 Author Share Posted June 30, 2016 On 28.06.2016 at 3:58 PM, VegaS said: Use 5% of your brain for make this. case 71027: int szTimeVegas = ch->GetQuestFlag("mall.wait_time"); if (szTimeVegas) { if (get_global_time() < szTimeVegas + 10) { ChatPacket(CHAT_TYPE_INFO, "You can not do that so fast, wait 10 second!"); return; } } if (!FindAffect(MALL_INDEX_1)) { AddAffect(MALL_INDEX_1, POINT_MAX_HP_PCT, NEW_MALL_VALUE, 0, NEW_MALL_TIME, 0, true); ChatPacket(CHAT_TYPE_INFO, "Points of life were increased with 20% + for xx time."); item->SetCount(item->GetCount()-1); } else { ChatPacket(CHAT_TYPE_INFO, "This item has been used already!"); return; } break; ch->SetQuestFlag("mall.wait_time", get_global_time()); MALL_INDEX_1, enum ETypeMallBonus { NEW_MALL_VALUE = 20, NEW_MALL_TIME = 0*0*0, }; #define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || (type) == MALL_INDEX_1 || ((type) >= 500 && (type) < 600)) in which file it do? On 27.06.2016 at 1:44 AM, Aerrow said: Why do you want this? cuz have bug with it plush.. can use 2x time it plushs..after teleport Link to comment Share on other sites More sharing options...
bumxd 17 Posted June 30, 2016 Author Share Posted June 30, 2016 On 28.06.2016 at 3:13 PM, .Devil. said: You can do a check on affects and verify if they are loaded with IsLoadedAffect. We're sorry but we don't known to code it, you can use your brain. Oh, and please, delete this comment. again. As you have done. if you do not want to help, then do not get smart Link to comment Share on other sites More sharing options...
.Devil. 28 Posted June 30, 2016 Share Posted June 30, 2016 2 hours ago, bumxd said: if you do not want to help, then do not get smart I'm not doing the smart person, are you kidding me? I've told you a simple solution: check if affect is loaded with IsLoadedAffect. What is so hard to understand? I'm helping you. Link to comment Share on other sites More sharing options...
bumxd 17 Posted June 30, 2016 Author Share Posted June 30, 2016 49 minutes ago, .Devil. said: I'm not doing the smart person, are you kidding me? I've told you a simple solution: check if affect is loaded with IsLoadedAffect. What is so hard to understand? I'm helping you. hm,then sorry..but where i can find it IsLoadedAffect? Link to comment Share on other sites More sharing options...
VegaS 1097 Posted July 7, 2016 Share Posted July 7, 2016 On 30.06.2016 at 2:29 PM, bumxd said: in which file it do? cuz have bug with it plush.. can use 2x time it plushs..after teleport - char_affect.cpp - char_item.cpp - length.h - affect.h - input_login.cpp Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now