Flourine
-
Posts
120 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Flourine
-
-
Hi,
i did command that can be used for auto opener of items (like 27987)
SpoilerACMD(do_fast_opener) { std::vector<std::string> vecArgs; split_argument(argument, vecArgs); DWORD whatIsUsed; int howMuch, itemSlot; str_to_number(whatIsUsed, vecArgs[1].c_str()); str_to_number(howMuch, vecArgs[2].c_str()); str_to_number(itemSlot, vecArgs[3].c_str()); for (int i = 1; i < 3; i++) { if (!*vecArgs[i].c_str() || !isnhdigit(*vecArgs[i].c_str())) { return ; } } if (!ch->CanWarp()) return ; if (howMuch > 500) howMuch = 500; LPITEM item = ch->GetInventoryItem(itemSlot); struct { DWORD itemVnum; } disabledItems [] = { {70038}, }; for (int i = 0; i < (sizeof(disabledItems) / (1 * sizeof(int))); ++i) { if (item->GetVnum() == disabledItems[i].itemVnum) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("disabled_item") ); return; } } if (item) { if (item->GetVnum() == whatIsUsed) { for (int i = 0; i < howMuch; i++) { ch->UseItem(TItemPos (INVENTORY, itemSlot)); } } } }
Code of func. is here https://paste.ubuntu.com/p/YPGX6ZXsXg/
Example: /fast_opener itemvnum howMuchtoOpen positionOfItem
-
member function already defined or declared - you defined twice time GetPrivateShopItemPrice in PythonShop.h
PythonShop.cpp
delete ->
- 1
-
Hi devs,
i got problem with ITEM_UNIQUE
when i create item with this function
https://paste.ubuntu.com/p/CC8Fmchb2q/
like lollipop ect. it got 0 minutes.
Any idea's to fix it?
-
What are the differences on this functions?
-
Hi.I got problem with horse skills.
When i click on it nothing is happen
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
On other clientside work correctly but i did too much work to make it once more from clear clientside
-
cmd_gm.cpp:901: error: 'class CHARACTER' has no member named 'IsPet'
-
PW i can help u.
Auto Opener by CMD
in Programming & Scripts
Posted
I can't python thats why i did like that.