-
Posts
64 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by .Devil.
-
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.
-
I wrote this for you: [Hidden Content] (it's easy to understand, find "$current_antiflag" and set your item's antiflag, after use the set_bit function to set a new flag).
-
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.
-
[C++]GM buy from shops
.Devil. replied to BackPlayer's topic in Community Support - Questions & Answers
+ Open shop.cpp + Search for CShop::Buy(LPCHARACTER ch, BYTE pos) + After: if (pos >= m_itemVector.size()) { sys_log(0, "Shop::Buy : invalid position %d : %s", pos, ch->GetName()); return SHOP_SUBHEADER_GC_INVALID_POS; } put: if (IsPCShop() && ch->GetGMLevel() > GM_PLAYER) return SHOP_SUBHEADER_GC_SOLD_OUT; I haven't tested it but should work.- 1 reply
-
- 2
-
Try this: [Hidden Content]
-
Because not all compiler works with them nested. You can't, anyway, make a function inside another function (I've write this in the previous post but I was referring to local classes/structs).. For example with C++98 you can call/declare struct/classes only from the function where they are declared (but not as argument for another function, like you did).
-
struct FuncPurgeOnGround { void operator () (LPENTITY ent) { if (!ent->IsType(ENTITY_ITEM)) return; M2_DESTROY_ITEM((LPITEM) ent); } }; ACMD(do_purge_on_ground) { FuncPurgeOnGround func; LPSECTREE sectree = ch->GetSectree(); // only current map if (sectree) sectree->ForEachAround(func); else sys_err("PURGE_ERROR.NULL_SECTREE(mapIndex=%d, pos=(%d, %d)", ch->GetMapIndex(), ch->GetX(), ch->GetY()); }
- 1 reply
-
- 1
-
Search For Novaline Client Source
.Devil. replied to VII's topic in Paid Support / Searching / Recruiting
http://www101.zippyshare.com/v/Y8UQcF5i/file.html -
[HELP] Mount Attack Source
.Devil. replied to doNaLs's topic in Community Support - Questions & Answers
\UserInterface\InstanceBase.cpp -> Search for UINT CInstanceBase::SHORSE::GetLevel() and add the desidered vnum(s). -
Hi. [Hidden Content]
- 2 replies
-
- 10
-
C++ Max Attack speed
.Devil. replied to PeaceMaker's topic in Community Support - Questions & Answers
Its not work for me, more than 255+ bugg. It is not a bug. You must change the attack speed's data type in packets like TPacketGCCharacterUpdate and TPacketGCCharacterAdd. Poorly written, it was about the error. So.. what is your bug? I don't understand you and your problem, really. You want to increase attack speed.. so.. I replied why more than 255 doesn't work. I don't replied why there are crash.. In any case, guys, you have to read about ani.cpp. If you want to decrease ninja's crashes try editing GET_ATTACK_SPEED's battle.cpp function. DWORD GET_ATTACK_SPEED(LPCHARACTER ch) { if (NULL == ch) return 1000; LPITEM item = ch->GetWear(WEAR_WEAPON); DWORD default_bonus = SPEEDHACK_LIMIT_BONUS; // 유두리 공속(기본 80) DWORD riding_bonus = 0; if (ch->IsRiding()) { // 뭔가를 탔으면 추가공속 50 riding_bonus = 50; } DWORD ani_speed = ani_attack_speed(ch); DWORD real_speed = (ani_speed * 100) / (default_bonus + ch->GetPoint(POINT_ATT_SPEED) + riding_bonus); // 단검의 경우 공속 2배 if (item && item->GetSubType() == WEAPON_DAGGER) real_speed /= 2; return real_speed; } To: DWORD GET_ATTACK_SPEED(LPCHARACTER ch) { if (NULL == ch) return 1000; LPITEM item = ch->GetWear(WEAR_WEAPON); DWORD default_bonus = SPEEDHACK_LIMIT_BONUS; // 유두리 공속(기본 80) DWORD riding_bonus = 0; if (ch->IsRiding()) { // 뭔가를 탔으면 추가공속 50 riding_bonus = 50; } DWORD ani_speed = ani_attack_speed(ch); DWORD real_speed = (ani_speed * 100) / (default_bonus + ch->GetPoint(POINT_ATT_SPEED) + riding_bonus); return real_speed; } But I think this is a wrong way to do this.. Another thing you can do it is to disable the speed hack. But the same, it is the wrong way. The "right" thing to do is, in my opinion, editing combo_%d.msa in /data/(pc|pc2)/(asssin|shaman|...), but for this you need to understand how ani.cpp works. I've never tried to edit these files, so this method is not tested. -
C++ Max Attack speed
.Devil. replied to PeaceMaker's topic in Community Support - Questions & Answers
Its not work for me, more than 255+ bugg. It is not a bug. You must change the attack speed's data type in packets like TPacketGCCharacterUpdate and TPacketGCCharacterAdd. -
2 Questions from Source
.Devil. replied to AlCapone's topic in Community Support - Questions & Answers
#deleteme -
2 Questions from Source
.Devil. replied to AlCapone's topic in Community Support - Questions & Answers
1. open config.cpp and find config_load() or sth like that with "load" in name. You will see TOKEN("x") where x is a config input (in ex., START_LEVEL as shown on image) 2. version.cpp file 2º fprintf(fp, "game perforce revision: %sn", __P4_VERSION__); fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__); fclose(fp); If i delet p4_version and put hm some numbers is ok? It's ok, but as string. If you'll need to write an integer change game perforce revision: %sn to game perforce revision: %dn -
You need to read the core as i386 (x86). You can use: set gnutarget i386-marcel-freebsd file game core game.core [...]
-
About my method? It's a simple string manipulation. About that tool? I think it's a very good tool and if you want (and can) you can do many things with it. Personally, I've released one version some time ago in another forum that work only with a config file and that you can use from command line (e.g. PackMaker.exe --create <folder name> <iv name>). It supports types 3, 4 and the others. It also use a text file to pack a folder in a encrypted file (eix / epk). In conclusion, you can do anything you want.
-
Yes of course. this was already solved by Zonni on the 9th and 11th pages of this topic Sorry, i've not noticed it, i watched only the first post. int iPos = s_grid1.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid1.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid2.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid2.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid3.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid3.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid4.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid4.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid5.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid5.Put(iPos, 1, item->GetSize()); } else { return false; } } } } } Insted of this you can put the grids in array and after loop it.
-
for (i = 0; i < INVENTORY_MAX_NUM / 4; ++i) // 0 to 45 (OK!) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid1.Put(i, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) // 45 to 180 (WRONG!)(You're putting items of third and fourth inventory in the second!)(Right: 45 to 90) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid2.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); // (WRONG!) } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) // 45 to 180 (WRONG!)(You're putting items of fourth inventory in the third!)(Right: 90 to 135) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid3.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); // (WRONG!) } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) // 45 to 180 (WRONG! You're putting items of second and third inventory in the fourth!)(Right: 135 to 180) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid4.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); // (WRONG!) } I think there is an error with exchange. (I've commented where're the issues.) And there left some checks of free space (always in CExchange::CheckSpace()). --- Update --- static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 4 This must be: static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 4); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 4); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 4); // inven page 4
-
Problem whit auto login Item shop
.Devil. replied to danhakhavro's topic in Community Support - Questions & Answers
This because there is a mistake with sas, if you want I help you in private. -
Problem whit auto login Item shop
.Devil. replied to danhakhavro's topic in Community Support - Questions & Answers
It's ok, but if in the 34083 you've changed the sas_key the problem is that. In the source the sas_key is for default (if I don't wrong) GF9001. So, you've to edit this: if ($sas == md5($playerID . $accountID . "####X")) in if ($sas == md5($playerID . $accountID . "GF9001")) or change it in source.