![]() |
|
Weapon Lending Dealer - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128) +----- Thread: Weapon Lending Dealer (/showthread.php?tid=4811) |
- Frostie - 08-21-2021 Hey I am would like to find my way to "2" shop. I would like to edit his shop with prices, weapons etc. Maybe even go as far as creating another renting shop. Anyone knows anything about it? Thanks! ? - zzHashira - 08-25-2021 Weapon lending is source side. You can for example search some levels for the lending items . So example search == value or case value: you should find what you're look for. Also you should find min and Max level somewhere in the source files client-side involving weapon lending. Make sure to change max level if you want to for example add 130 or 165 weps you simply copy lending armor change level . After changing level you put the weapon level in the server-side code so would be like case 135: . Ofcourse recompile and test . - Frostie - 08-25-2021 1 hour ago, zzHashira said: Weapon lending is source side. You can for example search some levels for the lending items . So example search == value or case value: you should find what you're look for. Also you should find min and Max level somewhere in the source files client-side involving weapon lending. Make sure to change max level if you want to for example add 130 or 165 weps you simply copy lending armor change level . After changing level you put the weapon level in the server-side code so would be like case 135: . Ofcourse recompile and test . Yeah, bet. I guess I need to search through each part of the source to find out where the weapon lending agent is being handled - dethunter12 - 08-26-2021 You can change Some values like max level weapon from lender, weapon + etc. i found 2 of the spots with minimal search. I searched IWEAPON_SCYTHE found it right away case IWEAPON_SCYTHE: case IWEAPON_POLEARM: switch (pItemProto->m_level) { case 37: case 41: case 45: case 49: case 53: case 57: case 61: case 65: m_listLendItem.insert(pItemProto->m_index); break; Add your case after 65: this is for weapons lending Client side search ITEM_FLAG_LENT found this tv_itemLevel = pData->GetLevel(); if( tv_itemLevel >= LEASE_MIN_LEVEL && tv_itemLevel <= LEASE_MAX_LEVEL ) { if(pData->IsFlag(ITEM_FLAG_LENT) ) { tv_itemIdx = pData->GetItemIndex(); vecbtnItems.push_back(tv_itemIdx); selNum++; } } see the variable LEASE_MAX_LEVEL change this to your desired level. - Joker - 08-27-2021 On 8/25/2021 at 9:29 PM, Frostie said: Yeah, bet. I guess I need to search through each part of the source to find out where the weapon lending agent is being handled /index.php?/profile/2167-dethunter12/&do=hovercard" data-mentionid="2167" href="/index.php?/profile/2167-dethunter12/" rel="">@dethunter12 already wrote you almost everything what you need to change it correctly. |